Skip to content

Commit 5105487

Browse files
author
Michael Bender
committed
Updates
1 parent 03d3a61 commit 5105487

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

articles/virtual-network-manager/how-to-configure-cross-tenant-powershell.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,51 @@ ms.custom: template-how-to
1313

1414
# Configure cross-tenant connection in Azure Virtual Network Manager - PowerShell
1515

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

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/).
1922
2023
## Prerequisites
2124

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

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)
3234

3335
## Create scope connection within network manager
3436
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)
3537

3638
```azurepowershell
3739
3840
# 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"
4042
4143
4244
```
4345

4446
## 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.
4648

4749
```azurepowershell
4850
51+
# Change context to use target managed tenant
4952
Set-AzContext -TenantId 12345678-12a3-4abc-5cde-678909876543
5053
54+
# Select subscription to use on target managed tenant
5155
Select-AzSubscription 87654321-abcd-1234-1def-0987654321ab
5256
53-
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""
5659
60+
#
5761
Get-AzNetworkManagerSubscriptionConnection -Name toContosoTenantNM
5862
```
5963

@@ -63,7 +67,7 @@ Switch back to the Contoso tenant, and performing a get on the network manager s
6367

6468
```azurepowershell
6569
66-
Get-AzNetworkManager -ResourceGroup $rg.name -Name jaredgorthy
70+
Get-AzNetworkManager -ResourceGroup $rg.name -Name "myAVN"
6771
6872
```
6973

@@ -72,7 +76,7 @@ From Azure Portal and Azure CLI we generate the auth tokens needed for the put s
7276

7377

7478
# Get the group you want to add the static members to
75-
$group = Get-AzNetworkManagerGroup -NetworkManagerName jaredgorthy -ResourceGroup $rg.name -Name containsCrossTenantResources
79+
$group = Get-AzNetworkManagerGroup -NetworkManagerName "myAVN" -ResourceGroup $rg.name -Name containsCrossTenantResources
7680

7781
# Need to be modified
7882
$networkManagerTenant = "24680975-1234-abcd-56fg-121314ab5643"

0 commit comments

Comments
 (0)