Forrest logo
back to the az tool

az-storage:tldr:00afe

az-storage: Create a storage account.
$ az storage account create -g ${group_name} -n ${account_name} -l ${location} --sku ${account_sku}
try on your machine

This command is used to create a storage account in Azure using the Azure CLI (Command Line Interface). Here is what each argument in the command represents:

  • az: This is the command to interact with Azure resources using the Azure CLI.
  • storage account create: This is the specific command to create a storage account.
  • -g ${group_name}: This specifies the resource group name in which the storage account will be created. ${group_name} is a placeholder that should be replaced with the actual name of the resource group.
  • -n ${account_name}: This specifies the name of the storage account. ${account_name} is a placeholder that should be replaced with the desired name for the storage account.
  • -l ${location}: This specifies the location or region where the storage account will be created. ${location} is a placeholder that should be replaced with the desired location.
  • --sku ${account_sku}: This specifies the pricing tier or SKU (Stock Keeping Unit) for the storage account. ${account_sku} is a placeholder that should be replaced with the desired SKU for the storage account.

By executing this command with the appropriate values, a storage account will be created in Azure with the specified resource group, name, location, and pricing tier.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool