Skip to content

Commit 485505c

Browse files
authored
Update vm-generalized-image-version.md
clarify what is tenant1 and tenant2 when try to create VM across tenant. and remove unnecessary tenant login phrase.
1 parent 56853c4 commit 485505c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

articles/virtual-machines/vm-generalized-image-version.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ You also need the `imageID` of the image you want to use and you need to make su
474474

475475
In this example, we're showing how to create a VM from a generalized image. If you're using a specialized image, see [Create a VM using a specialized image version](vm-specialized-image-version.md).
476476

477-
You need to sign in to the tenant where the image is stored, get an access token, then sign into the tenant where you want to create the VM. This is how Azure authenticates that you have access to the image.
477+
You need to sign in to the tenant where the image is stored, get an access token, then sign into the tenant where you want to create the VM. In this case, tenant1 is where the image is stored, and tenant2 is where you want to create the VM. This is how Azure authenticates that you have access to the image.
478478

479479
```azurecli-interactive
480480
@@ -486,8 +486,6 @@ az login --tenant $tenant1
486486
az account get-access-token
487487
az login --tenant $tenant2
488488
az account get-access-token
489-
az login --tenant $tenant1
490-
az account get-access-token
491489
```
492490

493491

@@ -514,15 +512,14 @@ az vm create \
514512

515513
In this example, we're showing how to create a VM from a generalized image. If you're using a specialized image, see [Create a VM using a specialized image version](vm-specialized-image-version.md).
516514

517-
You need to sign in to the tenant where the image is stored, get an access token, then sign into the tenant where you want to create the VM. This is how Azure authenticates that you have access to the image.
515+
You need to sign in to the tenant where the image is stored, get an access token, then sign into the tenant where you want to create the VM. In this case, tenant1 is where the image is stored, and tenant2 is where you want to create the VM. This is how Azure authenticates that you have access to the image.
518516

519517
```azurepowershell-interactive
520518
521519
$tenant1 = "<Tenant 1 ID>"
522520
$tenant2 = "<Tenant 2 ID>"
523521
Connect-AzAccount -Tenant "<Tenant 1 ID>" -UseDeviceAuthentication
524522
Connect-AzAccount -Tenant "<Tenant 2 ID>" -UseDeviceAuthentication
525-
Connect-AzAccount -Tenant "<Tenant 1 ID>" -UseDeviceAuthentication
526523
```
527524

528525

0 commit comments

Comments
 (0)