Create volume replication for Azure NetApp Files
This article shows you how to set up cross-region replication by creating replication peering.
Setting up replication peering enables you to asynchronously replicate data from an Azure NetApp Files volume (source) to another Azure NetApp Files volume (destination). The source volume and the destination volume must be deployed in separate regions. The service level for the destination capacity pool can match that of the source capacity pool, or you can select a different service level.
Azure NetApp Files replication does not currently support multiple subscriptions; all replications must be performed under a single subscription.
Before you begin, ensure that you have reviewed the requirements and considerations for using cross-region replication.
Locate the source volume resource ID
You need to obtain the resource ID of the source volume that you want to replicate.
Go to the source volume, and select Properties under Settings to display the source volume resource ID.
Copy the resource ID to the clipboard. You will need it later.
Create the data replication volume (the destination volume)
You need to create a destination volume where you want the data from the source volume to be replicated to. Before you can create a destination volume, you need to have a NetApp account and a capacity pool in the destination region.
The destination account must be in a different region from the source volume region. If necessary, create a NetApp account in the Azure region to be used for replication by following the steps in Create a NetApp account.
You can also select an existing NetApp account in a different region.If necessary, create a capacity pool in the newly created NetApp account by following the steps in Create a capacity pool.
You can also select an existing capacity pool to host the replication destination volume.
The service level for the destination capacity pool can match that of the source capacity pool, or you can select a different service level.
Delegate a subnet in the region to be used for replication by following the steps in Delegate a subnet to Azure NetApp Files.
Create the data replication volume by selecting Volumes under Storage Service in the destination NetApp account. Then select the + Add data replication button.
In the Create a Volume page that appears, complete the following fields under the Basics tab:
- Volume name
- Capacity pool
- Volume quota
Note
The volume quota (size) for the destination volume should mirror that of the source volume. If you specify a size that is smaller than the source volume, the destination volume is automatically resized to the source volume size.
- Virtual network
- Subnet
For details about the fields, see Create an NFS volume.
Under the Protocol tab, select the same protocol as the source volume.
For the NFS protocol, ensure that the export policy rules satisfy the requirements of any hosts in the remote network that will access the export.Under the Tags tab, create key/value pairs as necessary.
Under the Replication tab, paste in the source volume resource ID that you obtained in Locate the source volume resource ID, and then select the desired replication schedule. There are three options for the replication schedule: every 10 minutes, hourly, and daily.
Select Review + Create, then select Create to create the data replication volume.
Authorize replication from the source volume
To authorize the replication, you need to obtain the resource ID of the replication destination volume and paste it to the Authorize field of the replication source volume.
In the Azure portal, navigate to Azure NetApp Files.
Go to the destination NetApp account and destination capacity pool where the replication destination volume is located.
Select the replication destination volume, go to Properties under Settings, and locate the Resource ID of the destination volume. Copy the destination volume resource ID to the clipboard.
In Azure NetApp Files, go to the replication source account and source capacity pool.
Locate the replication source volume and select it. Navigate to Replication under Storage Service then select Authorize.
In the Authorize field, paste the destination replication volume resource ID that you obtained in Step 3, then select OK.
Note
Due to various factors, such as the state of the destination storage at a given time, there’s likely a difference between the used space of the source volume and the used space of the destination volume.
Next steps
- Cross-region replication
- Requirements and considerations for using cross-region replication
- Display health status of replication relationship
- Volume replication metrics
- Manage disaster recovery
- Delete volume replications or volumes
- Troubleshoot cross-region-replication
- Manage default and individual user and group quotas for a volume
- Manage Azure NetApp Files volume replication with the CLI