az durabletask retention-policy
Note
This reference is part of the durabletask extension for the Azure CLI (version 2.70.0 or higher). The extension will automatically install the first time you run an az durabletask retention-policy command. Learn more about extensions.
Manage Retention Policy.
Commands
Name | Description | Type | Status |
---|---|---|---|
az durabletask retention-policy create |
Create a Retention Policy on a Durabletask Scheduler. |
Extension | GA |
az durabletask retention-policy delete |
Delete a Retention Policy on a Durabletask Scheduler. |
Extension | GA |
az durabletask retention-policy show |
Get a Retention Policy. |
Extension | GA |
az durabletask retention-policy wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az durabletask retention-policy create
Create a Retention Policy on a Durabletask Scheduler.
az durabletask retention-policy create --resource-group
--scheduler-name
[--canceled-days]
[--completed-days]
[--default-days]
[--failed-days]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--terminated-days]
Examples
Create a new retention policy for a scheduler with a default retention period of 30 days.
az durabletask retention-policy create -g "example-rg" --scheduler-name "example-scheduler" --retention-days 30
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the Scheduler.
Optional Parameters
The number of days to retain canceled orchestrations.
The number of days to retain completed orchestrations.
The number of days to retain orchestrations.
The number of days to retain failed orchestrations.
Do not wait for the long-running operation to finish.
The number of days to retain terminated orchestrations.
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 durabletask retention-policy delete
Delete a Retention Policy on a Durabletask Scheduler.
az durabletask retention-policy delete [--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--scheduler-name]
[--subscription]
[--yes]
Examples
Delete a Retention Policy on a Scheduler
az durabletask retention-policy delete -g "example-rg" --scheduler-name "example-scheduler"
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.
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>
.
The name of the Scheduler.
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 durabletask retention-policy show
Get a Retention Policy.
az durabletask retention-policy show [--ids]
[--resource-group]
[--scheduler-name]
[--subscription]
Examples
Show details of a specific retention policy on a Scheduler.
az durabletask retention-policy show -g "example-rg" --scheduler-name "example-scheduler"
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the Scheduler.
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 durabletask retention-policy wait
Place the CLI in a waiting state until a condition is met.
az durabletask retention-policy wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--scheduler-name]
[--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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the Scheduler.
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.