Skip to content

Commit 371a678

Browse files
Update New-AzVM.md (#17590)
* Update New-AzVM.md * Update src/Compute/Compute/help/New-AzVM.md Co-authored-by: Yeming Liu <[email protected]>
1 parent 864448b commit 371a678

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Compute/Compute/help/New-AzVM.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ $VirtualMachine = Set-AzVMSourceImage -VM $VirtualMachine -PublisherName 'Micros
176176
New-AzVM -ResourceGroupName $ResourceGroupName -Location $LocationName -VM $VirtualMachine -Verbose
177177
```
178178

179+
This command creates a VM from a marketplace image without a Public IP.
180+
179181
### Example 4: Create a VM with a UserData value:
180182
```powershell
181183
## VM Account
@@ -203,8 +205,7 @@ $vm = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName -UserData;
203205

204206
The UserData value must always be Base64 encoded.
205207

206-
207-
### Example 4: Creating a New VM in RG1 with an existing subnet in RG2
208+
### Example 5: Creating a new VM with an existing subnet in another resource group
208209
```
209210
$UserName = "User"
210211
$Password = ConvertTo-SecureString "############" -AsPlainText -Force
@@ -223,7 +224,6 @@ New-AzVm -ResourceGroupName ResourceGroup1 -Location SouthCentralUS -VM $Virtual
223224

224225
This example deploys a Windows VM from the marketplace in one resource group with an existing subnet in another resource group.
225226

226-
227227
## PARAMETERS
228228

229229
### -AddressPrefix

0 commit comments

Comments
 (0)