Skip to content

Azure CLI allows the creation of Premium Block Blob Storage with Hot and Cool Access Tiers #27843

@gjstreicher-ims

Description

@gjstreicher-ims

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.Storageaz storageact-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions