handsome-state-59775
05/10/2021, 8:51 PMDiagnostics:
azure-native:storage:FileShare (fileShare):
error: cannot check existence of resource '/subscriptions/****/resourceGroups/****/providers/Microsoft.Storage/storageAccounts/****/fileServices/default/shares/****': status code 400, {"error":{"code":"FeatureNotSupportedForAccount","message":"File is not supported for the account."}}
Any insights?To create a FileStorage storage account, ensure the Performance radio button is set to Premium and Fileshares is selected in the Premium account type drop-down list.When I change to the following:
az.storage.StorageAccount(
kind=az_storage.Kind.FILE_STORAGE, # TO MATCH PREMIUM_LRS
sku=az_storage.SkuArgs(
name=az_storage.SkuName.PREMIUM_LRS,
),
...
)
... I start getting this instead:
azure-native:storage:FileShare (fileShare):
error: autorest/azure: Service returned an error. Status=400 Code="InvalidHeaderValue" Message="The value for one of the HTTP headers is not in the correct format.\nRequestId:3d8b324b-d01a-0068-25ea-453b7f000000\nTime:2021-05-10T22:18:10.0964124Z"
sparse-park-68967
05/10/2021, 11:38 PMhandsome-state-59775
05/11/2021, 4:46 AM