Skip to content

Commit d318f98

Browse files
update date and the content
1 parent 8e4ef01 commit d318f98

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

articles/storage/files/storage-how-to-create-file-share.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: How to create and delete SMB and NFS Azure file share by using the
55
author: khdownie
66
ms.service: azure-file-storage
77
ms.topic: how-to
8-
ms.date: 01/10/2025
8+
ms.date: 03/05/2025
99
ms.author: kendownie
1010
ms.custom: devx-track-azurecli, references_regions, devx-track-azurepowershell
1111
---
@@ -162,24 +162,6 @@ The final step to create the storage account is to select the **Create** button
162162

163163
# [PowerShell](#tab/azure-powershell)
164164
### 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
178-
$result = Invoke-RestMethod -Method Get -Uri "https://management.azure.com/subscriptions/$($subscriptionID)/providers/Microsoft.Storage/skus?api-version=2024-01-01" -Headers @{"Authorization" = "Bearer $($token.Token)"}
179-
180-
# Return with the Regions Currently Supporting Provisioned v2 Service
181-
$result | Select-Object -ExpandProperty Value | Where-Object { $_.kind -eq "FileStorage" -and $_.name -like "*StandardV2*" } | Select-Object -Property @{ Name = "sku"; Expression = { $_.name } }, @{ Name = "location"; Expression = { $_.locations } }
182-
```
183165

184166
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).
185167

0 commit comments

Comments
 (0)