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

Pedro Ignácio 1 Reputation point
2021-09-11T17:54:37.257+00:00

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 Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,684 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,426 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,131 Reputation points Microsoft Employee
    2021-09-12T01:25:24.357+00:00

    Hello @Pedro Ignácio ,
    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://learn.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://learn.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://learn.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.

    0 comments No comments