azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

virtual_machine_extensions.create_or_update infinite polling

Open thommibens opened this issue 7 years ago • 5 comments

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()

thommibens avatar Oct 29 '19 14:10 thommibens

A screenshot of the extension from the Azure Portal AzureSdkIssueImage

thommibens avatar Oct 29 '19 14:10 thommibens

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.

ghost avatar Dec 15 '21 08:12 ghost

/unresolve

RAY-316 avatar Dec 21 '21 08:12 RAY-316

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/

BigCat20196 avatar Jan 20 '22 02:01 BigCat20196

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!

ghost avatar Jan 31 '22 08:01 ghost