You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Create a provisioned v2 storage account (Azure CLI)
232
-
The Azure CLI storage command group doesn't currently support creating provisioned v2 storage accounts. To create a provisioned v2 storage account using Azure CLI, use the `az resource create` command. Storage account properties can be set using the `--properties` parameter of the command. See [Microsoft.Storage resource provider REST API documentation](/rest/api/storagerp/storage-accounts/create#request-body) to learn more about the possible property names.
232
+
To create a provisioned v2 storage account using Azure CLI, use the `az storage account create` command. This command has many options; only the required options are shown. To learn more about the advanced options, see the [`az storage account create` command documentation](/cli/azure/storage/account).
233
233
234
-
To create a storage account for provisioned v2 file shares, use the following command. Remember to replace the values for the variables `resourceGroupName`, `storageAccountName`, `region`, and `storageAccountSku` with the desired values for your storage account deployment.
234
+
To create a storage account for provisioned v2 file shares, use the following command. Remember to replace the values for the variables `resourceGroupName`, `storageAccountName`, `region`, `storageAccountKind`, and `storageAccountSku` with the desired values for your storage account deployment.
235
235
236
236
```bash
237
-
resourceGroupName="<my-resource-group>"
238
-
storageAccountName="<my-storage-account-name>"
239
-
region="<my-region>"
237
+
$resourceGroupName="<my-resource-group>"
238
+
$storageAccountName="<my-storage-account-name>"
239
+
$region="<my-region>"
240
+
$storageAccountKind="FileStorage"
240
241
241
-
# Valid SKUs are StandardV2_LRS (HDD Local provisioned v2), StandardV2_ZRS (HDD
242
-
# Zone provisioned v2), StandardV2_GRS (HDD Geo provisioned v2),
243
-
# StandardV2_GZRS (HDD GeoZone provisioned v2)
244
-
storageAccountSku="StandardV2_LRS"
245
-
246
-
# Note that kind provided is FileStorage. Combining this with a valid selected
247
-
# SKU will result in an HDD provisioned v2 file share with the selected
248
-
# redundancy. It is also possible to other types of storage accounts with the
249
-
# az resource create command, however, we recommend using the az storage account
### Create a provisioned v1 or pay-as-you-go storage account (Azure CLI)
@@ -351,52 +337,23 @@ $f | fl
351
337
```
352
338
353
339
# [Azure CLI](#tab/azure-cli)
354
-
You can create an Azure file share with the `az resource create` command. The following commands assume you set the `storageAccount` variable when creating a storage account in the Azure CLI section.
340
+
You can create an Provisioned v2 Azure file share with [`az storage share-rm create`](/cli/azure/storage/share-rm#az-storage-share-rm-create) command. The following PowerShell commands assume you set the variables `resourceGroupName` and `storageAccountName` as defined in the creating a storage account with Azure CLI section.
355
341
356
-
To create a provisioned v2 file share, use the following command. Remember to replace the values for the variables `shareName`, `provisionedStorageGib`, `provisionedIops`, and `provisionedThroughputMibPerSec` with the desired selections for your file share deployment.
342
+
To create a provisioned v2 file share, use the following command. Remember to replace the values for the variables `shareName`, `provisionedStorageGib` with the desired selections for your file share deployment.
357
343
358
344
```bash
359
-
shareName="<file-share>"
345
+
$shareName="<file-share>"
360
346
361
-
# The provisioned storage size of the share in GiB. Valid range is 32 to
347
+
# The provisioned storage size of the share in GiB. Valid range is 32 to
362
348
# 262,144.
363
-
provisionedStorageGib=1024
364
-
365
-
# The provisioned IOPS of the share. This is set to the empty string here to
366
-
# get the recommended IOPS for the amount of provisioned storage provided,
367
-
# however, you can override this value if you have detail about how many IOPS
368
-
# your workload requires.
369
-
provisionedIops=""
370
-
371
-
# The provisioned throughput in MiB / sec of the share. This is set to null
372
-
# here to get the recommended throughput for the amount of provisioned storage
373
-
# provided, however, you can override this value if you have detail about how
You can modify a provisioned v2 file share with the `az resource patch` command. Remember to replace the value of variables `resourceGroupName`, `storageAccountName`, `fileShareName`, `provisionedStorageGib`, `provisionedIops`, and `provisionedThroughputMibPerSec` with the correct values for your file share.
558
+
You can modify a provisioned v2 file share with the `az storage share-rm update` command. Remember to replace the values for the variables `resourceGroupName`, `storageAccountName`, `fileShareName`, `provisionedStorageGib`, `provisionedIops`, and `provisionedThroughputMibPerSec` with the desired values for your file share.
602
559
603
560
```bash
604
561
# The path to the file share resource to be modified.
605
562
resourceGroupName="<resource-group>"
606
563
storageAccountName="<storage-account>"
607
564
fileShareName="<file-share>"
608
565
609
-
# The provisioning desired on the file share. Set these values to the empty
0 commit comments