Skip to content

Commit 7e93471

Browse files
authored
Add CLI/PS commands for RBAC
1 parent 4d0da6c commit 7e93471

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

articles/app-service/configure-ssl-certificate.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@ The service principal app ID or assignee value is the ID for the App Service res
146146
> [!NOTE]
147147
> Do not delete these RBAC permissions from key vault. If you do, App Service will not be able to sync your web app with the latest key vault certificate version.
148148
149+
#### Azure CLI Command
150+
151+
```azurecli-interactive
152+
az role assignment create --role "Key Vault Certificate User" --assignee "abfa0a7c-a6b6-4736-8310-5855508787cd" --scope "/subscriptions/{subscriptionid}/resourcegroups/{resource-group-name}/providers/Microsoft.KeyVault/vaults/{key-vault-name}"
153+
```
154+
155+
#### Azure Powershell Command
156+
```azurepowershell
157+
#Assign by Service Principal ApplicationId
158+
New-AzRoleAssignment -RoleDefinitionName "Key Vault Certificate User" -ApplicationId "abfa0a7c-a6b6-4736-8310-5855508787cd" -Scope "/subscriptions/{subscriptionid}/resourcegroups/{resource-group-name}/providers/Microsoft.KeyVault/vaults/{key-vault-name}"
159+
```
160+
149161
### [Access policy permissions](#tab/accesspolicy)
150162

151163
| Resource provider | Service principal app ID | Key vault secret permissions | Key vault certificate permissions |

0 commit comments

Comments
 (0)