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
Copy file name to clipboardExpand all lines: articles/storage/files/storage-how-to-create-file-share.md
+41-97Lines changed: 41 additions & 97 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,33 +162,24 @@ 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
+
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
166
167
-
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.
167
+
To create a storage account for provisioned v2 file shares, use the following command. Remember to replace the values for the variables `$resourceGroup`, `$accountName`, `$region`, and `$storageAccountSku` with the desired values for your storage account deployment.
168
168
169
169
```PowerShell
170
-
$resourceGroupName = "<my-resource-group>"
171
-
$storageAccountName = "<my-storage-account-name>"
170
+
$resourceGroup = "<my-resource-group>"
171
+
$accountName = "<my-storage-account-name>"
172
172
$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)
173
+
$storageAccountKind = "FileStorage"
174
+
# Valid SKUs for provision v2 HDD file share are 'StandardV2_LRS' (HDD Local Pv2),
### Create a provisioned v1 or pay-as-you-go storage account (PowerShell)
@@ -325,52 +316,29 @@ Follow these instructions to create a new Azure file share using the Azure porta
325
316
5. Select **Review + create** and then **Create** to create the Azure file share.
326
317
327
318
# [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.
319
+
You can create a provisioned v2 Azure file share with the `New-AzRmStorageShare` cmdlet. The following PowerShell commands assume you set the variables `$resourceGroup` and `$accountName` as defined in the "Create Storage Account" section.
329
320
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.
321
+
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
322
332
323
```powershell
333
-
$shareName = "<file-share>"
324
+
$shareName = "<name-of-the-file-share>"
334
325
335
-
# The provisioned storage size of the share in GiB. Valid range is 32 to
336
-
# 262,144.
326
+
# The provisioned storage size of the share in GiB. Valid range is 32 to 262,144.
337
327
$provisionedStorageGib = 1024
338
328
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
@@ -600,52 +568,28 @@ Follow these instructions to update the provisioning for your file share.
600
568
5. Select **Save** to save provisioning changes. Storage, IOPS, and throughput changes are effective within a few minutes after a provisioning change.
601
569
602
570
# [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.
571
+
You can modify a provisioned v2 file share with the `Update-AzRmStorageShare` cmdlet. Remember to replace the values for the variables `$resourceGroup`, `$accountName`, `$shareName`, `$provisionedMibps`, `$provisionedIops`, and `$provisionedStorageGib` with the desired values for your file share.
604
572
605
573
```powershell
606
574
# The path to the file share resource to be modified.
607
-
$resourceGroupName = "<resource-group>"
608
-
$storageAccountName = "<storage-account>"
609
-
$fileShareName = "<file-share>"
575
+
$resourceGroup = "<my-resource-group>"
576
+
$accountName = "<my-storage-account-name>"
577
+
$shareName = "<name-of-the-file-share>"
610
578
611
-
# The provisioning desired on the file share. Set these values to $null if no
612
-
# change is desired.
579
+
# The provisioning desired on the file share. Delete the parameters if no change is desired.
0 commit comments