Skip to content

Commit e475eb2

Browse files
Update API version for Azure Storage SKUs
1 parent f9bf1d8 commit e475eb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

articles/storage/files/files-redundancy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ finally {
233233
}
234234
235235
# Call List SKUs
236-
$uri = "https://management.azure.com/subscriptions/$subscriptionID/providers/Microsoft.Storage/skus?api-version=2024-01-01"
236+
$uri = "https://management.azure.com/subscriptions/$subscriptionID/providers/Microsoft.Storage/skus?api-version=2025-08-01"
237237
$headers = @{ Authorization = "Bearer $plainToken" }
238238
239239
$result = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers
@@ -310,7 +310,7 @@ subscriptionID="your-subscription-id-number"
310310
token=$(az account get-access-token --query accessToken --output tsv)
311311

312312
# Invoke SRP list SKU API, and get the returned SKU list
313-
result=$(az rest --method get --uri "https://management.azure.com/subscriptions/$subscriptionID/providers/Microsoft.Storage/skus?api-version=2024-01-01" --headers "Authorization=Bearer $token")
313+
result=$(az rest --method get --uri "https://management.azure.com/subscriptions/$subscriptionID/providers/Microsoft.Storage/skus?api-version=2025-08-01" --headers "Authorization=Bearer $token")
314314

315315
# Filter the SKU list to get the required information, customization required here to get the best result.
316316
filteredResult=$(echo $result | jq '.value[] | select(.resourceType == "storageAccounts" and (.kind == "FileStorage" or .kind == "StorageV2") and (.name | test("^(?!Standard_RAGRS|Standard_RAGZRS)")))' )

0 commit comments

Comments
 (0)