Skip to content

Commit fbad07a

Browse files
authored
Merge pull request #186159 from cynthn/85530
Freshness and public PR 85530
2 parents 79cfbe1 + b2e23ba commit fbad07a

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

articles/virtual-machines/windows/quick-create-powershell.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.collection: windows
77
ms.topic: quickstart
88
ms.workload: infrastructure
9-
ms.date: 07/02/2019
9+
ms.date: 01/25/2022
1010
ms.author: cynthn
1111
ms.custom: mvc, devx-track-azurepowershell, mode-api
1212
---
@@ -31,7 +31,7 @@ To open the Cloud Shell, just select **Try it** from the upper right corner of a
3131
Create an Azure resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). A resource group is a logical container into which Azure resources are deployed and managed.
3232

3333
```azurepowershell-interactive
34-
New-AzResourceGroup -Name myResourceGroup -Location EastUS
34+
New-AzResourceGroup -Name myResourceGroup -Location 'EastUS'
3535
```
3636

3737
## Create virtual machine
@@ -42,29 +42,27 @@ When prompted, provide a username and password to be used as the sign-in credent
4242

4343
```azurepowershell-interactive
4444
New-AzVm `
45-
-ResourceGroupName "myResourceGroup" `
46-
-Name "myVM" `
47-
-Location "East US" `
48-
-VirtualNetworkName "myVnet" `
49-
-SubnetName "mySubnet" `
50-
-SecurityGroupName "myNetworkSecurityGroup" `
51-
-PublicIpAddressName "myPublicIpAddress" `
45+
-ResourceGroupName 'myResourceGroup' `
46+
-Name 'myVM' `
47+
-Location 'East US' `
48+
-VirtualNetworkName 'myVnet' `
49+
-SubnetName 'mySubnet' `
50+
-SecurityGroupName 'myNetworkSecurityGroup' `
51+
-PublicIpAddressName 'myPublicIpAddress' `
5252
-OpenPorts 80,3389
5353
```
5454

55-
[!INCLUDE [ephemeral-ip-note.md](../../../includes/ephemeral-ip-note.md)]
56-
5755
## Connect to virtual machine
5856

5957
After the deployment has completed, RDP to the VM. To see your VM in action, the IIS web server is then installed.
6058

6159
To see the public IP address of the VM, use the [Get-AzPublicIpAddress](/powershell/module/az.network/get-azpublicipaddress) cmdlet:
6260

63-
```powershell
64-
Get-AzPublicIpAddress -ResourceGroupName "myResourceGroup" | Select "IpAddress"
61+
```azurepowershell-interactive
62+
Get-AzPublicIpAddress -ResourceGroupName 'myResourceGroup' | Select-Object -Property 'IpAddress'
6563
```
6664

67-
Use the following command to create a remote desktop session from your local computer. Replace the IP address with the public IP address of your VM.
65+
Use the following command to create a remote desktop session from your local computer. Replace `publicIpAddress` with the public IP address of your VM.
6866

6967
```powershell
7068
mstsc /v:publicIpAddress
@@ -79,7 +77,7 @@ You may receive a certificate warning during the sign-in process. Click **Yes**
7977
To see your VM in action, install the IIS web server. Open a PowerShell prompt on the VM and run the following command:
8078

8179
```powershell
82-
Install-WindowsFeature -name Web-Server -IncludeManagementTools
80+
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
8381
```
8482

8583
When done, close the RDP connection to the VM.
@@ -100,7 +98,7 @@ Remove-AzResourceGroup -Name myResourceGroup
10098

10199
## Next steps
102100

103-
In this quickstart, you deployed a simple virtual machine, open a network port for web traffic, and installed a basic web server. To learn more about Azure virtual machines, continue to the tutorial for Windows VMs.
101+
In this quickstart, you deployed a simple virtual machine, opened a network port for web traffic, and installed a basic web server. To learn more about Azure virtual machines, continue to the tutorial for Windows VMs.
104102

105103
> [!div class="nextstepaction"]
106104
> [Azure Windows virtual machine tutorials](./tutorial-manage-vm.md)

0 commit comments

Comments
 (0)