az storage account blob-inventory-policy
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage storage account Blob Inventory Policy.
Commands
Name | Description | Type | Status |
---|---|---|---|
az storage account blob-inventory-policy create |
Create Blob Inventory Policy for storage account. |
Core | Preview |
az storage account blob-inventory-policy delete |
Delete Blob Inventory Policy associated with the specified storage account. |
Core | Preview |
az storage account blob-inventory-policy show |
Show Blob Inventory Policy properties associated with the specified storage account. |
Core | Preview |
az storage account blob-inventory-policy update |
Update Blob Inventory Policy associated with the specified storage account. |
Core | Preview |
az storage account blob-inventory-policy create
Command group 'storage account blob-inventory-policy' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create Blob Inventory Policy for storage account.
az storage account blob-inventory-policy create --account-name
--policy
[--resource-group]
Examples
Create Blob Inventory Policy through json file for storage account.
az storage account blob-inventory-policy create -g myresourcegroup --account-name mystorageaccount --policy @policy.json
Required Parameters
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
The Storage Account Blob Inventory Policy, string in JSON format or json file path. See more details in https://docs.microsoft.com/azure/storage/blobs/blob-inventory#inventory-policy.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az storage account blob-inventory-policy delete
Command group 'storage account blob-inventory-policy' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete Blob Inventory Policy associated with the specified storage account.
az storage account blob-inventory-policy delete --account-name
[--resource-group]
[--yes]
Examples
Delete Blob Inventory Policy associated with the specified storage account without prompt.
az storage account blob-inventory-policy delete -g ResourceGroupName --account-name storageAccountName -y
Required Parameters
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az storage account blob-inventory-policy show
Command group 'storage account blob-inventory-policy' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show Blob Inventory Policy properties associated with the specified storage account.
az storage account blob-inventory-policy show --account-name
[--resource-group]
Examples
Show Blob Inventory Policy properties associated with the specified storage account without prompt.
az storage account blob-inventory-policy show -g ResourceGroupName --account-name storageAccountName
Required Parameters
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az storage account blob-inventory-policy update
Command group 'storage account blob-inventory-policy' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update Blob Inventory Policy associated with the specified storage account.
az storage account blob-inventory-policy update --account-name
[--add]
[--force-string]
[--remove]
[--resource-group]
[--set]
Examples
Update Blob Inventory Policy associated with the specified storage account.
az storage account blob-inventory-policy update -g ResourceGroupName --account-name storageAccountName --set "policy.rules[0].name=newname"
Required Parameters
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.