@@ -42,8 +42,8 @@ resourceGroupName='myResourceGroup'
42
42
accountName='mybatchaccount'
43
43
44
44
az batch account create \
45
- -n $accountName \
46
- -g $resourceGroupName \
45
+ --name $accountName \
46
+ --resource-group $resourceGroupName \
47
47
--locations regionName='West US 2' \
48
48
--identity 'SystemAssigned'
49
49
```
@@ -52,8 +52,8 @@ After the account is created, you can verify that system-assigned managed identi
52
52
53
53
``` azurecli
54
54
az batch account show \
55
- -n $accountName \
56
- -g $resourceGroupName \
55
+ --name $accountName \
56
+ --resource-group $resourceGroupName \
57
57
--query identity
58
58
```
59
59
@@ -113,10 +113,10 @@ After the Batch account is created with system-assigned managed identity and the
113
113
114
114
``` azurecli
115
115
az batch account set \
116
- -n $accountName \
117
- -g $resourceGroupName \
116
+ --name $accountName \
117
+ --resource-group $resourceGroupName \
118
118
--encryption-key-source Microsoft.KeyVault \
119
- --encryption-key-identifier {YourKeyIdentifier}
119
+ --encryption-key-identifier {YourKeyIdentifier}
120
120
```
121
121
122
122
## 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.
159
159
160
160
``` azurecli
161
161
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}
165
165
```
166
166
167
167
## Use a different key for Batch encryption
@@ -176,9 +176,9 @@ You can also use Azure CLI to use a different key.
176
176
177
177
``` azurecli
178
178
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}
182
182
```
183
183
184
184
## Frequently asked questions
0 commit comments