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
@@ -162,33 +162,20 @@ The final step to create the storage account is to select the **Create** button
162
162
163
163
# [PowerShell](#tab/azure-powershell)
164
164
### Create a provisioned v2 storage account (PowerShell)
165
-
The Az.Storage PowerShell module doesn't currently support creating provisioned v2 storage accounts. To create a provisioned v2 storage account using PowerShell, use the `New-AzResource` cmdlet. Storage account properties can be set using the `-Properties` parameter of the `New-AzResource` cmdlet. See [Microsoft.Storage resource provider REST API documentation](/rest/api/storagerp/storage-accounts/create#request-body) to learn more about the possible property names.
165
+
166
+
To create a provisioned v2 storage account using PowerShell, use the `New-AzStorageAccount` cmdlet in the Az.Storage PowerShell module. This cmdlet has many options; only the required options are shown. To learn more about advanced options, see the [`New-AzStorageAccount` cmdlet documentation](/powershell/module/az.storage/new-azstorageaccount).
166
167
167
168
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.
168
169
169
170
```PowerShell
170
171
$resourceGroupName = "<my-resource-group>"
171
172
$storageAccountName = "<my-storage-account-name>"
172
173
$region = "<my-region>"
173
-
174
-
# Valid SKUs are StandardV2_LRS (HDD Local provisioned v2), StandardV2_ZRS (HDD
175
-
# Zone provisioned v2), StandardV2_GRS (HDD Geo provisioned v2),
176
-
# StandardV2_GZRS (HDD GeoZone provisioned v2)
174
+
$storageAccountKind = "FileStorage"
175
+
# Valid SKUs for provisioned v2 HDD file share are 'StandardV2_LRS' (HDD Local Pv2), 'StandardV2_GRS' (HDD Geo Pv2), 'StandardV2_ZRS' (HDD Zone Pv2), 'StandardV2_GZRS' (HDD GeoZone Pv2).
177
176
$storageAccountSku = "StandardV2_LRS"
178
177
179
-
# Note that kind provided is FileStorage. Combining this with a valid selected
180
-
# SKU will result in an HDD provisioned v2 file share with the selected
181
-
# redundancy. It is also possible to other types of storage accounts with the
182
-
# New-AzResource cmdlet, however, we recommend using the New-AzStorageAccount
### Create a provisioned v2 storage account (Azure CLI)
227
-
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.
214
+
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).
228
215
229
-
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.
216
+
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.
230
217
231
218
```bash
232
219
resourceGroupName="<my-resource-group>"
233
220
storageAccountName="<my-storage-account-name>"
234
221
region="<my-region>"
222
+
storageAccountKind="FileStorage"
235
223
236
-
# Valid SKUs are StandardV2_LRS (HDD Local provisioned v2), StandardV2_ZRS (HDD
237
-
# Zone provisioned v2), StandardV2_GRS (HDD Geo provisioned v2),
238
-
# StandardV2_GZRS (HDD GeoZone provisioned v2)
224
+
# Valid SKUs for provisioned v2 HDD file share are 'StandardV2_LRS' (HDD Local Pv2), 'StandardV2_GRS' (HDD Geo Pv2), 'StandardV2_ZRS' (HDD Zone Pv2), 'StandardV2_GZRS' (HDD GeoZone Pv2).
239
225
storageAccountSku="StandardV2_LRS"
240
226
241
-
# Note that kind provided is FileStorage. Combining this with a valid selected
242
-
# SKU will result in an HDD provisioned v2 file share with the selected
243
-
# redundancy. It is also possible to other types of storage accounts with the
244
-
# 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)
@@ -325,101 +298,44 @@ Follow these instructions to create a new Azure file share using the Azure porta
325
298
5. Select **Review + create** and then **Create** to create the Azure file share.
326
299
327
300
# [PowerShell](#tab/azure-powershell)
328
-
You can create an Azure file share with the `New-AzResource` cmdlet. The following PowerShell commands assume you set the `$storageAccount` variable when creating a storage account in the Azure PowerShell section.
301
+
You can create a provisioned v2 Azure file share with the `New-AzRmStorageShare` cmdlet. The following PowerShell commands assume you set the variables `$resourceGroupName` and `$storageAccountName` as defined in the "Create Storage Account" section.
329
302
330
-
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.
303
+
To create a provisioned v2 file share, use the following command. Remember to replace the values for the variables `$shareName`and `$provisionedStorageGib` with the desired selections for your file share deployment.
331
304
332
305
```powershell
333
-
$shareName = "<file-share>"
306
+
$shareName = "<name-of-the-file-share>"
334
307
335
-
# The provisioned storage size of the share in GiB. Valid range is 32 to
336
-
# 262,144.
308
+
# The provisioned storage size of the share in GiB. Valid range is 32 to 262,144.
337
309
$provisionedStorageGib = 1024
338
310
339
-
# The provisioned IOPS of the share. This is set to null here to get the
340
-
# recommended IOPS for the amount of provisioned storage provided, however, you
341
-
# can override this value if you have detail about how many IOPS your workload
342
-
# requires.
343
-
$provisionedIops = $null
344
-
345
-
# The provisioned throughput in MiB / sec of the share. This is set to null
346
-
# here to get the recommended throughput for the amount of provisioned storage
347
-
# provided, however, you can override this value if you have detail about how
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.
322
+
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.
378
323
379
-
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.
324
+
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.
380
325
381
326
```bash
382
327
shareName="<file-share>"
383
328
384
-
# The provisioned storage size of the share in GiB. Valid range is 32 to
329
+
# The provisioned storage size of the share in GiB. Valid range is 32 to
385
330
# 262,144.
386
331
provisionedStorageGib=1024
387
332
388
-
# The provisioned IOPS of the share. This is set to the empty string here to
389
-
# get the recommended IOPS for the amount of provisioned storage provided,
390
-
# however, you can override this value if you have detail about how many IOPS
391
-
# your workload requires.
392
-
provisionedIops=""
393
-
394
-
# The provisioned throughput in MiB / sec of the share. This is set to null
395
-
# here to get the recommended throughput for the amount of provisioned storage
396
-
# provided, however, you can override this value if you have detail about how
@@ -600,123 +516,44 @@ Follow these instructions to update the provisioning for your file share.
600
516
5. Select **Save** to save provisioning changes. Storage, IOPS, and throughput changes are effective within a few minutes after a provisioning change.
601
517
602
518
# [PowerShell](#tab/azure-powershell)
603
-
You can modify a provisioned v2 file share with the `Set-AzResource` cmdlet. Remember to replace the values for the variables `$resourceGroupName`, `$storageAccountName`, `$fileShareName`, `$provisionedStorageGib`, `$provisionedIops`, and `$provisionedThroughputMibPerSec` with the desired values for your file share.
519
+
You can modify a provisioned v2 file share with the `Update-AzRmStorageShare` cmdlet. Remember to replace the values for the variables `$resourceGroupName`, `$storageAccountName`, `$shareName`, `$provisionedMibps`, `$provisionedIops`, and `$provisionedStorageGib` with the desired values for your file share.
604
520
605
521
```powershell
606
522
# The path to the file share resource to be modified.
607
-
$resourceGroupName = "<resource-group>"
608
-
$storageAccountName = "<storage-account>"
609
-
$fileShareName = "<file-share>"
523
+
$resourceGroupName = "<my-resource-group>"
524
+
$storageAccountName = "<my-storage-account-name>"
525
+
$shareName = "<name-of-the-file-share>"
610
526
611
-
# The provisioning desired on the file share. Set these values to $null if no
527
+
# The provisioning desired on the file share. Delete the parameters if no
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.
540
+
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.
653
541
654
542
```bash
655
543
# The path to the file share resource to be modified.
656
544
resourceGroupName="<resource-group>"
657
545
storageAccountName="<storage-account>"
658
546
fileShareName="<file-share>"
659
547
660
-
# The provisioning desired on the file share. Set these values to the empty
661
-
#string if no change is desired.
548
+
# The provisioning desired on the file share. Delete the parameters if no
0 commit comments