

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to disable the Azure VM accelerated settings using PowerShell?
<p>To disable the Azure VM accelerated settings using PowerShell, we need to disable the <strong>EnableAcceleratedNetworking</strong> property on the NIC attached to the VM.</p><pre class="prettyprint notranslate">$vm = Get-AzVM -Name TestVM $nicname = (($vm.NetworkProfile.NetworkInterfaces.id).Split('/'))[-1] $nicsetting = Get-AzNetworkInterface -ResourceGroupName $vm.ResourceGroupName - Name $nicname $nicsetting.EnableAcceleratedNetworking = $false</pre><p>In the above example, we are setting AN settings on the Azure VM <strong>“TestVM”. </strong>To set the AN setting on the particular subscription, use the below command. Make sure that you are connected to the proper subscription using the <strong>Set-AzContext</strong> command.</p><pre class="prettyprint notranslate">Get-AzVM | Select Name, ResourceGroupName,` @{N='Accelerated Netoworking'; E={ $nic = (($_.NetworkProfile.NetworkInterfaces.id).Split('/'))[-1] $nicsetting = Get-AzNetworkInterface - ResourceGroupName $_.ResourceGroupName -Name $nic $nicsetting.EnableAcceleratedNetworking = $true if($nicsetting.EnableAcceleratedNetworking){"Enabled"} else{"Disabled"} }}</pre><p>To set the AN settings on the VMs of the particular resource group, use <strong>Get-AzVM - ResourceGroupName ‘ResourceGroup’</strong> instead of Get-AzVM in the above code.</p>
- Related Questions & Answers
- How to enable the Azure VM accelerated settings using PowerShell?
- How to get the Accelerated networking status of Azure VM using PowerShell?
- How to get the Azure VM disk encryption settings using PowerShell?
- How to get the Azure VM disk caching settings using PowerShell?
- How to deallocate the Azure VM using Azure CLI in PowerShell?
- How to start the Azure VM using Azure CLI in PowerShell?
- How to stop the Azure VM using Azure CLI in PowerShell?
- How to restart the Azure VM using Azure CLI in PowerShell?
- How to resize the Azure VM using Azure CLI in PowerShell?
- How to Export the azure VM tags using PowerShell?
- How to get the Azure VM Size using Azure CLI in PowerShell?
- How to get the Azure VM username using Azure CLI in PowerShell?
- How to list the azure VM extensions using Azure CLI in PowerShell?
- How to add the tag of Azure VM using PowerShell?
- How to retrieve the Azure VM NIC name using PowerShell?
Advertisements