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/tutorial-connect-virtual-networks-portal.md
+35-8Lines changed: 35 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,29 +260,47 @@ Repeat the previous steps to create a second virtual machine in the second virtu
260
260
Create a VM with [New-AzVM](/powershell/module/az.compute/new-azvm). The following example creates a VM named **vm-1** in the **vnet-1** virtual network. The `-AsJob` option creates the VM in the background, so you can continue to the next step. When prompted, enter the user name and password for the virtual machine.
PublicIpAddressName = $null # No public IP address
284
300
}
285
-
New-AzVm @vm2
301
+
302
+
# Create the VM
303
+
New-AzVM @vmParams
286
304
```
287
305
288
306
The VM takes a few minutes to create. Don't continue with the later steps until Azure creates **vm-2** and returns output to PowerShell.
@@ -349,6 +367,15 @@ Use `ping` to test the communication between the virtual machines.
349
367
350
368
### [PowerShell](#tab/powershell)
351
369
370
+
When no longer needed, use [Remove-AzResourcegroup](/powershell/module/az.resources/remove-azresourcegroup) to remove the resource group and all of the resources it contains.
0 commit comments