Skip to content

Commit cf77edb

Browse files
committed
More files.
1 parent 6198882 commit cf77edb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

articles/virtual-machines/linux/disk-encryption-key-vault-aad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ You can manage your service principals with Azure CLI using the [az ad sp](/cli/
114114
1. Create a new service principal.
115115
116116
```azurecli-interactive
117-
az ad sp create-for-rbac --name "ServicePrincipalName" --password "My-AAD-client-secret" --skip-assignment
117+
az ad sp create-for-rbac --name "ServicePrincipalName" --role Contributor --password "My-AAD-client-secret" --skip-assignment
118118
```
119119
3. The appId returned is the Azure AD ClientID used in other commands. It's also the SPN you'll use for az keyvault set-policy. The password is the client secret that you should use later to enable Azure Disk Encryption. Safeguard the Azure AD client secret appropriately.
120120

articles/virtual-machines/windows/disk-encryption-key-vault-aad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ You can manage your service principals with Azure CLI using the [az ad sp](/cli/
114114
1. Create a new service principal.
115115
116116
```azurecli-interactive
117-
az ad sp create-for-rbac --name "ServicePrincipalName" --password "My-AAD-client-secret" --skip-assignment
117+
az ad sp create-for-rbac --name "ServicePrincipalName" --role Contributor --password "My-AAD-client-secret" --skip-assignment
118118
```
119119
3. The appId returned is the Azure AD ClientID used in other commands. It's also the SPN you'll use for az keyvault set-policy. The password is the client secret that you should use later to enable Azure Disk Encryption. Safeguard the Azure AD client secret appropriately.
120120

includes/key-vault-sp-creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For the sake of simplicity however, this quickstart creates a desktop applicatio
1616
Create a service principal using the Azure CLI [az ad sp create-for-rbac](/cli/azure/ad/sp#az_ad_sp_create_for_rbac) command:
1717

1818
```azurecli
19-
az ad sp create-for-rbac --skip-assignment -n "http://<my-unique-service-principal-name>" --sdk-auth
19+
az ad sp create-for-rbac --skip-assignment -n "http://<my-unique-service-principal-name>" --role Contributor --sdk-auth
2020
```
2121

2222
This operation will return a series of key / value pairs.

0 commit comments

Comments
 (0)