Skip to content

Conversation

@jocardeMSFT
Copy link
Contributor

@jocardeMSFT jocardeMSFT commented Nov 13, 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] #406
• [WSSD-SDK] https://github.com/microsoft/wssd-sdk-for-go/pull/343
• [MOC-SDK] microsoft/moc-sdk-for-go#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 arg5739 changed the title added vm stop_Graceful operation type [moc] Implement Graceful Shutdown Option for VM Stop Operation Nov 13, 2025
@arg5739
Copy link
Contributor

arg5739 commented Nov 13, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arg5739
Copy link
Contributor

arg5739 commented Nov 19, 2025

All the gates for all PR has passed except
MOC-Sdk-For-Go is failing for "The signing feature is not available for your organization yet."

arg5739
arg5739 previously approved these changes Dec 11, 2025
@arg5739
Copy link
Contributor

arg5739 commented Dec 12, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arg5739 arg5739 merged commit b247b35 into microsoft:main Dec 12, 2025
7 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.

3 participants