question

PedroIgncio-2951 avatar image
0 Votes"
PedroIgncio-2951 asked shivapatpi-MSFT edited

What's the difference between azure cli "az storage account create" command --sku and --kind parameters?

When creating a storage account using the azure cli, the --sku and --kind parameter seems to have the same functionality. If not so, what's the difference between them?

azure-storage-accountsazure-blob-storagedotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered shivapatpi-MSFT edited

Hello @PedroIgncio-2951 ,
Both the options have different functionality.
If you just run the below command with out those 2 options
az storage account create -g strdemo -n strdemo
By default sku will be Standard_RAGRS and Kind will be StorageV2

When the storage account kind is StorageV2 , it means that storage account has a provision to store blobs, tables , queues along with file storage.

131255-image.png


If you create BlobStorage using the below command:
az storage account create -g strdemo -n strdemokindfs --kind BlobStorage --access-tier Hot (More details about access tiers https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers)

It means you can only store Blobs in the containers

131237-image.png



You can find relevant examples here: https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-latest#az_storage_account_create

The purpose of SKU parameter is completely different which has the values like LRS , GRS, RAGRS etc. which defines how the replication should happen and how many copies of the data to be stored.
More details on the storage redundancy : https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy


To summarize:

  • Kind controls what type of data can be storage in the storage account

  • SKU controls how many copies of the data to be stored i.e. how many replicas

Let us know if you have additional questions.

Regards,
Shiva.






image.png (6.6 KiB)
image.png (3.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.