Enable/Disable Accelerated Networking on Azure VM's

Microsoft Azure has the option to enable Accelerated Networking on VM's. This script can be used to enable/disable this feature on your Azure VM's.

 
 
 
 
 
5 Star
(1)
1,164 times
Add to favorites
Windows Azure
3/18/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Does this script supports VMs with availability set?
    1 Posts | Last post March 01, 2019
    • Hi,
      Does this script supports VMs with availability set?
  • Script failed - be careful
    1 Posts | Last post February 16, 2019
    • I have tried to use the script, but it failed and deleted the VM. Fortunately the VHD is still preserved. Use with caution - or avoid until new update.
      
      My errors:
      1. Requested operation cannot be performed because storage account type "Premium_LRS" is not supported for VM size "Standard_D11_v2_Promo"
      
  • Script fails recreated Virtual Machine
    1 Posts | Last post January 24, 2019
    • I'm not entirely sure what caused this but be careful using it, the script failed after deleting the VM and recreating it. 
      VERBOSE: 9:18:07 AM - Template is valid.
      VERBOSE: 9:18:10 AM - Create template deployment 'SettingUpAccellNic-2019-01-23_091516'
      VERBOSE: 9:18:10 AM - Checking deployment status in 5 seconds
      VERBOSE: 9:18:15 AM - Checking deployment status in 5 seconds
      VERBOSE: 9:18:20 AM - Resource Microsoft.Network/networkInterfaces 'nicname01389' provisioning status is succeeded
      VERBOSE: 9:18:21 AM - Checking deployment status in 5 seconds
      New-AzureRmResourceGroupDeployment : 9:18:26 AM - Resource Microsoft.Compute/virtualMachines '*VMNAMEREMOVED*' failed with message '{
        "error": {
          "code": "PropertyChangeNotAllowed",
          "message": "Changing property 'dataDisk.name' is not allowed.",
          "target": "dataDisk.name"
        }
      }'
  • I believe something may have changed.
    1 Posts | Last post January 04, 2019
    • I've used this before without much issue but today attempting to remove a VM nic I was prompted a bunch of tmimes when it ran Test-AzureRmResourceGroupDeployment for values that the json file showed as null.  Such as  connections_Expressroute_USW2_Prod_location and so on.  If I click OK through it seems to proceed but something is definitely wrong with it.  I can't tell if I'm breaking something or not.
  • Why does it fail?
    1 Posts | Last post December 20, 2018
    • PS C:\Users\guyho\Downloads> Remove-AzureRmAcceleratedNIC -ResourceGroupName servers-westeurope-rg -VMName mim1 -OsType windows 
      VERBOSE: Original resource group ARM template file name: C:\Users\guyho\Downloads\OriginalTemplate-2018-12-20_103429.json
      VERBOSE: New resource group ARM template file name: C:\Users\guyho\Downloads\NewTemplate-2018-12-20_103429.json
      VERBOSE: Exporting resource group
      WARNING: ExportTemplateCompletedWithErrors : Export template operation completed with errors. Some resources were not exported. Please see details for more information.
      WARNING: ExportTemplateProviderError : Could not get resources of the type 'Microsoft.Storage/storageAccounts/managementPolicies'. Resources of this type will not be exported.
      WARNING: ExportTemplateProviderError : Could not get resources of the type 'Microsoft.Storage/storageAccounts/blobServices'. Resources of this type will not be exported.
      
      Remove-AzureRmAcceleratedNIC : An error ocurred: Exception setting "macAddress": "The property 'macAddress' cannot be found on this object. Verify that the property exists and can be set."
      At line:1 char:1
      + Remove-AzureRmAcceleratedNIC -ResourceGroupName servers-westeurope-rg ...
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
          + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Remove-AzureRmAcceleratedNIC
  • does it work for Windows?
    1 Posts | Last post December 20, 2018
    • does it work for Windows?