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
Copy file name to clipboardExpand all lines: articles/virtual-network-manager/how-to-configure-cross-tenant-cli.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: mbender-ms
5
5
ms.author: mbender
6
6
ms.service: azure-virtual-network-manager
7
7
ms.topic: how-to
8
-
ms.date: 03/22/2024
8
+
ms.date: 10/15/2024
9
9
ms.custom: template-how-to, devx-track-azurecli
10
10
# Customer intent: 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.
11
11
---
@@ -36,7 +36,7 @@ In this task, you set up a scope connection to add a subscription from a target
36
36
37
37
```azurecli
38
38
# Create a scope connection in the network manager in the central management tenant
39
-
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"
39
+
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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e" --tenant-id "aaaabbbb-0000-cccc-1111-dddd2222eeee"
40
40
```
41
41
42
42
## Create a network manager connection on a subscription in another tenant
@@ -49,7 +49,7 @@ After you create the scope connection, you switch to your target tenant for the
49
49
50
50
# Log in to the target managed tenant
51
51
# Change the --tenant value to the appropriate tenant ID
52
-
az login --tenant "12345678-12a3-4abc-5cde-678909876543"
52
+
az login --tenant "aaaabbbb-0000-cccc-1111-dddd2222eeee"
53
53
```
54
54
55
55
You're required to complete authentication with your organization, based on your organization's policies.
@@ -58,11 +58,11 @@ After you create the scope connection, you switch to your target tenant for the
58
58
59
59
```azurecli
60
60
# Set the Azure subscription
61
-
az account set --subscription 87654321-abcd-1234-1def-0987654321ab
61
+
az account set --subscription aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
62
62
63
63
64
64
# Create a cross-tenant connection to the central management tenant
65
-
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"
65
+
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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myRG/providers/Microsoft.Network/networkManagers/myAVNM"
66
66
```
67
67
68
68
## Verify the connection status
@@ -87,7 +87,7 @@ In this task, you add a cross-tenant virtual network to your network group by us
87
87
88
88
```azurecli
89
89
# Create a network group with a static member from the target managed tenant
90
-
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
90
+
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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
0 commit comments