virtual_machine_extensions.create_or_update infinite polling
I'm trying to create a Linux VM with the OmsAgentForLinux_ extension. once the VM is created, the program starts creating the extension but each time ends up in an infinite polling. Of course, I can set a timeout but this does not solve the problem, also because by controlling from the Azure Portal the extension always has the state "unavailable"
Code Snippet:
def create_extension(self, rg_name, location, vm_name):
name = '{}-OMS'.format(vm_name)
client = self.compute_client.virtual_machine_extensions
ext_type = 'OmsAgentForLinux'
publisher = 'Microsoft.EnterpriseCloud.Monitoring'
ver = '1.7'
params = VirtualMachineExtension(location = location, publisher = publisher, virtual_machine_extension_type = ext_type, type_handler_version = ver, auto_upgrade_minor_version = False)
poller = client.create_or_update(rg_name, config.vm_name, name, params)
poller.wait()
return poller.result()
A screenshot of the extension from the Azure Portal

Hi @thommibens. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.
/unresolve
Hi @thommibens , Compute has released the latest version 24.0.0. Please try it with the latest version. Thank you !
Fyi: https://pypi.org/project/azure-mgmt-compute/24.0.0/
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!