Enable accelerated networking on existing nic
Hi there,
im currently struggling on enabling/disabling accelerated networking on an existing network interface of a deallocatet vm with the python SDK.
Via
network_client.network_interfaces.create_or_update( .., ..., { ... 'enable_accelerated_networking': True} )
i'm of course able to create a new network interface with the desired setting. But create_or_update does not seem to let me update an existing nic as i'm getting the error
msrestazure.azure_exceptions.CloudError: Azure Error: IpConfigDeleteNotSupported Message: IP Configuration pub-nicn0013 cannot be deleted. Deletion and renaming of primary IP Configuration is not supported
I'm missing here a simple update function that is for example provided with the compute_client. There it is possible to update a single value, for example:
compute_client.disks.update(resource_group_name, disk.name, {'disk_size_gb': 100})
Thanks in advance!
@tjprescott would you know this scenarion? Thanks!
Any update on this issue?
@bobkodex hmm... this seems like a very old issue, so i am not sure if my comments can be useful.
the reason that there is no simple update() is that underlying REST API doesn't provide such function.
basically the best approach would probably be: disk = compute_client.disks.get(...) .... udpate whatever you need ... compute_client.disks.create_or_update(.... disk)
@bobkodex, Thank you for bringing this to our attention - we're currently looking into this issue and will update soon.
@KarenHammons can you transfer this to Datapath, since it's a NIC/Accelerated Networking issue?
@Krishnan Rangachari or @Aanand Ramachandran – can you help with this GitHub question please?
Adding AccelNet PM, @Laxmana Rao Battula
Make sure to stop/deallocate the VM before enabling AN for the existing NIC. Refer the link - https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli#enable-accelerated-networking-on-existing-vms for additional details.
If there are no further issues, we can close this issue #please-close