-
Notifications
You must be signed in to change notification settings - Fork 46
[moc-sdk-for-go] Implement Graceful Shutdown Option for VM Stop Operation #363
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
base: main
Are you sure you want to change the base?
Conversation
|
@arg5739 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Problem Statement
When users select "Stop" for a virtual machine (VM) through the portal or CLI, the system currently performs an immediate "Turn Off" operation rather than executing a graceful shutdown. This behavior does not align with user expectations and has become a significant pain point, as customers anticipate a proper shutdown sequence when choosing to stop their VM.

Related PRs
• [MOC] microsoft/moc#406
• [WSSD-SDK] https://github.com/microsoft/wssd-sdk-for-go/pull/343
• [MOC-SDK] #362
• [MOCCLI] https://github.com/microsoft/moccli/pull/352
• [CloudAgent] https://github.com/microsoft/wssdcloudagent/pull/1620
• [NodeAgent] https://github.com/microsoft/wssdagent/pull/1454
WorkItem
https://msazure.visualstudio.com/One/_workitems/edit/30775126
Summary of changes
These PRs accomplish the following:
The parameter to request non-graceful VM shutdown. True value indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified
Testing
Validate current Stop functionality (making sure new changes wont break current user experience.)

Validate Graceful shutdown option