Skip to content

Commit

Permalink
Merge pull request #351 from enricobtn/feature/msiclient-identity-info
Browse files Browse the repository at this point in the history
Fix get msiResource for multi sub
  • Loading branch information
arnaudlh authored Nov 6, 2023
2 parents b5f8ec3 + d71d888 commit 8603743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function get_resource_from_assignedIdentityInfo {
msiResource=${msi//MSIResource-/}
;;
*"MSIClient"*)
msiResource=$(az identity list --query "[?clientId=='${msi//MSIClient-/}'].{id:id}" -o tsv --only-show-errors)
msiResource=$(az identity list --subscription ${TF_VAR_tfstate_subscription_id} --query "[?clientId=='${msi//MSIClient-/}'].{id:id}" -o tsv --only-show-errors)
;;
*)
echo "Warning: MSI identifier unknown."
Expand Down

0 comments on commit 8603743

Please sign in to comment.