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
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,41 +45,41 @@ Once the scope connection is created, you'll switch to your target tenant for th
45
45
46
46
1. Enter the following command to connect to the target managed tenant with your administrative account:
47
47
48
-
```azurecli
49
-
50
-
# Login to target managed tenant
51
-
# Note: Change the --tenant value to the appropriate tenant ID
52
-
az login --tenant "12345678-12a3-4abc-5cde-678909876543"
53
-
```
54
-
You'll be required to complete authentication with your organization based on your organizations policies.
48
+
```azurecli
49
+
50
+
# Login to target managed tenant
51
+
# Note: Change the --tenant value to the appropriate tenant ID
52
+
az login --tenant "12345678-12a3-4abc-5cde-678909876543"
53
+
```
54
+
You'll be required to complete authentication with your organization based on your organizations policies.
55
55
56
56
1. Enter the following command to create the cross tenant connection on the central management.
57
57
Set the subscription (note it’s the same as the one the connection references in step 1).
58
58
59
-
```azurecli
60
-
# Set the Azure subscription
61
-
az account set --subscription 87654321-abcd-1234-1def-0987654321ab
59
+
```azurecli
60
+
# Set the Azure subscription
61
+
az account set --subscription 87654321-abcd-1234-1def-0987654321ab
62
62
63
63
64
-
# Create cross-tenant connection to 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"
66
-
```
64
+
# Create cross-tenant connection to 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"
66
+
```
67
67
68
68
## Verify the connection state
69
69
70
70
1. Enter the following command to check the connection Status:
71
71
72
-
```azurecli
73
-
# Check connection status
74
-
az network manager connection subscription show --name "toCentralManagementTenant"
75
-
```
72
+
```azurecli
73
+
# Check connection status
74
+
az network manager connection subscription show --name "toCentralManagementTenant"
75
+
```
76
76
77
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.
78
78
79
-
```azurecli
80
-
# View subscription added to network manager
81
-
az network manager show --resource-group myAVNMResourceGroup --name myAVNM
82
-
```
79
+
```azurecli
80
+
# View subscription added to network manager
81
+
az network manager show --resource-group myAVNMResourceGroup --name myAVNM
82
+
```
83
83
84
84
## Add static members to your network group
85
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.
0 commit comments