Skip to content

Commit 84a8d79

Browse files
committed
fixes
1 parent 9af7807 commit 84a8d79

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -371,20 +371,20 @@ Accelerated networking is enabled in the portal during virtual machine creation.
371371

372372
### [PowerShell](#tab/powershell)
373373

374-
1. Use [New-AzNetworkInterface](/powershell/module/az.Network/New-azNetworkInterface) to create a network interface (NIC) with Accelerated Networking enabled, and assign the public IP address to the NIC.
374+
Use [New-AzNetworkInterface](/powershell/module/az.Network/New-azNetworkInterface) to create a network interface (NIC) with Accelerated Networking enabled, and assign the public IP address to the NIC.
375375

376-
```azurepowershell
377-
$vnet = Get-AzVirtualNetwork -ResourceGroupName "test-rg" -Name "vnet-1"
376+
```azurepowershell
377+
$vnet = Get-AzVirtualNetwork -ResourceGroupName "test-rg" -Name "vnet-1"
378378
379-
$nicParams = @{
380-
ResourceGroupName = "test-rg"
381-
Name = "nic-1"
382-
Location = "eastus2"
383-
SubnetId = $vnet.Subnets[0].Id
384-
EnableAcceleratedNetworking = $true
379+
$nicParams = @{
380+
ResourceGroupName = "test-rg"
381+
Name = "nic-1"
382+
Location = "eastus2"
383+
SubnetId = $vnet.Subnets[0].Id
384+
EnableAcceleratedNetworking = $true
385385
}
386-
$nic = New-AzNetworkInterface @nicParams
387-
```
386+
$nic = New-AzNetworkInterface @nicParams
387+
```
388388

389389
### [CLI](#tab/cli)
390390

@@ -488,8 +488,6 @@ $osParams = @{
488488
VM = $vmConfig
489489
ComputerName = "vm-1"
490490
Credential = $cred
491-
ProvisionVMAgent = $true
492-
EnableAutoUpdate = $true
493491
}
494492
$vmConfig = Set-AzVMOperatingSystem @osParams -Linux
495493

0 commit comments

Comments
 (0)