From 2cec78e1f2c15ef3faf7316fed126bda3bd8d1a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Cline Date: Fri, 16 Feb 2018 16:49:57 -0800 Subject: [PATCH] Updated $MSI_PRINCIPAL_ID --- solution_template/vm-linux-terraform/scripts/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solution_template/vm-linux-terraform/scripts/install.sh b/solution_template/vm-linux-terraform/scripts/install.sh index 9f6fc9fe..8c876b5c 100644 --- a/solution_template/vm-linux-terraform/scripts/install.sh +++ b/solution_template/vm-linux-terraform/scripts/install.sh @@ -112,8 +112,7 @@ touch $TFENVFILE echo "export ARM_SUBSCRIPTION_ID=\"$SUBSCRIPTION_ID\"" >> $TFENVFILE echo "export ARM_CLIENT_ID=\"$MSI_PRINCIPAL_ID\"" >> $TFENVFILE echo "az login" >> $TFENVFILE -echo "spID=\$(az resource list -n hostname --query [*].identity.principalId --out tsv)" >> $TFENVFILE -echo "az role assignment create --assignee \"$spID\" --role 'b24988ac-6180-42a0-ab88-20f7382dd24c' --scope /subscriptions/\"$SUBSCRIPTION_ID\"" >> $TFENVFILE +echo "az role assignment create --assignee \"$MSI_PRINCIPAL_ID\" --role 'b24988ac-6180-42a0-ab88-20f7382dd24c' --scope /subscriptions/\"$SUBSCRIPTION_ID\"" >> $TFENVFILE chmod 755 $TFENVFILE chown $USERNAME:$USERNAME $TFENVFILE