Updated the MSI ENDPOINT value to the new IMDS endpoint
This commit is contained in:
parent
b7214db761
commit
674322d26d
@ -115,11 +115,11 @@ chmod 666 $REMOTESTATEFILE
|
|||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME/tfTemplate
|
chown -R $USERNAME:$USERNAME /home/$USERNAME/tfTemplate
|
||||||
|
|
||||||
# Set these variables in the profile
|
# Set these variables in the profile
|
||||||
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=\"http://localhost:50342\"" >> $PROFILEFILE
|
echo "export ARM_MSI_ENDPOINT=\"http://169.254.169.254/metadata/identity/oauth2/token\"" >> $PROFILEFILE
|
||||||
echo "export ARM_TENANT_ID=\"$TENANT_ID\"" >> $PROFILEFILE
|
echo "export ARM_TENANT_ID=\"$TENANT_ID\"" >> $PROFILEFILE
|
||||||
|
|
||||||
# Add contributor permissions to the MSI for entire subscription
|
# Add contributor permissions to the MSI for entire subscription
|
||||||
touch $TFENVFILE
|
touch $TFENVFILE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user