Describe the bug
The following command works with the Azure CLI:
az storage account create -g rg-blue-ingress-v1 -n asdfq25g7ncnrmssrw85gn2g --sku Premium_LRS --kind BlockBlobStorage --access-tier Hot
According to the docs on Optional Parameters, the --access-tier flag should implicitly be Premium (likely null in the JSON representation of the Storage Account), and that it cannot be changed.
The above command changes the access tier to "Hot".
You can do the same for the "Cool" access tier:
az storage account create -g rg-blue-ingress-v1 -n asdfq25g7ncnrmssrw85gn2g --sku Premium_LRS --kind BlockBlobStorage --access-tier Cool
Related command
az storage account create -g rg-blue-ingress-v1 -n asdfq25g7ncnrmssrw85gn2g --sku Premium_LRS --kind BlockBlobStorage --access-tier Hot
Errors
No errors. The Storage Account gets created and the improper access tier can be inspected from the Azure Portal.
Issue script & Debug output
Too much effort.
Expected behavior
The Azure CLI, for Storage Account creation, shouldn't allow the --access-tier flag to be set (or allow any values other than say Premium) when the --kind flag is set to BlockBlobStorage.
Environment Summary
azure-cli 2.54.0
core 2.54.0
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Additional context
No response
Describe the bug
The following command works with the Azure CLI:
According to the docs on Optional Parameters, the
--access-tierflag should implicitly bePremium(likely null in the JSON representation of the Storage Account), and that it cannot be changed.The above command changes the access tier to "Hot".
You can do the same for the "Cool" access tier:
Related command
az storage account create -g rg-blue-ingress-v1 -n asdfq25g7ncnrmssrw85gn2g --sku Premium_LRS --kind BlockBlobStorage --access-tier Hot
Errors
No errors. The Storage Account gets created and the improper access tier can be inspected from the Azure Portal.
Issue script & Debug output
Too much effort.
Expected behavior
The Azure CLI, for Storage Account creation, shouldn't allow the
--access-tierflag to be set (or allow any values other than sayPremium) when the--kindflag is set toBlockBlobStorage.Environment Summary
azure-cli 2.54.0
core 2.54.0
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Additional context
No response