Skip to content

Commit a178d64

Browse files
Merge pull request #313171 from KimForss/main
Revise control plane deployment instructions
2 parents 865fd5c + 1c4e0f6 commit a178d64

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

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

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Overview of the control plane deployment process in SAP Deployment
44
author: kimforss
55
ms.author: kimforss
66
ms.reviewer: kimforss
7-
ms.date: 12/15/2023
7+
ms.date: 03/15/2026
88
ms.topic: how-to
99
ms.service: sap-on-azure
1010
ms.subservice: sap-automation
@@ -23,13 +23,22 @@ The control plane deployment for [SAP Deployment Automation Framework](deploymen
2323

2424
## Prepare the deployment credentials
2525

26-
SAP Deployment Automation Framework uses service principals for deployments. To create a service principal for the control plane deployment, use an account that has permissions to create service principals:
26+
SAP Deployment Automation Framework uses eithe managed identities (recommended) or service principals for deployments. To create a service principal for the control plane deployment, use an account that has permissions to create service principals:
2727

2828
```azurecli
2929
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<subscriptionID>" --name="<environment>-Deployment-Account"
3030
3131
```
3232

33+
To create a managed identity use the following script:
34+
35+
```azurecli
36+
az identity create --name "<environment>-Deployment-Identity" --resource-group $ResourceGroupName --location $Location --query "{id:id, principalId:principalId, clientId:clientId}"
37+
38+
az role assignment create --assignee-object-id <principalId> --role "Contributor" --scope /subscriptions/<subscriptionID>
39+
```
40+
41+
3342
> [!IMPORTANT]
3443
> The name of the service principal must be unique.
3544
>
@@ -38,7 +47,7 @@ az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<subscrip
3847
> - password
3948
> - tenant
4049
41-
Optionally, assign the following permissions to the service principal:
50+
Optionally, assign the following permissions to the service principal or managed identity:
4251

4352
```azurecli
4453
az role assignment create --assignee <appId> --role "User Access Administrator" --scope /subscriptions/<subscriptionID>
@@ -185,6 +194,14 @@ cd ~/Azure_SAP_Automated_Deployment/WORKSPACES
185194
deployer_parameter_file="${CONFIG_REPO_PATH}/DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars"
186195
library_parameter_file="${CONFIG_REPO_PATH}/LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars"
187196

197+
#When using managed identity use:
198+
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
199+
--deployer_parameter_file "${deployer_parameter_file}" \
200+
--library_parameter_file "${library_parameter_file}" \
201+
--subscription "${ARM_SUBSCRIPTION_ID}" \
202+
--msi
203+
204+
#When using a service principal use:
188205
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
189206
--deployer_parameter_file "${deployer_parameter_file}" \
190207
--library_parameter_file "${library_parameter_file}" \

0 commit comments

Comments
 (0)