Added ARM_MSI_ENDPOINT env var

This commit is contained in:
Jeffrey Cline 2018-02-27 15:53:10 -08:00
parent 8c367f9306
commit de76e7ab5d
2 changed files with 2 additions and 1 deletions

View File

@ -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`. Once the template has finished deployment, log into the VM via `SSH` and run the following command to enable `MSI` with `Terraform`.
```bash ```bash
source ~/tfEnv.sh . ~/tfEnv.sh
``` ```

View File

@ -113,6 +113,7 @@ chown -R $USERNAME:$USERNAME /home/$USERNAME/tfTemplate
echo "export ARM_SUBSCRIPTION_ID=\"$SUBSCRIPTION_ID\"" >> $PROFILEFILE echo "export ARM_SUBSCRIPTION_ID=\"$SUBSCRIPTION_ID\"" >> $PROFILEFILE
echo "export ARM_CLIENT_ID=\"$MSI_PRINCIPAL_ID\"" >> $PROFILEFILE echo "export ARM_CLIENT_ID=\"$MSI_PRINCIPAL_ID\"" >> $PROFILEFILE
echo "export ARM_USE_MSI=true" >> $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 # Add contributor permissions to the MSI for entire subscription
echo "az login" >> $TFENVFILE echo "az login" >> $TFENVFILE