An Azure service that provides enterprise-grade file shares powered by NetApp.
Hello @Gavin Wun,
Thanks for reaching out to Microsoft Q&A.
As discussed, offline, when configuring Azure NetApp Files cross-region replication using Terraform, the service principal used by your Azure DevOps service connection must have permissions to both create the destination volume and manage replication operations on the destination subscription.
Currently, there is no built-in Azure RBAC role specifically for Azure NetApp Files replication, so the recommended approach is to create a custom role with the minimum permissions required for volume management and replication actions.
Minimum permissions to include in the custom role:
You can include the following actions in the role definition for the destination subscription (or preferably scoped to the destination resource group or NetApp account) as per the below document.
Reference document: https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/storage#microsoftnetapp
Ensure the following prerequisites are met for cross-region replication:
- The destination NetApp account and capacity pool already exist.
- The delegated subnet for Azure NetApp Files is configured in the destination region.
- Both subscriptions are within the same Microsoft Entra tenant.
Reference document:
https://learn.microsoft.com/en-us/azure/azure-netapp-files/cross-region-replication-create-peering
https://learn.microsoft.com/en-us/azure/role-based-access-control/custom-roles
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".