Skip to content

Commit f518cd6

Browse files
update service principal example
1 parent 86301b0 commit f518cd6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/container-apps/github-actions-cli.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,21 @@ az ad sp create-for-rbac \
4040
--sdk-auth
4141
```
4242

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+
4351
# [PowerShell](#tab/powershell)
4452

4553
```azurecli
4654
az ad sp create-for-rbac `
4755
--name <SERVICE_PRINCIPAL_NAME> `
4856
--role "contributor" `
49-
--scopes "/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME>" `
57+
--scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME> /subscriptions/<SUBSCRIPTION_ID> `
5058
--sdk-auth
5159
```
5260

0 commit comments

Comments
 (0)