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
# Customer intent: "As a cloud engineer, I want to create Azure virtual machines with Accelerated Networking enabled, so that I can improve their network performance for resource-intensive applications."
11
11
---
@@ -40,11 +40,88 @@ If you choose to install and use PowerShell locally, this article requires the A
1. Sign in to the [Azure portal](https://portal.azure.com).
50
+
51
+
1. In the search box at the top of the portal, enter **Resource group**. Select **Resource groups** in the search results.
52
+
53
+
1. Select **+ Create**.
54
+
55
+
1. In the **Basics** tab of **Create a resource group**, enter or select the following information:
56
+
57
+
| Setting | Value |
58
+
| --- | --- |
59
+
|**Subscription**| Select your subscription. |
60
+
|**Resource group**| Enter **test-rg**. |
61
+
|**Region**| Select **East US 2**. |
62
+
63
+
1. Select **Review + create**.
64
+
65
+
1. Select **Create**.
66
+
67
+
### Create a virtual network
68
+
69
+
1. In the search box at the top of the portal, enter **Virtual network**. Select **Virtual networks** in the search results.
70
+
71
+
1. Select **+ Create**.
72
+
73
+
1. On the **Basics** tab of **Create virtual network**, enter or select the following information:
74
+
75
+
| Setting | Value |
76
+
| --- | --- |
77
+
|**Subscription**| Select your subscription. |
78
+
|**Resource group**| Select **test-rg**. |
79
+
|**Name**| Enter **vnet-1**. |
80
+
|**Region**| Select **East US 2**. |
81
+
82
+
1. Select **Next** to proceed to the **Security** tab.
83
+
84
+
1. Select **Next** to proceed to the **IP Addresses** tab.
85
+
86
+
1. In the address space box in **Subnets**, select the **default** subnet.
87
+
88
+
1. In **Edit subnet**, enter or select the following information:
89
+
90
+
| Setting | Value |
91
+
| --- | --- |
92
+
|**Name**| Enter **subnet-1**. |
93
+
|**Starting address**| Enter **10.0.0.0**. |
94
+
|**Subnet size**| Leave the default of **/24 (256 addresses)**. |
95
+
96
+
1. Select **Save**.
97
+
98
+
1. Select **Review + create** at the bottom of the screen, and when validation passes, select **Create**.
99
+
100
+
### Create Azure Bastion
101
+
102
+
Azure Bastion uses your browser to connect to VMs in your virtual network over secure shell (SSH) or remote desktop protocol (RDP) by using their private IP addresses. The VMs don't need public IP addresses, client software, or special configuration. For more information about Azure Bastion, see [Azure Bastion](/azure/bastion/bastion-overview).
Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set a user name and password forthe VM and store themin the `$cred` variable.
559
+
1. In **Create a virtual machine** enter or selectthefollowing information in the **Basics** tab:
| Configure network security group | Select **Create new**.</br> In **Name** enter **nsg-1**.</br> Select **OK**. |
594
+
595
+
1. Leave the rest of the options at the defaults and select**Review + create**.
596
+
597
+
1. Select **Create**.
598
+
599
+
1. When the **Generate new key pair** pop-up appears, select**Download private key and create resource**. The key file downloads as **vm-1-key.pem**. Make note of the download location forthe `.pem` file. The private key is neededin later steps for connecting to the virtual machine with Azure Bastion.
600
+
601
+
### [PowerShell](#tab/powershell)
488
602
489
-
Use [New-AzVMConfig](/powershell/module/az.compute/new-azvmconfig) to define a VM with a VM size that supports accelerated networking, as listed in [Windows Accelerated Networking](https://azure.microsoft.com/updates/accelerated-networking-in-expanded-preview). For a list of all Windows VM sizes and characteristics, see [Windows VM sizes](/azure/virtual-machines/sizes).
603
+
Use [New-AzVMConfig](/powershell/module/az.compute/new-azvmconfig) to define a VM with a VM size that supports accelerated networking, as listed in [Windows Accelerated Networking](https://azure.microsoft.com/updates/accelerated-networking-in-expanded-preview). For a list of all VM sizes and characteristics, see [VM sizes](/azure/virtual-machines/sizes).
490
604
491
605
```azurepowershell
492
606
$vmConfigParams = @{
493
607
VMName = "vm-1"
494
608
VMSize = "Standard_DS4_v2"
495
-
}
609
+
}
496
610
$vmConfig = New-AzVMConfig @vmConfigParams
497
611
```
498
612
499
-
Use [Set-AzVMOperatingSystem](/powershell/module/az.compute/set-azvmoperatingsystem) and [Set-AzVMSourceImage](/powershell/module/az.compute/set-azvmsourceimage) to create the rest of the VM configuration. The following example creates an Ubuntu Server virtual machine:
613
+
Use [Set-AzVMOperatingSystem](/powershell/module/az.compute/set-azvmoperatingsystem) and [Set-AzVMSourceImage](/powershell/module/az.compute/set-azvmsourceimage) to create the rest of the VM configuration. The following example creates an Ubuntu Server virtual machine with SSH key authentication:
Use [New-AzVM](/powershell/module/az.compute/new-azvm) to create the VM with Accelerated Networking enabled. The command will generate SSH keys for the virtual machine for login. Make note of the location of the private key. The private key is needed in later steps for connecting to the virtual machine with Azure Bastion.
653
+
Use [New-AzVM](/powershell/module/az.compute/new-azvm) to create the VM with Accelerated Networking enabled. The commandgenerates SSH keys forthe virtual machine for login. Make note of the location of the private key. The private key is neededin later steps for connecting to the virtual machine with Azure Bastion.
0 commit comments