az storage-actions task
Note
This reference is part of the storage-actions extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az storage-actions task command. Learn more about extensions.
Command group 'az storage-actions' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage StorageTask.
Commands
Name | Description | Type | Status |
---|---|---|---|
az storage-actions task create |
Create a new storage task resource with the specified parameters. If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed. |
Extension | Preview |
az storage-actions task delete |
Delete the storage task resource. |
Extension | Preview |
az storage-actions task list |
List all the storage tasks available under the subscription. |
Extension | Preview |
az storage-actions task list-assignment |
List all the storage task assignments available under the given resource group. |
Extension | Preview |
az storage-actions task list-report |
List the storage tasks run report summary for each assignment. |
Extension | Preview |
az storage-actions task preview-action |
Runs the input conditions against input object metadata properties and designates matched objects in response. |
Extension | Preview |
az storage-actions task show |
Get the storage task properties. |
Extension | Preview |
az storage-actions task update |
Update a storage task resource with the specified parameters. If a storage task is already created and a subsequent update request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent update request is issued with the exact same set of properties, the request will succeed. |
Extension | Preview |
az storage-actions task wait |
Place the CLI in a waiting state until a condition is met. |
Extension | Preview |
az storage-actions task create
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a new storage task resource with the specified parameters. If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.
az storage-actions task create --action
--description
--enabled {0, 1, f, false, n, no, t, true, y, yes}
--identity
--name
--resource-group
[--location]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--tags]
Examples
storage-actions task create
az storage-actions task create -g rgteststorageactions -n testtask1 --identity "{type:SystemAssigned}" --tags "{key1:value1}" --action "{if:{condition:'[[equals(AccessTier,'/Cool'/)]]',operations:[{name:'SetBlobTier',parameters:{tier:'Hot'},onSuccess:'continue',onFailure:'break'}]},else:{operations:[{name:'DeleteBlob',onSuccess:'continue',onFailure:'break'}]}}" --description StorageTask1 --enabled true
Required Parameters
The storage task action that is executed Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Text that describes the purpose of the storage task.
Storage Task is enabled when set to true and disabled when set to false.
The managed service identity of the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The geo-location where the resource lives When not specified, the location of the resource group will be used.
Do not wait for the long-running operation to finish.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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-actions task delete
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete the storage task resource.
az storage-actions task delete [--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
storage-actions task delete
az storage-actions task delete -g rgteststorageactions -n testtask1
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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-actions task list
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all the storage tasks available under the subscription.
az storage-actions task list [--max-items]
[--next-token]
[--resource-group]
Examples
storage-actions task list
az storage-actions task list -g rgteststorageactions
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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-actions task list-assignment
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all the storage task assignments available under the given resource group.
az storage-actions task list-assignment --name
--resource-group
[--max-items]
[--maxpagesize]
[--next-token]
Examples
storage-actions task list-assignment
az storage-actions task list-assignment -g rgteststorageactions -n testtask1
Required Parameters
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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-actions task list-report
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the storage tasks run report summary for each assignment.
az storage-actions task list-report --name
--resource-group
[--filter]
[--max-items]
[--maxpagesize]
[--next-token]
Examples
storage-actions task list-report
az storage-actions task list-report -g rgteststorageactions -n testtask1
Required Parameters
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Optional. When specified, it can be used to query using reporting properties.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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-actions task preview-action
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Runs the input conditions against input object metadata properties and designates matched objects in response.
az storage-actions task preview-action --action
--blobs
--container
[--ids]
[--location]
[--subscription]
Examples
storage-actions task preview-action
az storage-actions task preview-action -l eastus2euap --action "{if:{condition:'[[equals(AccessTier,'/Cool'/)]]'},else-block-exists:True}" --blobs "[{name:'folder2/file1.txt',properties:[{key:'Creation-Time',value:'Wed, 06 Jun 2023 05:23:29 GMT'},{key:'Last-Modified',value:'Wed, 06 Jun 2023 05:23:29 GMT'},{key:'Etag',value:'0x6FB67175454D36D'}],metadata:[{key:'mKey2',value:'mValue2'}],tags:[{key:'tKey2',value:'tValue2'}]}]" --container "{name:'firstContainer',metadata:[{key:'mContainerKey1',value:'mContainerValue1'}]}"
Required Parameters
Preview action container properties to be tested for a match with the provided condition. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Preview action container properties to be tested for a match with the provided condition. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Preview action container properties to be tested for a match with the provided condition. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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-actions task show
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get the storage task properties.
az storage-actions task show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
storage-actions task show
az storage-actions task show -g rgteststorageactions -n testtask1
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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-actions task update
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a storage task resource with the specified parameters. If a storage task is already created and a subsequent update request is issued with different properties, the storage task properties will be updated. If a storage task is already created and a subsequent update request is issued with the exact same set of properties, the request will succeed.
az storage-actions task update [--action]
[--add]
[--description]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--identity]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
Examples
storage-actions task update
az storage-actions task update -g rgteststorageactions -n testtask1 --identity "{type:SystemAssigned}" --tags "{key2:value2}" --action "{if:{condition:'[[equals(BlobType,'/BlockBlob'/)]]',operations:[{name:'SetBlobTags',parameters:{Archive-Status:'Archived'},onSuccess:'continue',onFailure:'break'}]},else:{operations:[{name:'UndeleteBlob',onSuccess:'continue',onFailure:'break'}]}}" --description StorageTask1Update --enabled true
Optional Parameters
The storage task action that is executed Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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>
.
Text that describes the purpose of the storage task.
Storage Task is enabled when set to true and disabled when set to false.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
The managed service identity of the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Do not wait for the long-running operation to finish.
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>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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-actions task wait
Command group 'az storage-actions task' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Place the CLI in a waiting state until a condition is met.
az storage-actions task wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.