Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rover fails to set msi object_id when using user assigned identity for multi subscription deployment #350

Closed
eboentaran opened this issue Oct 16, 2023 · 0 comments · Fixed by #351

Comments

@eboentaran
Copy link

When using user assigned identity and multi subscription by setting target_subscription_id and tfstate_subscription_id
get_resource_from_assignedIdentityInfo will return an empty list if the user assigned identity is created in the source subscription for example when the user assigned identity is created in the launchpad subscription since the default subscription is set to the target subscription

msiResource=$(az identity list --query "[?clientId=='${msi//MSIClient-/}'].{id:id}" -o tsv --only-show-errors)

And cause the following line to fail
https://github.com/aztfmod/rover/blob/6d647ea7018e145f941a3efa351e8f87161b7f09/scripts/functions.sh#L690C24-L690C54

image

@arnaudlh arnaudlh linked a pull request Nov 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant