Skip to content

Commit 2944f19

Browse files
authored
Merge pull request #99007 from tompaana/tompaana/batch-customer-managed-keys-command-parameter-fixes
Fixes command samples in Batch customer-managed keys article
2 parents c8587b9 + 687f35d commit 2944f19

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ resourceGroupName='myResourceGroup'
4242
accountName='mybatchaccount'
4343
4444
az batch account create \
45-
-n $accountName \
46-
-g $resourceGroupName \
45+
--name $accountName \
46+
--resource-group $resourceGroupName \
4747
--locations regionName='West US 2' \
4848
--identity 'SystemAssigned'
4949
```
@@ -52,8 +52,8 @@ After the account is created, you can verify that system-assigned managed identi
5252

5353
```azurecli
5454
az batch account show \
55-
-n $accountName \
56-
-g $resourceGroupName \
55+
--name $accountName \
56+
--resource-group $resourceGroupName \
5757
--query identity
5858
```
5959

@@ -113,10 +113,10 @@ After the Batch account is created with system-assigned managed identity and the
113113

114114
```azurecli
115115
az batch account set \
116-
-n $accountName \
117-
-g $resourceGroupName \
116+
--name $accountName \
117+
--resource-group $resourceGroupName \
118118
--encryption-key-source Microsoft.KeyVault \
119-
--encryption-key-identifier {YourKeyIdentifier}
119+
--encryption-key-identifier {YourKeyIdentifier}
120120
```
121121

122122
## Create a Batch account with user-assigned managed identity and customer-managed keys
@@ -159,9 +159,9 @@ You can also use Azure CLI to update the version.
159159

160160
```azurecli
161161
az batch account set \
162-
-n $accountName \
163-
-g $resourceGroupName \
164-
--encryption-key-identifier {YourKeyIdentifierWithNewVersion}
162+
--name $accountName \
163+
--resource-group $resourceGroupName \
164+
--encryption-key-identifier {YourKeyIdentifierWithNewVersion}
165165
```
166166

167167
## Use a different key for Batch encryption
@@ -176,9 +176,9 @@ You can also use Azure CLI to use a different key.
176176

177177
```azurecli
178178
az batch account set \
179-
-n $accountName \
180-
-g $resourceGroupName \
181-
--encryption-key-identifier {YourNewKeyIdentifier}
179+
--name $accountName \
180+
--resource-group $resourceGroupName \
181+
--encryption-key-identifier {YourNewKeyIdentifier}
182182
```
183183

184184
## Frequently asked questions

0 commit comments

Comments
 (0)