Skip to content

Commit ff84988

Browse files
committed
edits
1 parent 8d0acc0 commit ff84988

5 files changed

+71
-65
lines changed

articles/virtual-network/accelerated-networking-overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ The following Linux and FreeBSD distributions from the Azure Gallery support Acc
9191
--output table
9292
```
9393

94-
Although NC and NV sizes appear in the command output, those sizes don't support Accelerated Networking. Enabling Accelerated Networking on NC or NV VMs has no effect.
94+
>[!NOTE]
95+
>Although NC and NV sizes appear in the command output, those sizes don't support Accelerated Networking. Enabling Accelerated Networking on NC or NV VMs has no effect.
9596
9697
### Custom VM images
9798

articles/virtual-network/create-vm-accelerated-networking-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ After the VM is created, you get output similar to the following example. Take n
138138
ssh <myAdminUser>@<myPublicIp>
139139
```
140140

141-
1. From the Bash shell, enter `uname -r` and confirm that the kernel version is one of the following versions, or greater:
141+
1. From a Bash shell on the remote VM, enter `uname -r` and confirm that the kernel version is one of the following versions, or greater:
142142

143143
- **Ubuntu 16.04**: 4.11.0-1013.
144144
- **SLES SP3**: 4.4.92-6.18.
@@ -274,14 +274,14 @@ If the VM uses a [supported operating system](./accelerated-networking-overview.
274274
275275
To enable or disable Accelerated Networking for an existing VM through the Azure portal:
276276

277-
1. From the portal page for the VM, select **Networking** from the left menu.
277+
1. From the [Azure portal](https://portal.azure.com) page for the VM, select **Networking** from the left menu.
278278
1. On the **Networking** page, select the **Network Interface**.
279279
1. At the top of the NIC **Overview** page, select **Edit accelerated networking**.
280280
1. Select **Automatic**, **Enabled**, or **Disabled**, and then select **Save**.
281281

282282
To confirm whether Accelerated Networking is enabled for an existing VM:
283283

284-
1. From the [Azure portal](https://portal.azure.com) page for the VM, select **Networking** from the left menu.
284+
1. From the portal page for the VM, select **Networking** from the left menu.
285285
1. On the **Networking** page, select the **Network Interface**.
286286
1. On the network interface **Overview** page, under **Essentials**, note whether **Accelerated networking** is set to **Enabled** or **Disabled**.
287287

articles/virtual-network/create-vm-accelerated-networking-powershell.md

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.author: allensu
1515

1616
# Use Azure PowerShell to create a Windows VM with Accelerated Networking
1717

18-
This article describes how to use Azure PowerShell to create a Windows virtual machine (VM) with Accelerated Networking (AccelNet) enabled. The article also discusses application binding requirements, and how to enable and manage Accelerated Networking on existing VMs.
18+
This article describes how to use Azure PowerShell to create a Windows virtual machine (VM) with Accelerated Networking (AccelNet) enabled. The article also discusses how to enable and manage Accelerated Networking on existing VMs.
1919

2020
You can also create a VM with Accelerated Networking enabled by using the [Azure portal](quick-create-portal.md). For more information about managing Accelerated Networking on VMs through the Azure portal, see [Manage Accelerated Networking through the portal](#manage-accelerated-networking-through-the-portal).
2121

@@ -27,7 +27,7 @@ To use Azure CLI to create a Linux VM with Accelerated Networking enabled, see [
2727

2828
- [Azure PowerShell](/powershell/azure/install-az-ps) 1.0.0 or later installed. To find your currently installed version, run `Get-Module -ListAvailable Az`. If you need to install or upgrade, install the latest version of the Az module from the [PowerShell Gallery](https://www.powershellgallery.com/packages/Az).
2929

30-
- In a PowerShell session, sign in to an Azure account by using [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount).
30+
- In PowerShell, sign in to your Azure account by using [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount).
3131

3232
## Create a VM with Accelerated Networking
3333

@@ -46,16 +46,16 @@ In the following examples, replace the example parameters such as `<myResourceGr
4646
```azurepowershell
4747
$subnet = New-AzVirtualNetworkSubnetConfig `
4848
-Name "<mySubnet>" `
49-
-AddressPrefix "192.168.1.0/24"
49+
-AddressPrefix "<192.168.1.0/24>"
5050
```
5151

52-
1. Use [New-AzVirtualNetwork](/powershell/module/az.Network/New-azVirtualNetwork) to create the virtual network with the subnet.
52+
1. Use [New-AzVirtualNetwork](/powershell/module/az.Network/New-azVirtualNetwork) to create a virtual network with the subnet.
5353

5454
```azurepowershell
5555
$vnet = New-AzVirtualNetwork -ResourceGroupName "<myResourceGroup>" `
5656
-Location "<myAzureRegion>" `
5757
-Name "<myVnet>" `
58-
-AddressPrefix "192.168.0.0/16" `
58+
-AddressPrefix "<192.168.0.0/16>" `
5959
-Subnet $Subnet
6060
```
6161

@@ -81,7 +81,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
8181

8282
```azurepowershell
8383
$nsg = New-AzNetworkSecurityGroup `
84-
-ResourceGroupName "<myResourceGroup>" `
84+
-ResourceGroupName "<myResourceGroup>" `
8585
-Location "<myAzureRegion>" `
8686
-Name "<myNsg>" `
8787
-SecurityRules $rdp
@@ -93,7 +93,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
9393
Set-AzVirtualNetworkSubnetConfig `
9494
-VirtualNetwork $vnet `
9595
-Name "<mySubnet>" `
96-
-AddressPrefix "192.168.1.0/24" `
96+
-AddressPrefix "<192.168.1.0/24>" `
9797
-NetworkSecurityGroup $nsg
9898
```
9999

@@ -123,7 +123,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
123123

124124
### Create a VM and attach the network interface
125125

126-
1. Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set credentials for the VM and store them in the `$cred` variable, which prompts you to sign in.
126+
1. 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.
127127

128128
```azurepowershell
129129
$cred = Get-Credential
@@ -157,7 +157,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
157157
$vmConfig = Add-AzVMNetworkInterface -VM $vmConfig -Id $nic.Id
158158
```
159159

160-
1. Use [New-AzVM](/powershell/module/az.compute/new-azvm) to create the VM.
160+
1. Use [New-AzVM](/powershell/module/az.compute/new-azvm) to create the VM with Accelerated Networking enabled.
161161

162162
```azurepowershell
163163
New-AzVM -VM $vmConfig -ResourceGroupName "<myResourceGroup>" -Location "<myAzureRegion>"
@@ -177,20 +177,20 @@ Once you create the VM in Azure, connect to the VM and confirm that the Ethernet
177177

178178
1. On the **Native RDP** screen, select **Download RDP file**.
179179

180-
1. Open the downloaded RDP file, and then sign in to the VM with the credentials you entered when you created the VM.
180+
1. Open the downloaded RDP file, and then sign in with the credentials you entered when you created the VM.
181181

182-
1. On the remote VM, right-click the Windows **Start** button and select **Device Manager**.
182+
1. On the remote VM, right-click **Start** and select **Device Manager**.
183183

184184
1. In the **Device Manager** window, expand the **Network adapters** node.
185185

186186
1. Confirm that the **Mellanox ConnectX-4 Lx Virtual Ethernet Adapter** appears, as shown in the following image:
187187

188-
![Mellanox ConnectX-3 Virtual Function Ethernet Adapter, new network adapter for accelerated networking, Device Manager](./media/create-vm-accelerated-networking/device-manager.png)
188+
![Mellanox ConnectX-3 Virtual Function Ethernet Adapter, new network adapter for accelerated networking, Device Manager](./media/create-vm-accelerated-networking/device-manager.png)
189189

190-
Accelerated networking is now enabled for your VM.
190+
The presence of the adapter confirms that Accelerated Networking is enabled for your VM.
191191

192192
> [!NOTE]
193-
> If the Mellanox adapter fails to start, open an administrator prompt in the remote desktop session and enter the following command:
193+
> If the Mellanox adapter fails to start, open an administrator command prompt on the remote VM and enter the following command:
194194
>
195195
> `netsh int tcp set global rss = enabled`
196196
@@ -211,15 +211,14 @@ You can enable Accelerated Networking on an existing VM. The VM must meet the fo
211211
Stop-AzVM -ResourceGroup "<myResourceGroup>" -Name "<myVM>"
212212
```
213213

214-
If you created your VM individually without an availability set, you must stop or deallocate only the individual VM to enable Accelerated Networking. If you created your VM with an availability set, you must stop or deallocate all VMs in the set before you can enable Accelerated Networking on any of the NICs. The VMs then end up on a cluster that supports Accelerated Networking.
214+
If you created your VM individually without an availability set, you must stop or deallocate only the individual VM to enable Accelerated Networking. If you created your VM with an availability set, you must stop or deallocate all VMs in the set, so the VMs end up on a cluster that supports Accelerated Networking.
215215

216-
The stop or deallocate requirement is unnecessary if you disable Accelerated Networking. Clusters that support Accelerated Networking also work fine with NICs that don't use Accelerated Networking.
216+
The stop or deallocate requirement is unnecessary to disable Accelerated Networking. Clusters that support Accelerated Networking also work fine with NICs that don't use Accelerated Networking.
217217

218218
1. Enable Accelerated Networking on the NIC of your VM:
219219

220220
```azurepowershell
221-
$nic = Get-AzNetworkInterface -ResourceGroupName "<myResourceGroup>" `
222-
-Name "<myNic>"
221+
$nic = Get-AzNetworkInterface -ResourceGroupName "<myResourceGroup>" -Name "<myNic>"
223222
224223
$nic.EnableAcceleratedNetworking = $true
225224
@@ -229,8 +228,7 @@ You can enable Accelerated Networking on an existing VM. The VM must meet the fo
229228
3. Restart your VM, or all the VMs in the availability set, and [confirm that Accelerated Networking is enabled](#confirm-the-ethernet-controller-is-installed).
230229

231230
```azurepowershell
232-
Start-AzVM -ResourceGroup "<myResourceGroup>" `
233-
-Name "<myVM>"
231+
Start-AzVM -ResourceGroup "<myResourceGroup>" -Name "<myVM>"
234232
```
235233

236234
### Virtual Machine Scale Sets
@@ -240,19 +238,18 @@ Azure Virtual Machine Scale Sets is slightly different but follows the same work
240238
1. Stop the VMs:
241239

242240
```azurepowershell
243-
Stop-AzVmss -ResourceGroupName "<myResourceGroup>" `
244-
-VMScaleSetName "<myScaleSet>"
241+
Stop-AzVmss -ResourceGroupName "<myResourceGroup>" -VMScaleSetName "<myScaleSet>"
245242
```
246243
247244
1. Update the Accelerated Networking property under the NIC:
248245
249246
```azurepowershell
250-
$vmss = Get-AzVmss -ResourceGroupName "<myResourceGroup>" `
251-
-VMScaleSetName "<myScaleSet>"
247+
$vmss = Get-AzVmss -ResourceGroupName "<myResourceGroup>" -VMScaleSetName "<myScaleSet>"
252248
253249
$vmss.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].EnableAcceleratedNetworking = $true
254250
255-
Update-AzVmss -ResourceGroupName "<myResourceGroup>" `
251+
Update-AzVmss
252+
-ResourceGroupName "<myResourceGroup>" `
256253
-VMScaleSetName "<myScaleSet>" `
257254
-VirtualMachineScaleSet $vmss
258255
```
@@ -262,16 +259,16 @@ Azure Virtual Machine Scale Sets is slightly different but follows the same work
262259
```azurepowershell
263260
$vmss.UpgradePolicy.Mode = "Automatic"
264261
265-
Update-AzVmss -ResourceGroupName "<myResourceGroup>" `
262+
Update-AzVmss
263+
-ResourceGroupName "<myResourceGroup>" `
266264
-VMScaleSetName "<myScaleSet>" `
267265
-VirtualMachineScaleSet $vmss
268266
```
269267

270268
1. Restart the scale set:
271269

272270
```azurepowershell
273-
Start-AzVmss -ResourceGroupName "<myResourceGroup>" `
274-
-VMScaleSetName "<myScaleSet>"
271+
Start-AzVmss -ResourceGroupName "<myResourceGroup>" -VMScaleSetName "<myScaleSet>"
275272
```
276273

277274
Once you restart and the upgrades finish, the virtual function (VF) appears inside VMs that use a supported OS and VM size.
@@ -289,7 +286,7 @@ VMs with Accelerated Networking enabled can be resized only to sizes that also s
289286
When you [create a VM in the Azure portal](quick-create-portal.md), you can select the **Enable accelerated networking** checkbox on the **Networking** tab of the **Create a virtual machine** screen. If the VM uses a [supported operating system](./accelerated-networking-overview.md#supported-operating-systems) and [VM size](./accelerated-networking-overview.md#supported-vm-instances) for Accelerated Networking, the checkbox is automatically selected. If Accelerated Networking isn't supported, the checkbox isn't selected, and a message explains the reason.
290287

291288
>[!NOTE]
292-
>- You can enable Accelerated Networking during portal VM creation only for Azure Marketplace supported operating systems. To create and enable Accelerated Networking for a VM with a custom OS image, you must use PowerShell or Azure CLI.
289+
>You can enable Accelerated Networking during portal VM creation only for Azure Marketplace supported operating systems. To create and enable Accelerated Networking for a VM with a custom OS image, you must use PowerShell or Azure CLI.
293290
294291
To enable or disable Accelerated Networking for an existing VM through the Azure portal:
295292

articles/virtual-network/virtual-network-manage-subnet.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: asudbring
77
ms.service: virtual-network
88
ms.topic: how-to
99
ms.workload: infrastructure-services
10-
ms.date: 03/13/2023
10+
ms.date: 03/18/2023
1111
ms.author: allensu
1212
---
1313

@@ -75,7 +75,7 @@ To do tasks on subnets, your account must be assigned to the [Network contributo
7575
1. On the **Virtual networks** page, select the virtual network you want to add a subnet to.
7676
1. On the virtual network page, select **Subnets** from the left navigation.
7777
1. On the **Subnets** page, select **+ Subnet**.
78-
1. On the **Add subnet** screen, enter values for the subnet settings.
78+
1. On the **Add subnet** screen, enter or select values for the subnet settings.
7979
1. Select **Save**.
8080

8181
# [Azure CLI](#tab/azure-cli)
@@ -91,13 +91,14 @@ az network vnet subnet create --name <subnetName> --resource-group <resourceGrou
9191
1. Use the [Add-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/add-azvirtualnetworksubnetconfig) command to configure the subnet.
9292

9393
```azurepowershell-interactive
94-
Add-AzVirtualNetworkSubnetConfig -Name <SubnetName> -VirtualNetwork <VirtualNetworkName> -AddressPrefix <String[]>
94+
$vnet = Get-AzVirtualNetwork -Name <virtualNetworkName> -ResourceGroupName <resourceGroupName>
95+
Add-AzVirtualNetworkSubnetConfig -Name <subnetName> -VirtualNetwork $vnet -AddressPrefix <String[]>
9596
```
9697

9798
1. Then associate the subnet configuration to the virtual network with [Set-AzVirtualNetwork](/powershell/module/az.network/Set-azVirtualNetwork).
9899

99100
```azurepowershell-interactive
100-
Set-AzVirtualNetwork
101+
Set-AzVirtualNetwork -VirtualNetwork $vnet
101102
```
102103

103104
---
@@ -175,7 +176,7 @@ az network vnet subnet delete --name <subnetName> --resource-group <resourceGrou
175176
Run the [Remove-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/remove-azvirtualnetworksubnetconfig?toc=%2fazure%2fvirtual-network%2ftoc.json) command and then set the configuration.
176177

177178
```azurepowershell-interactive
178-
Remove-AzVirtualNetworkSubnetConfig -Name <subnetName> -VirtualNetwork <virtualNetworkName> | Set-AzVirtualNetwork
179+
Remove-AzVirtualNetworkSubnetConfig -Name <subnetName> -VirtualNetwork $vnet | Set-AzVirtualNetwork
179180
```
180181

181182
---

0 commit comments

Comments
 (0)