Azure-Samples / Azure-Samples/azure-files-samples
AccountType StandardV2_LRS is only valid for api-version 2023-05-01 and above
- Dominant language
- PowerShell
- Stars
- 261
- Forks
- 202
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 4
Description
Hi,
I have created an azure storage account with azure files enabled and the new pricing model (V2).
I also tried to enable AD DS authentication as decribed in the docs and I have got the foloowing error:
Set-AzStorageAccount : AccountType StandardV2_LRS is only valid for api-version 2023-05-01 and above.
At C:\Users\Kneetz\Documents\WindowsPowerShell\Modules\AzFilesHybrid\0.3.2.0\AzFilesHybrid.psm1:5109 char:9
+ Set-AzStorageAccount -ResourceGroupName $ResourceGroupName -A ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzStorageAccount], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.SetAzureStorageAccountCommand
tried to add apiversion to the command set-azstorageaccount, but that does not work..
any ideas?
Contributor guide
Assessment
This issue has not been assessed yet.