CloudVE / CloudVE/cloudbridge

Blocking on Azure VM Creation

Open
#262 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
117
Forks
51
Avg merge
9h 17m
Merged PRs (30d)
5

Description

I'm trying to launch VMs across AWS, GCP and Azure and have noted the following:

- the AWS VM create function returns within a second and then I can wait on the VM by checking its state (as in the startup example) which takes ~15s.
- the Azure VM creation call takes ~1m and then "waiting" on the VM state aftewards takes no time (because the create call essential blocks until the VM is ready).
- I don't recall the GCP behavior but the VM startup time is closer to AWS than azure

I'm using cloudbridge inside an asyncio application so a ~1m+ blocking call is problematic for me. Looking at the examples on [Azure's website](https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-example-virtual-machines?tabs=cmd#3-write-code-to-provision-a-virtual-machine) I see the Azure API returns some kind of poller and the `create_vm` call in `azure_client` blocks on the `.result()`.

Is it possible to not block here but simply return a VM identifier? I have not been able to find enough documentation on the underlying API to even know if this is an option but I wanted to ask.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.