From 8bf8e91ca8d05807a2a4986c473fca2cade4992f Mon Sep 17 00:00:00 2001 From: Jeffrey Cline Date: Fri, 16 Feb 2018 16:26:02 -0800 Subject: [PATCH] fixed issue --- solution_template/vm-linux-terraform/scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solution_template/vm-linux-terraform/scripts/install.sh b/solution_template/vm-linux-terraform/scripts/install.sh index becdfea5..9f6fc9fe 100644 --- a/solution_template/vm-linux-terraform/scripts/install.sh +++ b/solution_template/vm-linux-terraform/scripts/install.sh @@ -112,8 +112,8 @@ 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 "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 chmod 755 $TFENVFILE chown $USERNAME:$USERNAME $TFENVFILE