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/create-peering-different-subscriptions-service-principal.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.author: allensu
7
7
ms.service: azure-virtual-network
8
8
ms.custom: devx-track-azurecli
9
9
ms.topic: how-to
10
-
ms.date: 04/18/2024
10
+
ms.date: 11/04/2024
11
11
#customer intent: As a network administrator, I want to connect virtual networks in different subscriptions using service principal names so that I can allow resources in different subscriptions to communicate with each other.
12
12
---
13
13
# Connect virtual networks in different subscriptions with service principal names
@@ -254,7 +254,7 @@ An administrator in the **subscription-1** Microsoft Entra ID tenant must approv
1. Open the URL in a web browser and sign-in with an administrator in the Microsoft Entra ID tenant in **subscription-2**.
@@ -449,7 +449,7 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
449
449
--service-principal \
450
450
--username $appid1 \
451
451
--password $password \
452
-
--tenant c2d26d12-71cc-4f3b-8557-1fa18d077698
452
+
--tenant aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
453
453
```
454
454
455
455
1. Use [az login](/cli/azure/reference-index#az-login) to sign-in to **subscription-2** with **spn-2-peer-vnet**. You need the tenant ID of the Microsoft Entra ID tenant associated with **subscription-2** to complete the command. The password is shown in the example with a variable placeholder. Replace with the password you noted during the resource creation. Replace the placeholder in `--tenant` with the tenant ID of the Microsoft Entra ID tenant associated with **subscription-2**.
@@ -459,7 +459,7 @@ For the purposes of this article, sign-in to each subscription and obtain the ap
459
459
--service-principal \
460
460
--username $appid2 \
461
461
--password $password \
462
-
--tenant 24baaf57-f30d-4fba-a20e-822030f7eba3
462
+
--tenant bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
463
463
```
464
464
465
465
1. Use [az account set](/cli/azure/account#az-account-set) to change the context to **subscription-1**.
0 commit comments