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
Copy file name to clipboardExpand all lines: articles/virtual-network/create-virtual-machine-accelerated-networking.md
-66Lines changed: 0 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -465,72 +465,6 @@ Accelerated networking is enabled in the portal during virtual machine creation.
465
465
466
466
### [PowerShell](#tab/powershell)
467
467
468
-
1. 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.
469
-
470
-
```azurepowershell
471
-
$cred = Get-Credential
472
-
```
473
-
474
-
1. 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).
475
-
476
-
```azurepowershell
477
-
$vmConfigParams = @{
478
-
VMName = "vm-1"
479
-
VMSize = "Standard_DS4_v2"
480
-
}
481
-
$vmConfig = New-AzVMConfig @vmConfigParams
482
-
```
483
-
484
-
1. 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 a Ubuntu Server virtual machine:
1. Use [New-AzVM](/powershell/module/az.compute/new-azvm) to create the VM with Accelerated Networking enabled.
524
-
525
-
```azurepowershell
526
-
$vmParams = @{
527
-
VM = $vmConfig
528
-
ResourceGroupName = "test-rg"
529
-
Location = "eastus2"
530
-
}
531
-
New-AzVM @vmParams
532
-
```
533
-
534
468
### [CLI](#tab/cli)
535
469
536
470
Use [az vm create](/cli/azure/vm#az-vm-create) to create the VM, and use the `--nics` option to attach the NIC you created. Make sure to selecta VM size and distribution that's listed in [Windows and Linux Accelerated Networking](https://azure.microsoft.com/updates/accelerated-networking-in-expanded-preview). For a list of all VM sizes and characteristics, see [Sizes for virtual machines in Azure](/azure/virtual-machines/sizes).
0 commit comments