Skip to content

Commit 927aea4

Browse files
authored
Fix incorrect CLI args for setting CMK encryption
1 parent 886f22e commit 927aea4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/batch/batch-customer-managed-key.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ In the [Azure portal](https://portal.azure.com/), go to the Batch account page.
109109

110110
### Azure CLI
111111

112-
After the Batch account is created with system-assigned managed identity and the access to Key Vault is granted, update the Batch account with the `{Key Identifier}` URL under `keyVaultProperties` parameter. Also set **encryption_key_source** as `Microsoft.KeyVault`.
112+
After the Batch account is created with system-assigned managed identity and the access to Key Vault is granted, update the Batch account with the `{Key Identifier}` URL under `keyVaultProperties` parameter. Also set `--encryption-key-source` as `Microsoft.KeyVault`.
113113

114114
```azurecli
115115
az batch account set \
116116
-n $accountName \
117117
-g $resourceGroupName \
118-
--encryption_key_source Microsoft.KeyVault \
119-
--encryption_key_identifier {YourKeyIdentifier}
118+
--encryption-key-source Microsoft.KeyVault \
119+
--encryption-key-identifier {YourKeyIdentifier}
120120
```
121121

122122
## Create a Batch account with user-assigned managed identity and customer-managed keys
@@ -161,7 +161,7 @@ You can also use Azure CLI to update the version.
161161
az batch account set \
162162
-n $accountName \
163163
-g $resourceGroupName \
164-
--encryption_key_identifier {YourKeyIdentifierWithNewVersion}
164+
--encryption-key-identifier {YourKeyIdentifierWithNewVersion}
165165
```
166166

167167
## Use a different key for Batch encryption
@@ -178,7 +178,7 @@ You can also use Azure CLI to use a different key.
178178
az batch account set \
179179
-n $accountName \
180180
-g $resourceGroupName \
181-
--encryption_key_identifier {YourNewKeyIdentifier}
181+
--encryption-key-identifier {YourNewKeyIdentifier}
182182
```
183183

184184
## Frequently asked questions

0 commit comments

Comments
 (0)