Skip to content

Commit 7cdd0bb

Browse files
committed
fixes
1 parent ed60ec6 commit 7cdd0bb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

articles/virtual-network/create-peering-different-subscriptions-service-principal.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ Create **spn1-peer-vnet** with a scope to the virtual network created in the pre
101101
--display-name spn-1-peer-vnet \
102102
--query [].appId \
103103
--output tsv)
104-
echo $appid1
105104
```
106105
107106
1. The SPN created in the previous step must have a redirect URI to finish the authentication process approval and must be converted to multitenant use. Use [az ad app update](/cli/azure/ad/app##az-ad-app-update) to add **https://www.microsoft.com** as a redirect URI and enable multitenant on **spn-1-peer-vnet**.
@@ -282,7 +281,6 @@ After the administrator approves **spn-2-vnet-peer**, add it to the virtual netw
282281
--display-name spn-2-peer-vnet \
283282
--query [].appId \
284283
--output tsv)
285-
echo $appid2
286284
```
287285
288286
1. Use Use [az network vnet show](/cli/azure/network/vnet#az-network-vnet-show) to obtain the resource ID of **vnet-1** into a variable for use in the later steps.
@@ -360,7 +358,6 @@ Once the administrator approves **spn-1-vnet-peer**, add it to the virtual netwo
360358
--display-name spn-1-peer-vnet \
361359
--query [].appId \
362360
--output tsv)
363-
echo $appid1
364361
```
365362
366363
1. Use [az network vnet show](/cli/azure/network/vnet#az-network-vnet-show) to obtain the resource ID of **vnet-2** into a variable for use in the later steps.
@@ -412,7 +409,6 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
412409
--display-name spn-1-peer-vnet \
413410
--query [].appId \
414411
--output tsv)
415-
echo $appid1
416412
```
417413
418414
1. Use [az login](/cli/azure/reference-index#az-login) to sign-in to **subscription-2** with a regular user account.
@@ -441,7 +437,7 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
441437
echo $appid2
442438
```
443439
444-
1. Use [az logout](/cli/azure/reference-index#az-logout)Sign out of the Azure CLI session with the following command. **Don't close the terminal**.
440+
1. Use [az logout](/cli/azure/reference-index#az-logout) to sign out of the Azure CLI session with the following command. **Don't close the terminal**.
445441
446442
```azurecli
447443
az logout
@@ -472,7 +468,7 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
472468
1. Use [az account set](/cli/azure/account#az-account-set) to change the context to **subscription-1**.
473469
474470
```azurecli
475-
az account set --subscription "subscription-1-subscription-id-NOT-ENTRA-ID"
471+
az account set --subscription "subscription-1-subscription-id-NOT-ENTRA-TENANT-ID"
476472
```
477473
478474
1. Use [az network vnet peering create](/cli/azure/network/vnet/peering#az-network-vnet-peering-create) to create the virtual network peering between **vnet-1** and **vnet-2**.
@@ -498,7 +494,7 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
498494
1. Use [az account set](/cli/azure/account#az-account-set) to change the context to **subscription-2**.
499495
500496
```azurecli
501-
az account set --subscription "subscription-2-subscription-id-NOT-ENTRA-ID"
497+
az account set --subscription "subscription-2-subscription-id-NOT-ENTRA-TENANT-ID"
502498
```
503499
504500
1. Use [az network vnet peering create](/cli/azure/network/vnet/peering#az-network-vnet-peering-create) to create the virtual network peering between **vnet-2** and **vnet-1**.

0 commit comments

Comments
 (0)