az netappfiles snapshot

Manage Azure NetApp Files (ANF) Snapshot Resources.

Commands

az netappfiles snapshot create

Create a new Azure NetApp Files (ANF) snapshot.

az netappfiles snapshot delete

Delete the specified ANF snapshot.

az netappfiles snapshot list

List the snapshots of an ANF volume.

az netappfiles snapshot show

Get the specified ANF snapshot.

az netappfiles snapshot create

Create a new Azure NetApp Files (ANF) snapshot.

az netappfiles snapshot create --account-name
                               --location
                               --name
                               --pool-name
                               --resource-group
                               --volume-name
                               [--subscription]

Examples

Create an ANF snapshot

az netappfiles snapshot create -g mygroup --account-name myaccname --pool-name mypoolname --volume-name myvolname --name mysnapname -l eastus

Required Parameters

--account-name -a

The name of the ANF account.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name --snapshot-name -n -s

The name of the ANF snapshot.

--pool-name -p

The name of the ANF pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--volume-name -v

The name of the ANF volume.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az netappfiles snapshot delete

Delete the specified ANF snapshot.

az netappfiles snapshot delete [--account-name]
                               [--ids]
                               [--name]
                               [--pool-name]
                               [--resource-group]
                               [--subscription]
                               [--volume-name]

Examples

Delete an ANF snapshot

az netappfiles snapshot delete -g mygroup --account-name myaccname --pool-name mypoolname --volume-name myvolname --name mysnapname

Optional Parameters

--account-name -a

The name of the ANF account.

--ids

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 --snapshot-name -n -s

The name of the ANF snapshot.

--pool-name -p

The name of the ANF pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--volume-name -v

The name of the ANF volume.

az netappfiles snapshot list

List the snapshots of an ANF volume.

az netappfiles snapshot list --account-name
                             --pool-name
                             --resource-group
                             --volume-name
                             [--query-examples]
                             [--subscription]

Examples

list the snapshots of an ANF volume

az netappfiles snapshot list -g mygroup --account-name myaccname --pool-name mypoolname --volume-name myvolname

Required Parameters

--account-name -a

The name of the ANF account.

--pool-name -p

The name of the ANF pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--volume-name -v

The name of the ANF volume.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az netappfiles snapshot show

Get the specified ANF snapshot.

az netappfiles snapshot show [--account-name]
                             [--ids]
                             [--name]
                             [--pool-name]
                             [--query-examples]
                             [--resource-group]
                             [--subscription]
                             [--volume-name]

Examples

Return the specified ANF snapshot

az netappfiles snapshot show -g mygroup --account-name myaccname --pool-name mypoolname --volume-name myvolname --name mysnapname

Optional Parameters

--account-name -a

The name of the ANF account.

--ids

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 --snapshot-name -n -s

The name of the ANF snapshot.

--pool-name -p

The name of the ANF pool.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--volume-name -v

The name of the ANF volume.