Skip to content

Commit d35c2c0

Browse files
committed
fixes
1 parent a45781d commit d35c2c0

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -465,43 +465,43 @@ Accelerated networking is enabled in the portal during virtual machine creation.
465465

466466
### [PowerShell](#tab/powershell)
467467

468-
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.
468+
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.
469469

470-
```azurepowershell
471-
$cred = Get-Credential
472-
```
470+
```azurepowershell
471+
$cred = Get-Credential
472+
```
473473

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).
474+
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).
475475

476-
```azurepowershell
477-
$vmConfigParams = @{
478-
VMName = "vm-1"
479-
VMSize = "Standard_DS4_v2"
480-
}
481-
$vmConfig = New-AzVMConfig @vmConfigParams
482-
```
476+
```azurepowershell
477+
$vmConfigParams = @{
478+
VMName = "vm-1"
479+
VMSize = "Standard_DS4_v2"
480+
}
481+
$vmConfig = New-AzVMConfig @vmConfigParams
482+
```
483483

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:
484+
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:
485485

486-
```azurepowershell
487-
$osParams = @{
488-
VM = $vmConfig
489-
ComputerName = "vm-1"
490-
Credential = $cred
491-
ProvisionVMAgent = $true
492-
EnableAutoUpdate = $true
486+
```azurepowershell
487+
$osParams = @{
488+
VM = $vmConfig
489+
ComputerName = "vm-1"
490+
Credential = $cred
491+
ProvisionVMAgent = $true
492+
EnableAutoUpdate = $true
493493
}
494-
$vmConfig = Set-AzVMOperatingSystem @osParams -Linux
495-
496-
$imageParams = @{
497-
VM = $vmConfig
498-
PublisherName = "Canonical"
499-
Offer = "ubuntu-24_04-lts"
500-
Skus = "server"
501-
Version = "latest"
494+
$vmConfig = Set-AzVMOperatingSystem @osParams -Linux
495+
496+
$imageParams = @{
497+
VM = $vmConfig
498+
PublisherName = "Canonical"
499+
Offer = "ubuntu-24_04-lts"
500+
Skus = "server"
501+
Version = "latest"
502502
}
503-
$vmConfig = Set-AzVMSourceImage @imageParams
504-
```
503+
$vmConfig = Set-AzVMSourceImage @imageParams
504+
```
505505

506506
### [CLI](#tab/cli)
507507

0 commit comments

Comments
 (0)