Skip to content

Commit 8b7fe7f

Browse files
author
Cynthia Nottingham
committed
tested
1 parent cd37a82 commit 8b7fe7f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

articles/virtual-machines/windows/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ This table shows some ways that you can find the information for an image.
7777
| REST APIs |[List image publishers](https://docs.microsoft.com/rest/api/compute/platformimages/platformimages-list-publishers)<BR>[List image offers](https://docs.microsoft.com/rest/api/compute/platformimages/platformimages-list-publisher-offers)<BR>[List image skus](https://docs.microsoft.com/rest/api/compute/platformimages/platformimages-list-publisher-offer-skus) |
7878
| Azure CLI |[az vm image list-publishers](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) --location *location*<BR>[az vm image list-offers](https://docs.microsoft.com/cli/azure/vm/image?view=azure-cli-latest) --location *location* --publisher *publisherName*<BR>[az vm image list-skus](https://docs.microsoft.com/cli/azure/vm?view=azure-cli-latest) --location *location* --publisher *publisherName* --offer *offerName*|
7979

80-
You can choose to [upload and use your own image](upload-generalized-managed.md#upload-the-vhd-to-your-storage-account) and when you do, the publisher name, offer, and sku aren’t used.
80+
You can choose to [upload and use your own image](upload-generalized-managed.md) and when you do, the publisher name, offer, and sku aren’t used.
8181

8282
### Extensions
8383
VM [extensions](extensions-features.md?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) give your VM additional capabilities through post deployment configuration and automated tasks.

articles/virtual-machines/windows/upload-generalized-managed.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ $imageConfig = Set-AzImageOsDisk `
8383
Create the image.
8484

8585
```azurepowershell-interactive
86-
$image = New-AzImage -ImageName $imageName -ResourceGroupName $rgName -Image $imageConfig
86+
$image = New-AzImage `
87+
-ImageName $imageName `
88+
-ResourceGroupName $rgName `
89+
-Image $imageConfig
8790
```
8891

8992
## Create the VM
@@ -95,7 +98,7 @@ Now that you have an image, you can create one or more new VMs from the image. T
9598
New-AzVm `
9699
-ResourceGroupName $rgName `
97100
-Name "myVM" `
98-
-Image $image `
101+
-Image $image.Id `
99102
-Location $location `
100103
-VirtualNetworkName "myVnet" `
101104
-SubnetName "mySubnet" `

0 commit comments

Comments
 (0)