mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 16:55:34 +02:00
az-storage-container: add page (#8736)
This commit is contained in:
parent
81730e29d1
commit
c2b2ce07b4
1 changed files with 21 additions and 0 deletions
21
pages/common/az-storage-container.md
Normal file
21
pages/common/az-storage-container.md
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# az storage container
|
||||||
|
|
||||||
|
> Manage blob storage containers in Azure.
|
||||||
|
> Part of `azure-cli`.
|
||||||
|
> More information: <https://learn.microsoft.com/cli/azure/storage/container>.
|
||||||
|
|
||||||
|
- Create a container in a storage account:
|
||||||
|
|
||||||
|
`az storage container create --account-name {{storage_account_name}} --name {{container_name}} --public-access {{access_level}} --fail-on-exist`
|
||||||
|
|
||||||
|
- Generate a shared access signature for the container:
|
||||||
|
|
||||||
|
`az storage container generate-sas --account-name {{storage_account_name}} --name {{container_name}} --permissions {{sas_permissions}} --expiry {{expiry_date}} --https-only`
|
||||||
|
|
||||||
|
- List containers in a storage account:
|
||||||
|
|
||||||
|
`az storage container list --account-name {{storage_account_name}} --prefix {{filter_prefix}}`
|
||||||
|
|
||||||
|
- Mark the specified container for deletion:
|
||||||
|
|
||||||
|
`az storage container delete --account-name {{storage_account_name}} --name {{container_name}} --fail-not-exist`
|
Loading…
Add table
Reference in a new issue