Skip to content

Conversation

@arg5739
Copy link
Contributor

@arg5739 arg5739 commented Dec 10, 2025

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.
image

Related PRs

• [MOC] microsoft/moc#406
• [WSSD-SDK] https://github.com/microsoft/wssd-sdk-for-go/pull/343
• [MOC-SDK] #365
• [MOCCLI] https://github.com/microsoft/moccli/pull/353
• [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:

  • Provide new power option StopGraceful
  • Implement StopGraceful shutdown
    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
  • Make previous "Stop" calls "StopGraceful" with skipShutdown=true to force immediate shutdown. Maintaining current Stop behaviour.

Testing

Validate current Stop functionality (making sure new changes wont break current user experience.)
image

Validate Graceful shutdown option

image

@arg5739
Copy link
Contributor Author

arg5739 commented Dec 10, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arg5739
Copy link
Contributor Author

arg5739 commented Dec 18, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arg5739
Copy link
Contributor Author

arg5739 commented Dec 19, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arg5739
Copy link
Contributor Author

arg5739 commented Dec 19, 2025

@microsoft-github-policy-service rerun

@arg5739
Copy link
Contributor Author

arg5739 commented Dec 19, 2025

@microsoft-github-policy-service agree company="Microsoft"

@arg5739 arg5739 merged commit 7a3f170 into main Dec 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants