mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 08:47:40 +00:00
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# az storage account
|
|
|
|
> Manage storage accounts in Azure.
|
|
> Part of `azure-cli` (also known as `az`).
|
|
> More information: <https://learn.microsoft.com/cli/azure/storage/account>.
|
|
|
|
- Create an storage account:
|
|
|
|
`az storage account create {{[-n|--name]}} {{storage_account_name}} {{[-g|--resource-group]}} {{azure_resource_group}} --location {{azure_location}} --sku {{storage_account_sku}}`
|
|
|
|
- Generate a shared access signature for a specific storage account:
|
|
|
|
`az storage account generate-sas --account-name {{storage_account_name}} {{[-n|--name]}} {{account_name}} --permissions {{sas_permissions}} --expiry {{expiry_date}} --services {{storage_services}} --resource-types {{resource_types}}`
|
|
|
|
- List storage accounts:
|
|
|
|
`az storage account list {{[-g|--resource-group]}} {{azure_resource_group}}`
|
|
|
|
- Delete a specific storage account:
|
|
|
|
`az storage account delete {{[-n|--name]}} {{storage_account_name}} {{[-g|--resource-group]}} {{azure_resource_group}}`
|