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
+35-30Lines changed: 35 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,24 +162,38 @@ 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
+
Currently, provisioned v2 file shares are only available in a limited number of regions. To check the supported regions in PowerShell, write down the subscription ID when logging into the Azure account, and proceed with the following command.
166
+
167
+
```powershell
168
+
# Login to Azure Account
169
+
Connect-AzAccount
170
+
171
+
# Subscription ID in GUID Format
172
+
$subscriptionID = "your-subscriptionID-number"
173
+
174
+
# Get Token
175
+
$token = Get-AzAccessToken
176
+
177
+
# Invoke SRP List SKU API and Get the Returned SKU List
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
185
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.
186
+
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
187
169
188
```PowerShell
170
-
$resourceGroup = "<my-resource-group>"
171
-
$accountName = "<my-storage-account-name>"
189
+
$resourceGroupName = "<my-resource-group>"
190
+
$storageAccountName = "<my-storage-account-name>"
172
191
$region = "<my-region>"
173
192
$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)
@@ -316,7 +330,7 @@ Follow these instructions to create a new Azure file share using the Azure porta
316
330
5. Select **Review + create** and then **Create** to create the Azure file share.
317
331
318
332
# [PowerShell](#tab/azure-powershell)
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.
333
+
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.
320
334
321
335
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.
@@ -568,27 +577,23 @@ Follow these instructions to update the provisioning for your file share.
568
577
5. Select **Save** to save provisioning changes. Storage, IOPS, and throughput changes are effective within a few minutes after a provisioning change.
569
578
570
579
# [PowerShell](#tab/azure-powershell)
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.
580
+
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.
572
581
573
582
```powershell
574
583
# The path to the file share resource to be modified.
575
-
$resourceGroup = "<my-resource-group>"
576
-
$accountName = "<my-storage-account-name>"
584
+
$resourceGroupName = "<my-resource-group>"
585
+
$storageAccountName = "<my-storage-account-name>"
577
586
$shareName = "<name-of-the-file-share>"
578
587
579
-
# The provisioning desired on the file share. Delete the parameters if no change is desired.
588
+
# The provisioning desired on the file share. Delete the parameters if no
0 commit comments