Skip to content

Commit fc6e046

Browse files
author
Michael Bender
committed
Updated IDs
1 parent bd4ae6d commit fc6e046

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Creation of the scope connection begins on the central management tenant with a
3535

3636
```azurecli
3737
# 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"
3939
```
4040

4141
## 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
4747
4848
# Login to target managed tenant
4949
# 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"
5151
```
5252
You'll be required to complete authentication with your organization based on your organizations policies.
5353

5454
1. Enter the following command to create the cross tenant connection on the central management
5555
Set the subscription (note it’s the same as the one the connection references in step 1)
5656
```azurecli
5757
# 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+
5960
6061
# 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"
6263
```
6364

6465
## Verify the connection state
@@ -81,7 +82,8 @@ In this task, you'll add a cross-tenant virtual network to your network group wi
8182

8283
```azurecli
8384
# 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
86+
/resourceGroups/myScopeAVNM/providers/Microsoft.Network/virtualNetworks/targetVnet01"
8587
```
8688
## Delete virtual network manager configurations
8789

0 commit comments

Comments
 (0)