az netappfiles account backup-policy
Manage Azure NetApp Files (ANF) Bakup Policy Resources.
Commands
Name | Description | Type | Status |
---|---|---|---|
az netappfiles account backup-policy create |
Create a backup policy for Netapp Account. |
Core | GA |
az netappfiles account backup-policy delete |
Delete backup policy. |
Core | GA |
az netappfiles account backup-policy list |
List backup policies for Netapp Account. |
Core | GA |
az netappfiles account backup-policy show |
Get a particular backup Policy. |
Core | GA |
az netappfiles account backup-policy update |
Update a backup policy for Netapp Account. |
Core | GA |
az netappfiles account backup-policy wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az netappfiles account backup-policy create
Create a backup policy for Netapp Account.
az netappfiles account backup-policy create --account-name
--backup-policy-name
--resource-group
[--daily-backups]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--location]
[--monthly-backups]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--tags]
[--weekly-backups]
Examples
Create an ANF backup policy
az netappfiles account backup-policy create -g mygroup --account-name myaccountname --backup-policy-name mybackuppolicyname -l westus2 --daily-backups 1 --enabled true
Required Parameters
The name of the NetApp account.
Backup policy Name which uniquely identify backup policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Daily backups count to keep.
The property to decide policy is enabled or not.
The geo-location where the resource lives When not specified, the location of the resource group will be used.
Monthly backups count to keep.
Do not wait for the long-running operation to finish.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Weekly backups count to keep.
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 netappfiles account backup-policy delete
Delete backup policy.
az netappfiles account backup-policy delete [--account-name]
[--backup-policy-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete the specified ANF backup policy.
az netappfiles account backup-policy delete -g mygroup --account-name myaccname --backup-policy-name mybackuppolicyname
Optional Parameters
The name of the NetApp account.
Backup policy Name which uniquely identify backup policy.
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>
.
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 netappfiles account backup-policy list
List backup policies for Netapp Account.
az netappfiles account backup-policy list --account-name
--resource-group
Examples
List the ANF backup policy for the specified account
az netappfiles account backup-policy list -g mygroup --account-name myname
Required Parameters
The name of the NetApp account.
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 netappfiles account backup-policy show
Get a particular backup Policy.
az netappfiles account backup-policy show [--account-name]
[--backup-policy-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Get an ANF backup policy
az netappfiles account backup-policy show -g mygroup --account-name myaccname --backup-policy-name mybackuppolicyname
Optional Parameters
The name of the NetApp account.
Backup policy Name which uniquely identify backup policy.
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>
.
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 netappfiles account backup-policy update
Update a backup policy for Netapp Account.
az netappfiles account backup-policy update [--account-name]
[--add]
[--backup-policy-name]
[--daily-backups]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--monthly-backups]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
[--weekly-backups]
Examples
Update specific values for an ANF backup policy
az netappfiles account backup-policy update -g mygroup --account-name myaccountname --backup-policy-name mybackuppolicyname --daily-backups 1 --enabled false
Optional Parameters
The name of the NetApp account.
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>
.
Backup policy Name which uniquely identify backup policy.
Daily backups count to keep.
The property to decide policy is enabled or not.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
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.
Monthly backups count to keep.
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.
Weekly backups count to keep.
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 netappfiles account backup-policy wait
Place the CLI in a waiting state until a condition is met.
az netappfiles account backup-policy wait [--account-name]
[--backup-policy-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The name of the NetApp account.
Backup policy Name which uniquely identify backup policy.
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>
.
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.