az netappfiles snapshot policy
Manage Azure NetApp Files (ANF) Snapshot Policy Resources.
Commands
Name | Description | Type | Status |
---|---|---|---|
az netappfiles snapshot policy create |
Create a snapshot policy. |
Core | GA |
az netappfiles snapshot policy delete |
Delete snapshot policy. |
Core | GA |
az netappfiles snapshot policy list |
List snapshot policy. |
Core | GA |
az netappfiles snapshot policy show |
Get a snapshot Policy. |
Core | GA |
az netappfiles snapshot policy update |
Update a snapshot policy. |
Core | GA |
az netappfiles snapshot policy volumes |
List volumes associated with snapshot policy. |
Core | GA |
az netappfiles snapshot policy wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az netappfiles snapshot policy create
Create a snapshot policy.
az netappfiles snapshot policy create --account-name
--name
--resource-group
[--daily-hour]
[--daily-minute]
[--daily-snapshots]
[--days-of-month]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--hour]
[--hourly-minute]
[--hourly-snapshots]
[--location]
[--monthly-minute]
[--monthly-snapshots]
[--tags]
[--weekly-day]
[--weekly-hour]
[--weekly-minute]
[--weekly-snapshots]
Examples
Create an ANF snapshot policy
az netappfiles snapshot policy create -g mygroup --account-name myaccountname --snapshot-policy-name mysnapshotpolicyname -l westus2 --hourly-snapshots 1 --hourly-minute 5 --enabled true
Required Parameters
The name of the NetApp account.
The name of the snapshot policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Daily snapshot count to keep.
Indicates which days of the month snapshot should be taken. A comma delimited string.
The property to decide policy is enabled or not.
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Hourly snapshot count to keep.
The geo-location where the resource lives When not specified, the location of the resource group will be used.
Indicates which minute snapshot should be taken.
Monthly snapshot count to keep.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Weekly snapshot 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 snapshot policy delete
Delete snapshot policy.
az netappfiles snapshot policy delete [--account-name]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete an ANF snapshot policy
az netappfiles snapshot policy delete -g mygroup --account-name myaccname --snapshot-policy-name mysnapshotpolicyname
Optional Parameters
The name of the NetApp account.
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 snapshot policy.
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 snapshot policy list
List snapshot policy.
az netappfiles snapshot policy list --account-name
--resource-group
Examples
List the snapshot policies for the ANF account
az netappfiles snapshot 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 snapshot policy show
Get a snapshot Policy.
az netappfiles snapshot policy show [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Get an ANF snapshot policy
az netappfiles snapshot policy show -g mygroup --account-name myaccname --snapshot-policy-name mysnapshotpolicyname
Optional Parameters
The name of the NetApp account.
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 snapshot policy.
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 snapshot policy update
Update a snapshot policy.
az netappfiles snapshot policy update [--account-name]
[--add]
[--daily-hour]
[--daily-minute]
[--daily-snapshots]
[--days-of-month]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--hour]
[--hourly-minute]
[--hourly-snapshots]
[--ids]
[--monthly-minute]
[--monthly-snapshots]
[--name]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
[--weekly-day]
[--weekly-hour]
[--weekly-minute]
[--weekly-snapshots]
Examples
Update specific values for an ANF snapshot policy
az netappfiles snapshot policy update -g mygroup --account-name myaccountname --snapshot-policy-name mysnapshotpolicyname --daily-snapshots 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>
.
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Daily snapshot count to keep.
Indicates which days of the month snapshot should be taken. A comma delimited string.
The property to decide policy is enabled or not.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Hourly snapshot count to keep.
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.
Indicates which minute snapshot should be taken.
Monthly snapshot count to keep.
The name of the snapshot policy.
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.
Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.
Indicates which hour in UTC timezone a snapshot should be taken.
Indicates which minute snapshot should be taken.
Weekly snapshot 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 snapshot policy volumes
List volumes associated with snapshot policy.
Get the all ANF volumes associated with snapshot policy.
az netappfiles snapshot policy volumes [--account-name]
[--ids]
[--resource-group]
[--snapshot-policy-name]
[--subscription]
Examples
Get ANF volumes associated with the specified snapshot policy
az netappfiles snapshot policy volumes -g mygroup --account-name myaccname --snapshot-policy-name mysnapshotpolicyname
Optional Parameters
The name of the NetApp account.
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 snapshot policy.
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 snapshot policy wait
Place the CLI in a waiting state until a condition is met.
az netappfiles snapshot policy wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The name of the NetApp account.
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 snapshot policy.
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.