You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,13 +19,124 @@ Get started quickly with [SAP Deployment Automation Framework](deployment-framew
19
19
To get started with SAP Deployment Automation Framework, you need:
20
20
21
21
- An Azure subscription. If you don't have an Azure subscription, you can [create a free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
22
-
- An SAP USer account with permissions to [download the SAP software](software.md) in your Azure environment. See [SAP S-User](https://support.sap.com/en/my-support/users/welcome.html) for more information.
22
+
- An SAP User account with permissions to [download the SAP software](software.md) in your Azure environment. For more information on S-User, see [SAP S-User](https://support.sap.com/en/my-support/users/welcome.html).
23
23
- An [Azure CLI](/cli/azure/install-azure-cli) installation.
24
-
- A service principal to use for the control plane deployment.
25
-
- A service principal to use for the workload zone deployment.
24
+
- A user Assigned Identity (MS) or a service principal to use for the control plane deployment.
25
+
- A user Assigned Identity (MS) or a A service principal to use for the workload zone deployment.
26
26
- An ability to create an Azure DevOps project if you want to use Azure DevOps for deployment.
27
27
28
-
Some of the prerequisites might already be installed in your deployment environment. Both Azure Cloud Shell and the deployer have Terraform and the Azure CLI installed.
28
+
Some of the prerequisites might already be installed in your deployment environment. Both Azure Cloud Shell and the deployer come with Terraform and the Azure CLI installed.
29
+
30
+
### Create a service principal
31
+
32
+
The SAP automation deployment framework uses service principals for deployment.
33
+
34
+
When you choose a name for your service principal, make sure that the name is unique within your Azure tenant. Make sure to use an account with service principals creation permissions when running the script.
35
+
36
+
1. Create the service principal with Contributor permissions.
37
+
38
+
```cloudshell-interactive
39
+
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
40
+
export control_plane_env_code="LAB"
41
+
42
+
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/$ARM_SUBSCRIPTION_ID" --name="$control_plane_env_code-Deployment-Account"
1. Copy the output details. Make sure to save the values for `appId`, `password`, and `Tenant`.
58
+
59
+
The output maps to the following parameters. You use these parameters in later steps, with automation commands.
60
+
61
+
| Parameter input name | Output name |
62
+
|--------------------------|-----------------|
63
+
| `spn_id` | `appId` |
64
+
| `spn_secret` | `password` |
65
+
| `tenant_id` | `tenant` |
66
+
67
+
1. Optionally, assign the User Access Administrator role to the service principal.
68
+
69
+
```cloudshell-interactive
70
+
export appId="<appId>"
71
+
72
+
az role assignment create --assignee $appId --role "User Access Administrator" --scope /subscriptions/$ARM_SUBSCRIPTION_ID
73
+
```
74
+
75
+
76
+
> [!IMPORTANT]
77
+
> If you don't assign the User Access Administrator role to the service principal, you can't assign permissions using the automation framework.
78
+
79
+
### Create a user assigned Identity
80
+
81
+
82
+
The SAP automation deployment framework can also use a user assigned identity (MSI) for the deployment. Make sure to use an account with permissions to create managed identities when running the script that creates the identity.
83
+
84
+
85
+
1. Create the managed identity.
86
+
87
+
```cloudshell-interactive
88
+
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
89
+
export control_plane_env_code="LAB"
90
+
91
+
az identity create --name ${control_plane_env_code}-Deployment-Identity --resource-group <ExistingResourceGroup>
0 commit comments