Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_or_update_async option for creating VM #255

Closed
gVien opened this issue Jan 14, 2017 · 7 comments
Closed

create_or_update_async option for creating VM #255

gVien opened this issue Jan 14, 2017 · 7 comments

Comments

@gVien
Copy link

gVien commented Jan 14, 2017

I looked over the source code for creating the VM. It looks like the method create_or_update was used instead of create_or_update_async. I think if this method (create_virtual_machine) is used on an application, it would create a delay after hitting the submit button (correct me if I'm wrong) before the web application can be redirected to another page.

If there is an option to create_or_update_async, it would create the VM and then allow us to use the promise feature detailed at azure computer sdk doc and also allow us to handle any errors. Is there an option to create or update the VM asynchronously (e.g. create_virtual_machine_async)? if not, can that feature be added in the next release?

@samawia-moin-confiz
Copy link
Contributor

Hi,

Currently, there is no option to create or update the VM asynchronously. We will respond you soon about adding this feature in the gem.

Thank You

@gVien
Copy link
Author

gVien commented Feb 10, 2017

The Azure Compute SDK doc mentions create_or_update_async so can that be used instead of the create_or_update method? I haven't fully tested that method so I wouldn't know what behavior it exhibits.

https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_compute

@gVien
Copy link
Author

gVien commented Feb 14, 2017

@samawia-moin-confiz, I'm curious if there are any updates on this question. I thought you meant Azure SDK doesn't have an option to create or update the VM asynchronously but you meant Fog Azure RM gem. If the feature isn't available, I guess I can use a mixture of Fog (for resource group, storage, etc creation) and Azure SDK (to take advantage of the asynchronous VM methods).

@abbas-sheikh-confiz
Copy link
Contributor

@gVien we are evaluating this issue and will respond soon.

@shaffan-chaudhry-confiz
Copy link
Member

Resolved in this PR: #279

@gVien
Copy link
Author

gVien commented Feb 24, 2017

Thanks for the quick turn around! I'm curious if this will bump up the version to 0.2.8? reinstalling with gem install fog-azure-rm doesn't pull the latest changes, so it hasn't been published to rubygem.org? I was cloning this repo into my gem folder.

@zeeshan-arshad-confiz
Copy link
Contributor

@gVien we have not published the new gem yet. We will publish the new gem in next couple of days with some more bug fixes.
Regarding gem version, it will not be 0.2.8 as we have some major changes as well.
We will let you know after publishing the gem. Stay tuned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants