Skip to content

Commit e8642aa

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rs-limits3
2 parents 6db6713 + f07677d commit e8642aa

File tree

2 files changed

+107
-87
lines changed

2 files changed

+107
-87
lines changed
Lines changed: 45 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,111 @@
11
---
2-
title: Configure cross-tenant connection in Azure Virtual Network Manager - CLI
3-
description: Learn to connect Azure subscriptions in Azure Virtual Network Manager using cross-tenant connections for the management of virtual networks across subscriptions.
2+
title: Configure a cross-tenant connection in Azure Virtual Network Manager Preview - CLI
3+
description: Learn how to connect Azure subscriptions in Azure Virtual Network Manager by using cross-tenant connections for the management of virtual networks across subscriptions.
44
author: mbender-ms
55
ms.author: mbender
66
ms.service: virtual-network-manager
77
ms.topic: how-to
88
ms.date: 11/1/2022
99
ms.custom: template-how-to
10-
#customerintent: As a cloud admin, in need to manage multi tenants from a single network manager instance. Cross tenant functionality will give me this so I can easily manage all network resources governed by azure virtual network manager
10+
#customerintent: As a cloud admin, I need to manage multiple tenants from a single network manager so that I can easily manage all network resources governed by Azure Virtual Network Manager.
1111
---
1212

13-
# Configure cross-tenant connection in Azure Virtual Network Manager
13+
# Configure a cross-tenant connection in Azure Virtual Network Manager Preview - CLI
1414

15-
In this article, you’ll learn how-to create [cross-tenant connections](concept-cross-tenant.md) in Azure Virtual Network Manager using [Azure CLI](/cli/azure/network/manager/scope-connection). Cross-tenant support allows organizations to use a central Network Manager instance for managing virtual networks across different tenants and subscriptions. 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 a central network manager instance.
15+
In this article, you'll learn how to create [cross-tenant connections](concept-cross-tenant.md) in Azure Virtual Network Manager by using the [Azure CLI](/cli/azure/network/manager/scope-connection). Cross-tenant support allows organizations to use a central network manager for managing virtual networks across tenants and subscriptions.
16+
17+
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 the connection. Last, you'll add virtual networks from different tenants and verify. After you complete all the tasks, you can centrally manage the resources of other tenants from your network manager.
1618

1719
> [!IMPORTANT]
18-
> Azure Virtual Network Manager is currently in public preview.
19-
> 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.
20-
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
20+
> Azure Virtual Network Manager is currently in public preview. We provide this preview version without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
2121
2222
## Prerequisites
2323

24-
- 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:
25-
- **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.
26-
- **Target managed tenant** - The tenant containing virtual networks to be managed. This tenant will be connected to the central management tenant.
24+
- Two Azure tenants with virtual networks that you want to manage through Azure Virtual Network Manager. This article refers to the tenants as follows:
25+
- **Central management tenant**: The tenant where an Azure Virtual Network Manager instance is installed, and where you'll centrally manage network groups from cross-tenant connections.
26+
- **Target managed tenant**: The tenant that contains virtual networks to be managed. This tenant will be connected to the central management tenant.
2727
- Azure Virtual Network Manager deployed in the central management tenant.
28-
- Required permissions include:
29-
- Administrator of central management tenant has guest account in target managed tenant.
30-
- Administrator guest account has *Network Contributor* permissions applied at appropriate scope level(Management group, subscription, or virtual network).
28+
- These permissions:
29+
- The administrator of the central management tenant has a guest account in the target managed tenant.
30+
- The administrator guest account has *Network Contributor* permissions applied at the appropriate scope level (management group, subscription, or virtual network).
31+
32+
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 the Azure portal](../role-based-access-control/role-assignments-portal.md).
3133

32-
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)
34+
## Create a scope connection within a network manager
3335

34-
## Create scope connection within network manager
36+
Creation of the scope connection begins on the central management tenant with a network manager deployed. This is the network manager where you plan to manage all of your resources across tenants.
3537

36-
Creation of the scope connection begins on the central management tenant with a network manager deployed, which is the network manager where you plan to manage all of your resources across tenants. In this task, you'll set up a scope connection to add a subscription from a target tenant. If you wish to use a management group, you'll modify the `–resource-id` argument to look like `/providers/Microsoft.Management/managementGroups/{mgId}`.
38+
In this task, you set up a scope connection to add a subscription from a target tenant. If you want to use a management group, modify the `–resource-id` argument to look like `/providers/Microsoft.Management/managementGroups/{mgId}`.
3739

3840
```azurecli
39-
# Create scope connection in network manager in the central management tenant
41+
# Create a scope connection in the network manager in the central management tenant
4042
az network manager scope-connection create --resource-group "myRG" --network-manager-name "myAVNM" --name "ToTargetManagedTenant" --description "This is a connection to manage resources in the target managed tenant" --resource-id "/subscriptions/13579864-1234-5678-abcd-0987654321ab" --tenant-id "24680975-1234-abcd-56fg-121314ab5643"
4143
```
4244

43-
## Create network manager connection on subscription in other tenant
44-
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 and verify the connection state.
45+
## Create a network manager connection on a subscription in another tenant
46+
47+
After you create the scope connection, you switch to your target tenant for the network manager connection. In this task, you connect the target tenant to the scope connection that you created previously. You also verify the connection state.
4548

46-
1. Enter the following command to connect to the target managed tenant with your administrative account:
49+
1. Enter the following command to connect to the target managed tenant by using your administrative account:
4750

4851
```azurecli
4952
50-
# Login to target managed tenant
51-
# Note: Change the --tenant value to the appropriate tenant ID
53+
# Log in to the target managed tenant
54+
# Change the --tenant value to the appropriate tenant ID
5255
az login --tenant "12345678-12a3-4abc-5cde-678909876543"
5356
```
54-
You'll be required to complete authentication with your organization based on your organizations policies.
57+
58+
You're required to complete authentication with your organization, based on your organization's policies.
5559

56-
1. Enter the following command to create the cross tenant connection on the central management.
57-
Set the subscription (note it’s the same as the one the connection references in step 1).
60+
1. Enter the following commands to set the subscription and to create the cross-tenant connection on the central management tenant. The subscription is the same as the one that the connection referenced in the previous step.
5861

5962
```azurecli
6063
# Set the Azure subscription
6164
az account set --subscription 87654321-abcd-1234-1def-0987654321ab
6265
6366
64-
# Create cross-tenant connection to central management tenant
67+
# Create a cross-tenant connection to the central management tenant
6568
az network manager connection subscription create --connection-name "toCentralManagementTenant" --description "This connection allows management of the tenant by a central management tenant" --network-manager-id "/subscriptions/13579864-1234-5678-abcd-0987654321ab/resourceGroups/myRG/providers/Microsoft.Network/networkManagers/myAVNM"
6669
```
6770
68-
## Verify the connection state
71+
## Verify the connection status
6972
70-
1. Enter the following command to check the connection Status:
73+
1. Enter the following command to check the connection status:
7174
7275
```azurecli
7376
# Check connection status
7477
az network manager connection subscription show --name "toCentralManagementTenant"
7578
```
7679
77-
1. Switch back to the central management tenant, and performing a get on the network manager shows the subscription added via the cross tenant scopes property.
80+
1. Switch back to the central management tenant. Use the `show` command for the network manager to show the subscription added via the property for cross-tenant scopes:
7881
7982
```azurecli
80-
# View subscription added to network manager
83+
# View the subscription added to the network manager
8184
az network manager show --resource-group myAVNMResourceGroup --name myAVNM
8285
```
8386
84-
## Add static members to your network group
85-
In this task, you'll add a cross-tenant virtual network to your network group with static membership. The virtual network subscription used below is the same as referenced when creating connections above.
87+
## Add static members to a network group
88+
89+
In this task, you add a cross-tenant virtual network to your network group by using static membership. In the following command, the virtual network subscription is the same as the one that you referenced when you created connections earlier.
8690
8791
```azurecli
88-
# Create network group with static member from target managed tenant
92+
# Create a network group with a static member from the target managed tenant
8993
az network manager group static-member create --network-group-name "CrossTenantNetworkGroup" --network-manager-name "myAVNM" --resource-group "myAVNMResourceGroup" --static-member-name "targetVnet01" --resource-id="/subscriptions/87654321-abcd-1234-1def-0987654321ab
9094
/resourceGroups/myScopeAVNM/providers/Microsoft.Network/virtualNetworks/targetVnet01"
9195
```
92-
## Delete virtual network manager configurations
96+
## Delete network manager configurations
9397

94-
Now that the virtual network is in the network group, configurations will be applied. To remove the static member or cross-tenant resources, use the corresponding delete commands.
98+
Now that the virtual network is in the network group, configurations are applied. To remove the static member or cross-tenant resources, use the corresponding `delete` commands:
9599

96100
```azurecli
97101
98-
# Delete static member group
102+
# Delete the static member group
99103
az network manager group static-member delete --network-group-name "CrossTenantNetworkGroup" --network-manager-name " myAVNM" --resource-group "myRG" --static-member-name "targetVnet01”
100104
101105
# Delete scope connections
102106
az network manager scope-connection delete --resource-group "myRG" --network-manager-name "myAVNM" --name "ToTargetManagedTenant"
103107
104-
# Switch to ‘managed tenant’ if needed
105-
#
108+
# Switch to a managed tenant if needed
106109
az network manager connection subscription delete --name "toCentralManagementTenant"
107110
108111
```
@@ -111,8 +114,8 @@ az network manager connection subscription delete --name "toCentralManagementTen
111114

112115
> [!div class="nextstepaction"]
113116
114-
- Learn more about [Security admin rules](concept-security-admins.md).
117+
- Learn more about [security admin rules](concept-security-admins.md).
115118

116-
- Learn how to [create a mesh network topology with Azure Virtual Network Manager using the Azure portal](how-to-create-mesh-network.md)
119+
- Learn how to [create a mesh network topology with Azure Virtual Network Manager by using the Azure portal](how-to-create-mesh-network.md).
117120

118-
- Check out the [Azure Virtual Network Manager FAQ](faq.md)
121+
- Check out the [Azure Virtual Network Manager FAQ](faq.md).

0 commit comments

Comments
 (0)