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
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Creation of the scope connection begins on the central management tenant with a
35
35
36
36
```azurecli
37
37
# Create scope connection in network manager in the central management tenant
38
-
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/6a5f35e9-6951-499d-a36b-83c6c6eed44a" --tenant-id "72f988bf-86f1-41af-91ab-2d7cd011db47"
38
+
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
39
```
40
40
41
41
## Create network manager connection on subscription in other tenant
@@ -47,18 +47,19 @@ Once the scope connection is created, you'll switch to your target tenant for th
47
47
48
48
# Login to target managed tenant
49
49
# Note: Change the --tenant value to the appropriate tenant ID
50
-
az login --tenant "79686033-97a2-4ebd-8e7d-0cae2c7df00e"
50
+
az login --tenant "12345678-12a3-4abc-5cde-678909876543"
51
51
```
52
52
You'll be required to complete authentication with your organization based on your organizations policies.
53
53
54
54
1. Enter the following command to create the cross tenant connection on the central management
55
55
Set the subscription (note it’s the same as the one the connection references in step 1)
56
56
```azurecli
57
57
# Set the Azure subscription
58
-
az account set --subscription dec492d3-4f4e-493b-aa47-7bdf2f96a6fc
58
+
az account set --subscription 87654321-abcd-1234-1def-0987654321ab
59
+
59
60
60
61
# Create cross-tenant connection to central management tenant
61
-
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/6a5f35e9-6951-499d-a36b-83c6c6eed44a/resourceGroups/myRG/providers/Microsoft.Network/networkManagers/myAVNM"
62
+
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"
62
63
```
63
64
64
65
## Verify the connection state
@@ -81,7 +82,8 @@ In this task, you'll add a cross-tenant virtual network to your network group wi
81
82
82
83
```azurecli
83
84
# Create network group with static member from target managed tenant
84
-
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/dec492d3-4f4e-493b-aa47-7bdf2f96a6fc/resourceGroups/myScopeAVNM/providers/Microsoft.Network/virtualNetworks/targetVnet01"
85
+
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
0 commit comments