Skip to content

Commit da1bc36

Browse files
Merge pull request #312045 from asudbring/tsk554553-sfi-bastion
Remove include files and inline portal sections for accelerated networking article
2 parents 1159e23 + e32b828 commit da1bc36

1 file changed

Lines changed: 139 additions & 22 deletions

File tree

articles/virtual-network/create-virtual-machine-accelerated-networking.md

Lines changed: 139 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: asudbring
55
ms.author: allensu
66
ms.service: azure-virtual-network
77
ms.topic: how-to
8-
ms.date: 01/07/2025
8+
ms.date: 02/19/2026
99
ms.custom: fasttrack-edit, devx-track-azurecli, linux-related-content, innovation-engine
1010
# 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."
1111
---
@@ -40,11 +40,88 @@ If you choose to install and use PowerShell locally, this article requires the A
4040

4141
---
4242

43-
## Create a virtual network
43+
## Create a resource group and virtual network
4444

4545
### [Portal](#tab/portal)
4646

47-
[!INCLUDE [virtual-network-create-with-bastion.md](~/reusable-content/ce-skilling/azure/includes/virtual-network-create-with-bastion.md)]
47+
### Create a resource group
48+
49+
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).
103+
104+
>[!NOTE]
105+
>[!INCLUDE [Pricing](~/reusable-content/ce-skilling/azure/includes/bastion-pricing.md)]
106+
107+
1. In the search box at the top of the portal, enter **Bastion**. Select **Bastions** in the search results.
108+
109+
1. Select **+ Create**.
110+
111+
1. In the **Basics** tab of **Create a Bastion**, enter or select the following information:
112+
113+
| Setting | Value |
114+
| --- | --- |
115+
| **Subscription** | Select your subscription. |
116+
| **Resource group** | Select **test-rg**. |
117+
| **Name** | Enter **bastion**. |
118+
| **Region** | Select **East US 2**. |
119+
| **Tier** | Select **Developer**. |
120+
| **Virtual network** | Select **vnet-1**. |
121+
122+
1. Select **Review + create**.
123+
124+
1. Select **Create**.
48125

49126
### [PowerShell](#tab/powershell)
50127

@@ -123,6 +200,7 @@ $bastionParams = @{
123200
PublicIpAddressName = "public-ip-bastion"
124201
PublicIpAddressRgName = "test-rg"
125202
VirtualNetworkRgName = "test-rg"
203+
Sku = "Basic"
126204
}
127205
New-AzBastion @bastionParams -AsJob
128206
```
@@ -314,7 +392,8 @@ New-AzBastion @bastionParams -AsJob
314392
--name $BASTION_NAME \
315393
--vnet-name $VNET_NAME \
316394
--public-ip-address $PUBLIC_IP_NAME \
317-
--location $LOCATION
395+
--location $LOCATION \
396+
--sku Basic
318397
```
319398

320399
Results:
@@ -473,37 +552,75 @@ $nic = New-AzNetworkInterface @nicParams
473552

474553
### [Portal](#tab/portal)
475554

476-
[!INCLUDE [create-test-virtual-machine-linux.md](~/reusable-content/ce-skilling/azure/includes/create-test-virtual-machine-linux.md)]
555+
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
477556

478-
### [PowerShell](#tab/powershell)
557+
1. Select **+ Create** then **Azure virtual machine**.
479558

480-
Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set a user name and password for the VM and store them in the `$cred` variable.
559+
1. In **Create a virtual machine** enter or select the following information in the **Basics** tab:
481560

482-
```azurepowershell
483-
$cred = Get-Credential
484-
```
561+
| Setting | Value |
562+
| ------- | ----- |
563+
| **Project details** | |
564+
| Subscription | Select your subscription. |
565+
| Resource group | Select **test-rg**. |
566+
| **Instance details** | |
567+
| Virtual machine name | Enter **vm-1**. |
568+
| Region | Select **(US) East US 2**. |
569+
| Availability options | Select **No infrastructure redundancy required**. |
570+
| Security type | Select **Standard**. |
571+
| Image | Select **Ubuntu Server 24.04 LTS - x64 Gen2**. |
572+
| VM architecture | Leave the default of **x64**. |
573+
| Size | Select a size. |
574+
| **Administrator account** | |
575+
| Authentication type | Select **SSH public key**. |
576+
| Username | Enter a username. |
577+
| SSH public key source | Select **Generate new key pair**. |
578+
| Key pair name | Enter **vm-1-key**. |
579+
| **Inbound port rules** | |
580+
| Public inbound ports | Select **None**. |
485581

486-
> [!NOTE]
487-
> A username is required for the VM. The password is optional and won't be used if set. SSH key configuration is recommended for Linux VMs.
582+
1. Select **Next: Disks** then **Next: Networking**.
583+
584+
1. In the Networking tab, enter or select the following information:
585+
586+
| Setting | Value |
587+
| ------- | ----- |
588+
| **Network interface** | |
589+
| Virtual network | Select **vnet-1**. |
590+
| Subnet | Select **subnet-1 (10.0.0.0/24)**. |
591+
| Public IP | Select **None**. |
592+
| Network interface (NIC) network security group | Select **Advanced**. |
593+
| 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 for the `.pem` file. The private key is needed in later steps for connecting to the virtual machine with Azure Bastion.
600+
601+
### [PowerShell](#tab/powershell)
488602

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).
490604

491605
```azurepowershell
492606
$vmConfigParams = @{
493607
VMName = "vm-1"
494608
VMSize = "Standard_DS4_v2"
495-
}
609+
}
496610
$vmConfig = New-AzVMConfig @vmConfigParams
497611
```
498612

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:
500614

501615
```azurepowershell
616+
# Create a credential object with username
617+
$cred = Get-Credential
618+
502619
$osParams = @{
503620
VM = $vmConfig
504621
ComputerName = "vm-1"
505622
Credential = $cred
506-
}
623+
}
507624
$vmConfig = Set-AzVMOperatingSystem @osParams -Linux -DisablePasswordAuthentication
508625
509626
$imageParams = @{
@@ -512,7 +629,7 @@ $imageParams = @{
512629
Offer = "ubuntu-24_04-lts"
513630
Skus = "server"
514631
Version = "latest"
515-
}
632+
}
516633
$vmConfig = Set-AzVMSourceImage @imageParams
517634
```
518635

@@ -523,25 +640,25 @@ Use [Add-AzVMNetworkInterface](/powershell/module/az.compute/add-azvmnetworkinte
523640
$nicParams = @{
524641
ResourceGroupName = "test-rg"
525642
Name = "nic-1"
526-
}
643+
}
527644
$nic = Get-AzNetworkInterface @nicParams
528645
529646
$vmConfigParams = @{
530647
VM = $vmConfig
531648
Id = $nic.Id
532-
}
649+
}
533650
$vmConfig = Add-AzVMNetworkInterface @vmConfigParams
534651
```
535652

536-
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 command generates 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.
537654

538655
```azurepowershell
539656
$vmParams = @{
540657
VM = $vmConfig
541658
ResourceGroupName = "test-rg"
542659
Location = "eastus2"
543-
SshKeyName = "ssh-key"
544-
}
660+
SshKeyName = "vm-1-ssh-key"
661+
}
545662
New-AzVM @vmParams -GenerateSshKey
546663
```
547664

0 commit comments

Comments
 (0)