Skip to content

Commit df081d1

Browse files
Update how-to-configure-cross-tenant-cli.md
More indentation
1 parent 75f3f82 commit df081d1

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,41 +45,41 @@ Once the scope connection is created, you'll switch to your target tenant for th
4545

4646
1. Enter the following command to connect to the target managed tenant with your administrative account:
4747

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.
5555

5656
1. Enter the following command to create the cross tenant connection on the central management.
5757
Set the subscription (note it’s the same as the one the connection references in step 1).
5858

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
6262

6363

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+
```
6767

6868
## Verify the connection state
6969

7070
1. Enter the following command to check the connection Status:
7171

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+
```
7676

7777
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.
7878

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+
```
8383
8484
## Add static members to your network group
8585
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

Comments
 (0)