You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this article, you'll learn to create [cross-tenant connections](concept-cross-tenant.md) in the Azure Virtual Network Manager with Azure PowerShell. First, you'll create the scope connection on the central network manager. Then you'll create the network manager connection on the connecting tenant, and verify connection. Last, you'll add virtual networks from different tenants and verify. Once completed, You can centrally manage the resources of other tenants from single network manager instance.
16
+
In this article, you'll learn to create [cross-tenant connections](concept-cross-tenant.md) in the Azure Virtual Network Manager with Azure PowerShell. First, you'll create the scope connection on the central network manager. Then you'll create the network manager connection on the connecting tenant, and verify connection. Last, you'll add virtual networks from different tenants and verify. Once completed, You can centrally manage the resources of other tenants from single network manager instance. Once completed, You can centrally manage the resources of other tenants from a central network manager instance.
17
17
18
-
To learn more, see [how cross-tenant connections work in [Azure Virtual Network Manager](concept-cross-tenant.md).
18
+
> [!IMPORTANT]
19
+
> Azure Virtual Network Manager is currently in public preview.
20
+
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
21
+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19
22
20
23
## Prerequisites
21
24
22
-
- Two Azure tenants with virtual networks needing to be managed by Azure Virtual Network Manager Deploy
23
-
- Azure Virtual Network Manager deployed in tenant
24
-
- Permissions <>
25
-
- Tenant-specific information including:
26
-
- Resource ID
27
-
- Tenant IDs
28
-
- Resource Group name
29
-
- Network manager name
30
-
-
25
+
- Two Azure tenants with virtual networks needing to be managed by Azure Virtual Network Manager Deploy. During the how-to, the tenants will be referred to as follows:
26
+
-**Central management tenant** - The tenant where an Azure Virtual Network Manager instance is installed, and you'll centrally manage network groups from cross-tenant connections.
27
+
-**Target managed tenant** - The tenant containing virtual networks to be managed. This tenant will be connected to the central management tenant.
28
+
- Azure Virtual Network Manager deployed in the central management tenant.
29
+
- Required permissions include:
30
+
- Administrator of central management tenant has guest account in target managed tenant.
31
+
- Administrator guest account has *Network Contributor* permissions applied at appropriate scope level(Management group, subscription, or virtual network).
31
32
33
+
Need help with setting up permissions? Check out how to [add guest users in the Azure portal](../active-directory/external-identities/b2b-quickstart-add-guest-users-portal.md), and how to [assign user roles to resources in Azure portal](../role-based-access-control/role-assignments-portal.md)
32
34
33
35
## Create scope connection within network manager
34
36
Creation of the scope connection begins on the central network manager. This is the network manager where you plan to manager all of your resources. In this task, you'll set up a scope connection with [New-AzNetworkManagerSubscriptionConnection](/powershell/module/az.network/new-aznetworkmanagersubscriptionconnection)
35
37
36
38
```azurepowershell
37
39
38
40
# Create scope connection to target tenant
39
-
New-AzNetworkManagerScopeConnection -Name toFabrikamTenantSub -ResourceGroup $rg.name -NetworkManagerName jaredgorthy -ResourceId "/subscriptions/87654321-abcd-1234-1def-0987654321ab" -Description "this is to manage fabrikam's vnets" -TenantId "12345678-12a3-4abc-5cde-678909876543"
41
+
New-AzNetworkManagerScopeConnection -Name ToTargetManagedTenant -ResourceGroup "myAVNMResourceGroup" -NetworkManagerName "myAVNM" -ResourceId "/subscriptions/87654321-abcd-1234-1def-0987654321ab" -Description "This is a connection to manage resources in the target managed tenant" -TenantId "12345678-12a3-4abc-5cde-678909876543"
40
42
41
43
42
44
```
43
45
44
46
## Create network manager connection on subscription in other tenant
45
-
Once the scope connection is created, you'll switch to your target tenant for the network manager connection. During this task, you'll connect the target tenant to the scope connection created previously
47
+
Once the scope connection is created, you'll switch to your target managed tenant for the network manager connection. During this task, you'll connect the target manged tenant to the scope connection created previously.
New-AzNetworkManagerSubscriptionConnection -Name toContosoTenantNM -Description "this is to be managed by a contoso network manager" -NetworkManagerId "/subscriptions/13579864-1234-5678-abcd-0987654321ab/resourceGroups/$rg.name/providers/Microsoft.Network/networkManagers/jaredgorthy"
54
-
55
-
57
+
#
58
+
New-AzNetworkManagerSubscriptionConnection -Name toContosoTenantNM -Description "This connection allows management of the tenant by a central management tenant" -NetworkManagerId "/subscriptions/13579864-1234-5678-abcd-0987654321ab/resourceGroups/$rg.name/providers/Microsoft.Network/networkManagers/"myAVNM""
0 commit comments