-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Is there any way doing a "one-shot" vm creation without doing any polling? #1910
Comments
it's something we've been thinking about - a generalized approach for this nature of operations is needed an d is under investigation. Parking on @anuchandy . |
This should be addressed in new track2 lite SDK with new Poller, where customers can initiate the LRO, take(1) and unsubscribe, which does not make any more network calls. Assigning this to new owner @yaohaizh to update the issue when the work is done. |
Thanks, @anuchandy. |
part of this is beginCreate work @weidongxu-microsoft is working on |
Hi @stipx. 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 “ |
Hi @stipx, since you haven’t asked that we “ |
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.
* Attempt to purge all vaults, managed HSMs Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days. * Add timeout and more logging * Pass required -Resource * Fix log message * Ensure the $Resource is correctly captured Added comment to new code explaining why, since ScriptBlock.GetNewClosure() is not working as expected. * Add -ErrorAction to Receive-Job Worked without terminating when run locally, but failed on the first error in the AzDO agent. * Use $using:r instead of creating ScriptBlock More idiomatic for passing ScriptBlocks to jobs. * Resolve PR feedback * Change default DeleteAfterHours to 120 Resolves #1917 * Use the Az cmdlets built-in -AsJob Co-authored-by: Heath Stewart <heaths@microsoft.com>
I'm trying to use the
|
Sorry for the obscure message (we will improve it in next version). It usually means that certain operation in your VM configure code is required to be done after VM creation (to my memory, maybe VM extension?), hence the "post run dependent". But if via You can e.g. use If you think your use case does not (or should not) involve such "operation after VM created", would you show us your code? PS: we might have later response as we are going to have week long holiday here. |
@weidongxu-microsoft thank you for the response! I was kind of lost in debugging the issue and just posted here. Indeed I have a Custom Script Execution attached to the VM that I'm trying to create. In my case I was looking to an option to do a "one-shot" VM creation with a custom script that will bootstrap the VM. For context, I'm working on adding support for Azure VMs to Cirrus CI cirruslabs/cirrus-ci-docs#953. We already support Azure Container Instances which has handy
|
I am not sure about the exact requirement of "one-shot". If you just call For VM extension, from what I know it had to be done after VM creation.
|
Hi,
basically we want to achieve a task queue which only creates the machine and does not do the polling directly.
So our workflow is:
Also: Is it possible to just create the VM and directly attach a extension without waiting for it to be finally created.
My concern is: We have a microservice which does the azure provisioning and it is container based. So it might be redeployed several times. When the polling is done in one JVM it might get interrupted when the azure handling microservice gets killed. I mean there is a grace period until the JVM exits, but I dont want it to be 20 minutes or more.
Maybe someone has an idea how to achieve something like this with the java sdk.
The REST api (which is used here anyway) supports sending just one PUT http call to create a VM, but as far as I can see there is no way to do such "one-shot" action with the sdk.
Thanks
stipx
The text was updated successfully, but these errors were encountered: