locked
Accelerated Networking RRS feed

  • Question

  • Hi Experts

    i am new to azure, i have 4 subscriptions and i want to connect to azure power shell and enable Accelerated Networking on one virtual machine. Experts help me with the syntax to connect to power shell and enable accelerated networking



    • Edited by Risingflight Thursday, February 20, 2020 12:08 AM f
    Thursday, February 20, 2020 12:06 AM

Answers

  • Refer to https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-powershell

    Enable Accelerated Networking on existing VMs

    If you have created a VM without Accelerated Networking, it is possible to enable this feature on an existing VM. The VM must support Accelerated Networking by meeting the following prerequisites that are also outlined above:

    • The VM must be a supported size for Accelerated Networking
    • The VM must be a supported Azure Gallery image (and kernel version for Linux)
    • All VMs in an availability set or VMSS must be stopped/deallocated before enabling Accelerated Networking on any NIC

    Individual VMs & VMs in an availability set

    First stop/deallocate the VM or, if an Availability Set, all the VMs in the Set:

    Stop-AzVM -ResourceGroup "myResourceGroup" `
     -Name "myVM"

    mportant, please note, if your VM was created individually, without an availability set, you only need to stop/deallocate the individual VM to enable Accelerated Networking. If your VM was created with an availability set, all VMs contained in the availability set will need to be stopped/deallocated before enabling Accelerated Networking on any of the NICs.

    Once stopped, enable Accelerated Networking on the NIC of your VM:

    $nic = Get-AzNetworkInterface -ResourceGroupName "myResourceGroup" `
        -Name "myNic"
    $nic.EnableAcceleratedNetworking = $true

    $nic | Set-AzNetworkInterface

    Restart your VM or, if in an availability set, all the VMs in the set, and confirm that Accelerated Networking is enabled:

    Start-AzVM -ResourceGroup "myResourceGroup" `
     -Name "myVM"


    hth
    Marcin


    Thursday, February 20, 2020 3:47 AM
  • You need to install Azure PowerShell module and connect to your Azure subscription.

    To install, follow https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.5.0

    To connect, follow https://docs.microsoft.com/en-us/powershell/azure/get-started-azureps?view=azps-3.5.0

    hth
    Marcin

    • Marked as answer by Risingflight Tuesday, April 14, 2020 3:16 PM
    Thursday, February 20, 2020 12:52 PM

All replies

  • Refer to https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-powershell

    Enable Accelerated Networking on existing VMs

    If you have created a VM without Accelerated Networking, it is possible to enable this feature on an existing VM. The VM must support Accelerated Networking by meeting the following prerequisites that are also outlined above:

    • The VM must be a supported size for Accelerated Networking
    • The VM must be a supported Azure Gallery image (and kernel version for Linux)
    • All VMs in an availability set or VMSS must be stopped/deallocated before enabling Accelerated Networking on any NIC

    Individual VMs & VMs in an availability set

    First stop/deallocate the VM or, if an Availability Set, all the VMs in the Set:

    Stop-AzVM -ResourceGroup "myResourceGroup" `
     -Name "myVM"

    mportant, please note, if your VM was created individually, without an availability set, you only need to stop/deallocate the individual VM to enable Accelerated Networking. If your VM was created with an availability set, all VMs contained in the availability set will need to be stopped/deallocated before enabling Accelerated Networking on any of the NICs.

    Once stopped, enable Accelerated Networking on the NIC of your VM:

    $nic = Get-AzNetworkInterface -ResourceGroupName "myResourceGroup" `
        -Name "myNic"
    $nic.EnableAcceleratedNetworking = $true

    $nic | Set-AzNetworkInterface

    Restart your VM or, if in an availability set, all the VMs in the set, and confirm that Accelerated Networking is enabled:

    Start-AzVM -ResourceGroup "myResourceGroup" `
     -Name "myVM"


    hth
    Marcin


    Thursday, February 20, 2020 3:47 AM
  • As i am new to azure how can i connect to azure powershell. i want to connect from one of my jumpserver not from Azure portal.
    Thursday, February 20, 2020 4:30 AM
  • You need to install Azure PowerShell module and connect to your Azure subscription.

    To install, follow https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.5.0

    To connect, follow https://docs.microsoft.com/en-us/powershell/azure/get-started-azureps?view=azps-3.5.0

    hth
    Marcin

    • Marked as answer by Risingflight Tuesday, April 14, 2020 3:16 PM
    Thursday, February 20, 2020 12:52 PM