1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 17:15:23 +02:00
tldr/pages/common/az-storage.md

26 lines
990 B
Markdown
Raw Normal View History

2021-10-01 12:58:55 -07:00
# az storage
> Manage Azure Cloud Storage resources.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/storage>.
2021-10-01 12:58:55 -07:00
- Create a storage account specifying a location:
2021-10-01 12:58:55 -07:00
`az storage account create {{[-g|--resource-group]}} {{group_name}} {{[-n|--name]}} {{account_name}} {{[-l|--location]}} {{location}} --sku {{account_sku}}`
2021-10-01 12:58:55 -07:00
- List all storage accounts in a resource group:
`az storage account list {{[-g|--resource-group]}} {{group_name}}`
2021-10-01 12:58:55 -07:00
- List the access keys for a storage account:
`az storage account keys list {{[-g|--resource-group]}} {{group_name}} {{[-n|--name]}} {{account_name}}`
2021-10-01 12:58:55 -07:00
- Delete a storage account:
`az storage account delete {{[-g|--resource-group]}} {{group_name}} {{[-n|--name]}} {{account_name}}`
2021-10-01 12:58:55 -07:00
- Update the minimum tls version setting for a storage account:
`az storage account update --min-tls-version {{TLS1_0|TLS1_1|TLS1_2}} {{[-g|--resource-group]}} {{group_name}} {{[-n|--name]}} {{account_name}}`