az netappfiles volume replication

Manage Azure NetApp Files (ANF) Volume replication operations.

Commands

az netappfiles volume replication approve

Authorize a volume as a replication destination for a specified source.

az netappfiles volume replication remove

Delete a volume replication for the specified destination volume. The data replication objects of source and destination volumes will be removed.

az netappfiles volume replication resume

Resync a volume replication for the specified destination volume. The replication process is resumed from source to destination.

az netappfiles volume replication status

Get the replication status for the specified replication volume.

az netappfiles volume replication suspend

Suspend/break a volume replication for the specified destination volume. The replication process is suspended until resumed or deleted.

az netappfiles volume replication approve

Authorize a volume as a replication destination for a specified source.

az netappfiles volume replication approve --account-name
                                          --name
                                          --pool-name
                                          --remote-volume-resource-id
                                          --resource-group
                                          [--subscription]

Examples

Authorize the volume as the replication destination for the source

az netappfiles volume replication approve -g mygroup --account-name myaccname --pool-name mypoolname --name mysourcevolname --remote-volume-resource-id /subscriptions/69a75bda-882e-44d5-8431-63421204131c/resourceGroups/mygroup1/providers/Microsoft.NetApp/netAppAccounts/myaccount1/capacityPools/mypool1/volumes/mydestinationvolume

Required Parameters

--account-name -a

The name of the ANF account.

--name --volume-name -n -v

The name of the replication source volume.

--pool-name -p

The name of the ANF pool.

--remote-volume-resource-id -d

The resource id of the destination replication volume.

--resource-group -g

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

Optional Parameters

--subscription

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

az netappfiles volume replication remove

Delete a volume replication for the specified destination volume. The data replication objects of source and destination volumes will be removed.

az netappfiles volume replication remove [--account-name]
                                         [--ids]
                                         [--name]
                                         [--pool-name]
                                         [--resource-group]
                                         [--subscription]

Examples

Delete the replication objects of the paired volumes

az netappfiles volume replication remove -g mygroup --account-name myaccname --pool-name mypoolname --name mydestinationvolname

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 --volume-name -n -v

The name of the replication destination volume.

--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.

az netappfiles volume replication resume

Resync a volume replication for the specified destination volume. The replication process is resumed from source to destination.

az netappfiles volume replication resume [--account-name]
                                         [--ids]
                                         [--name]
                                         [--pool-name]
                                         [--resource-group]
                                         [--subscription]

Examples

Resume the replication process

az netappfiles volume replication resume -g mygroup --account-name myaccname --pool-name mypoolname --name mydestinationvolname

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 --volume-name -n -v

The name of the replication destination volume.

--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.

az netappfiles volume replication status

Get the replication status for the specified replication volume.

az netappfiles volume replication status [--account-name]
                                         [--ids]
                                         [--name]
                                         [--pool-name]
                                         [--resource-group]
                                         [--subscription]

Examples

Get the replication status for the volume. Returns whether the replication is healthy, the replication schedule and the mirror state (whether replication is suspened/broken or synced/mirrored)

az netappfiles volume replication status -g mygroup --account-name myaccname --pool-name mypoolname --name mydestinationvolname

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 --volume-name -n -v

The name of the replication destination volume.

--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.

az netappfiles volume replication suspend

Suspend/break a volume replication for the specified destination volume. The replication process is suspended until resumed or deleted.

az netappfiles volume replication suspend [--account-name]
                                          [--ids]
                                          [--name]
                                          [--pool-name]
                                          [--resource-group]
                                          [--subscription]

Examples

Suspend the replication process

az netappfiles volume replication suspend -g mygroup --account-name myaccname --pool-name mypoolname --name mydestinationvolname

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 --volume-name -n -v

The name of the replication destination volume.

--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.