|
| 1 | +--- |
| 2 | +title: About virtual hub roles and permissions |
| 3 | +titleSuffix: Azure Virtual WAN |
| 4 | +description: Learn about roles and permissions for a Virtual WAN Hub. |
| 5 | +author: siddomala |
| 6 | +ms.service: azure-virtual-wan |
| 7 | +ms.topic: conceptual |
| 8 | +ms.date: 12/13/2024 |
| 9 | +ms.author: cherylmc |
| 10 | + |
| 11 | +--- |
| 12 | +# About roles and permissions for Azure Virtual WAN |
| 13 | + |
| 14 | +The Virtual WAN hub utilizes multiple underlying resources during both creation and management operations. |
| 15 | +Because of this, it's essential to verify permissions on all involved resources during these operations. |
| 16 | + |
| 17 | +## Azure built-in roles |
| 18 | + |
| 19 | +You can choose to assign [Azure built-in roles](../role-based-access-control/built-in-roles.md) to a user, group, service principal, or managed identity such as [Network contributor](../role-based-access-control/built-in-roles.md#network-contributor), which support all the required permissions for creating the gateway. |
| 20 | +For more information, see [Steps to assign an Azure role](../role-based-access-control/role-assignments-steps.md). |
| 21 | + |
| 22 | +## Custom roles |
| 23 | + |
| 24 | +If the [Azure built-in roles](../role-based-access-control/built-in-roles.md) don't meet the specific needs of your organization, you can create your own custom roles. |
| 25 | +Just like built-in roles, you can assign custom roles to users, groups, and service principals at management group, subscription, and resource group scopes. |
| 26 | +For more information, see [Steps to create a custom role](../role-based-access-control/custom-roles.md#steps-to-create-a-custom-role) . |
| 27 | + |
| 28 | +To ensure proper functionality, check your custom role permissions to confirm user service principals, and managed identities operating the VPN gateway have the necessary permissions. |
| 29 | +To add any missing permissions listed here, see [Update a custom role](../role-based-access-control/custom-roles-portal.md#update-a-custom-role). |
| 30 | + |
| 31 | +## Permissions |
| 32 | + |
| 33 | +When creating or updating the resources below, add the appropriate permissions from the following list: |
| 34 | + |
| 35 | +### Virtual hub resources |
| 36 | + |
| 37 | +|Resource | Required Azure permissions | |
| 38 | +|---|---| |
| 39 | +| virtualHubs | Microsoft.Network/virtualNetworks/peer/action <br>Microsoft.Network/virtualWans/join/action | |
| 40 | +| virtualHubs/hubVirtualNetworkConnections | Microsoft.Network/virtualNetworks/peer/action <br>Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/virtualHubs/hubRouteTables/read | |
| 41 | +| virtualHubs/bgpConnections | Microsoft.Network/virtualHubs/hubVirtualNetworkConnections/read | |
| 42 | +| virtualHubs/hubRouteTables | Microsoft.Network/securityPartnerProviders/read <br>Microsoft.Network/virtualHubs/hubVirtualNetworkConnections/read <br>Microsoft.Network/networkVirtualAppliances/read <br>Microsoft.Network/azurefirewalls/read | |
| 43 | +| virtualHubs/routingIntent | Microsoft.Network/securityPartnerProviders/read <br>Microsoft.Network/networkVirtualAppliances/read <br>Microsoft.Network/azurefirewalls/read | |
| 44 | + |
| 45 | +### ExpressRoute gateway resources |
| 46 | + |
| 47 | +|Resource | Required Azure permissions | |
| 48 | +|---|---| |
| 49 | +| expressroutegateways | Microsoft.Network/virtualHubs/read <br>Microsoft.Network/virtualHubs/hubRouteTables/read <br>Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/expressRouteGateways/expressRouteConnections/read <br>Microsoft.Network/expressRouteCircuits/join/action | |
| 50 | +| expressRouteGateways/expressRouteConnections | Microsoft.Network/virtualHubs/hubRouteTables/read <br>Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/expressRouteCircuits/join/action | |
| 51 | + |
| 52 | + |
| 53 | +### VPN resources |
| 54 | + |
| 55 | +|Resource | Required Azure permissions | |
| 56 | +|---|---| |
| 57 | +| p2svpngateways | Microsoft.Network/virtualHubs/read <br>Microsoft.Network/virtualHubs/hubRouteTables/read <br>Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/vpnServerConfigurations/read | |
| 58 | +| p2sVpnGateways/p2sConnectionConfigurations | Microsoft.Network/virtualHubs/hubRouteTables/read <br>Microsoft.Network/virtualHubs/routeMaps/read | |
| 59 | +| vpngateways | Microsoft.Network/virtualHubs/read <br>Microsoft.Network/virtualHubs/hubRouteTables/read <br>Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/vpnGateways/vpnConnections/read | |
| 60 | +| vpnsites | Microsoft.Network/virtualWans/read | |
| 61 | + |
| 62 | +### NVA resources |
| 63 | + |
| 64 | +NVAs (Network Virtual Appliances) in Virtual WAN are typically deployed through Azure managed applications or directly via NVA orchestration software. For more information on how to properly assign permissions to managed applications or NVA orchestration software, see instructions [here](https://aka.ms/nvadeployment). |
| 65 | + |
| 66 | +|Resource | Required Azure permissions | |
| 67 | +|---|---| |
| 68 | +| networkVirtualAppliances | Microsoft.Network/virtualHubs/read | |
| 69 | +| networkVirtualAppliances/networkVirtualApplianceConnections | Microsoft.Network/virtualHubs/routeMaps/read <br>Microsoft.Network/virtualHubs/hubRouteTables/read | |
| 70 | + |
| 71 | + |
| 72 | +For more information, see [Azure permissions for Networking](../role-based-access-control/permissions/networking.md) and [Virtual network permissions](../virtual-network/virtual-network-manage-subnet.md#permissions). |
| 73 | + |
| 74 | +## Roles scope |
| 75 | + |
| 76 | +In the process of custom role definition, you can specify a role assignment scope at four levels: management group, subscription, resource group, and resources. To grant access, you assign roles to users, groups, service principals, or managed identities at a particular scope. |
| 77 | + |
| 78 | +These scopes are structured in a parent-child relationship, with each level of hierarchy making the scope more specific. You can assign roles at any of these levels of scope, and the level you select determines how widely the role is applied. |
| 79 | + |
| 80 | +For example, a role assigned at the subscription level can cascade down to all resources within that subscription, while a role assigned at the resource group level will only apply to resources within that specific group. Learn more about scope level |
| 81 | +For more information, see [Scope levels](../role-based-access-control/scope-overview.md#scope-levels). |
| 82 | + |
| 83 | +> [!NOTE] |
| 84 | +> Allow sufficient time for [Azure Resource Manager cache](../role-based-access-control/troubleshooting.md) to refresh after role assignment changes. |
| 85 | +
|
| 86 | +## Next steps |
| 87 | + |
| 88 | +- [What is Azure Role Based Access](../role-based-access-control/overview.md) |
| 89 | + |
| 90 | +- [Azure Role Based Access Control](../role-based-access-control/role-assignments-list-portal.yml) |
0 commit comments