Azure-Samples / Azure-Samples/azure-files-samples

AccountType StandardV2_LRS is only valid for api-version 2023-05-01 and above

Open
#260 5 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.