2021-10-01 20:58:55 +01:00
|
|
|
# az storage
|
|
|
|
|
|
|
|
> Manage Azure Cloud Storage resources.
|
2023-10-15 08:42:29 +01:00
|
|
|
> Part of `azure-cli` (also known as `az`).
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/storage>.
|
2021-10-01 20:58:55 +01:00
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- Create a storage account specifying a [l]ocation:
|
2021-10-01 20:58:55 +01:00
|
|
|
|
2023-10-14 09:12:19 +01:00
|
|
|
`az storage account create --resource-group {{group_name}} --name {{account_name}} -l {{location}} --sku {{account_sku}}`
|
2021-10-01 20:58:55 +01:00
|
|
|
|
|
|
|
- List all storage accounts in a resource group:
|
|
|
|
|
2023-10-14 09:12:19 +01:00
|
|
|
`az storage account list --resource-group {{group_name}}`
|
2021-10-01 20:58:55 +01:00
|
|
|
|
|
|
|
- List the access keys for a storage account:
|
|
|
|
|
2023-10-14 09:12:19 +01:00
|
|
|
`az storage account keys list --resource-group {{group_name}} --name {{account_name}}`
|
2021-10-01 20:58:55 +01:00
|
|
|
|
|
|
|
- Delete a storage account:
|
|
|
|
|
2023-10-14 09:12:19 +01:00
|
|
|
`az storage account delete --resource-group {{group_name}} --name {{account_name}}`
|
2021-10-01 20:58:55 +01:00
|
|
|
|
|
|
|
- Update the minimum tls version setting for a storage account:
|
|
|
|
|
2023-10-14 09:12:19 +01:00
|
|
|
`az storage account update --min-tls-version {{TLS1_0|TLS1_1|TLS1_2}} --resource-group {{group_name}} --name {{account_name}}`
|