From de76e7ab5d6e5b64524f3cc2416949bfdcf50001 Mon Sep 17 00:00:00 2001 From: Jeffrey Cline Date: Tue, 27 Feb 2018 15:53:10 -0800 Subject: [PATCH] Added ARM_MSI_ENDPOINT env var --- solution_template/vm-linux-terraform/README.md | 2 +- solution_template/vm-linux-terraform/scripts/install.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/solution_template/vm-linux-terraform/README.md b/solution_template/vm-linux-terraform/README.md index 9f6b9c77..fcdaf87b 100644 --- a/solution_template/vm-linux-terraform/README.md +++ b/solution_template/vm-linux-terraform/README.md @@ -24,5 +24,5 @@ Steps to Enable MSI Once the template has finished deployment, log into the VM via `SSH` and run the following command to enable `MSI` with `Terraform`. ```bash -source ~/tfEnv.sh +. ~/tfEnv.sh ``` diff --git a/solution_template/vm-linux-terraform/scripts/install.sh b/solution_template/vm-linux-terraform/scripts/install.sh index 5fb980a0..7f52668f 100644 --- a/solution_template/vm-linux-terraform/scripts/install.sh +++ b/solution_template/vm-linux-terraform/scripts/install.sh @@ -113,6 +113,7 @@ chown -R $USERNAME:$USERNAME /home/$USERNAME/tfTemplate echo "export ARM_SUBSCRIPTION_ID=\"$SUBSCRIPTION_ID\"" >> $PROFILEFILE echo "export ARM_CLIENT_ID=\"$MSI_PRINCIPAL_ID\"" >> $PROFILEFILE echo "export ARM_USE_MSI=true" >> $PROFILEFILE +echo "export ARM_MSI_ENDPOINT=\"https://localhost:50342\"" >> $PROFILEFILE # Add contributor permissions to the MSI for entire subscription echo "az login" >> $TFENVFILE