We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86301b0 commit f518cd6Copy full SHA for f518cd6
articles/container-apps/github-actions-cli.md
@@ -40,13 +40,21 @@ az ad sp create-for-rbac \
40
--sdk-auth
41
```
42
43
+```azurecli
44
+az ad sp create-for-rbac \
45
+ --name <SERVICE_PRINCIPAL_NAME> \
46
+ --role "contributor" \
47
+ --scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME> /subscriptions/<SUBSCRIPTION_ID> \
48
+ --sdk-auth
49
+```
50
+
51
# [PowerShell](#tab/powershell)
52
53
```azurecli
54
az ad sp create-for-rbac `
55
--name <SERVICE_PRINCIPAL_NAME> `
56
--role "contributor" `
- --scopes "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME>" `
57
+ --scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME> /subscriptions/<SUBSCRIPTION_ID> `
58
59
60
0 commit comments