File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ $VirtualMachine = Set-AzVMSourceImage -VM $VirtualMachine -PublisherName 'Micros
176
176
New-AzVM -ResourceGroupName $ResourceGroupName -Location $LocationName -VM $VirtualMachine -Verbose
177
177
```
178
178
179
+ This command creates a VM from a marketplace image without a Public IP.
180
+
179
181
### Example 4: Create a VM with a UserData value:
180
182
``` powershell
181
183
## VM Account
@@ -203,8 +205,7 @@ $vm = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $VMName -UserData;
203
205
204
206
The UserData value must always be Base64 encoded.
205
207
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
208
209
```
209
210
$UserName = "User"
210
211
$Password = ConvertTo-SecureString "############" -AsPlainText -Force
@@ -223,7 +224,6 @@ New-AzVm -ResourceGroupName ResourceGroup1 -Location SouthCentralUS -VM $Virtual
223
224
224
225
This example deploys a Windows VM from the marketplace in one resource group with an existing subnet in another resource group.
225
226
226
-
227
227
## PARAMETERS
228
228
229
229
### -AddressPrefix
You can’t perform that action at this time.
0 commit comments