Skip to content

Commit 80271f8

Browse files
authored
Merge pull request #5 from KimForss/KimForss-ControlPlaneDeploymentWithMSI
Update deploy-control-plane.md with managed identity setup
2 parents 452e44e + 267cdd5 commit 80271f8

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

articles/sap/automation/deploy-control-plane.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,18 @@ Run the following command to create the deployer and the SAP library. The comman
138138

139139
# [Linux](#tab/linux)
140140

141+
Set the environment variables for managed identity:
142+
143+
```bash
144+
145+
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
146+
export ARM_CLIENT_ID="<managedIdentityAppId>"
147+
export ARM_TENANT_ID="<tenantId>"
148+
149+
```
150+
151+
152+
141153
Set the environment variables for the service principal:
142154

143155
```bash
@@ -162,7 +174,10 @@ export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
162174
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
163175

164176
az logout
165-
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
177+
az login --identity --client-id "${ARM_CLIENT_ID}"
178+
179+
# Uncomment next line for service principal based login
180+
# az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
166181

167182
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES
168183

0 commit comments

Comments
 (0)