couldn't restart service today.

Pat 0 Reputation points
2025-04-28T18:11:46.6466667+00:00

My azure service was unresponsive today, I attempted to stop the service using the azure portal . the service failed to successfully stop multiple times.

It eventually did work after a full day of being unresponsive, but I have no idea why it wouldn't work or why it suddenly did start to work. I cant see anything useful on the portal.
2 things worth noting about the service issue today.

-it hasn't been altered in months and worked fine throughout

-the service did have a high CPU before it became unresponsive but then flat lined whilst continuing to be unresponsive.

3 questions
what would be the reason a service would fail to stop?

would a command prompt to stop the service be more reliable than accessing the service on the azure portal and clicking the stop button?

Where could I find some useful information?


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,808 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Suwarna S Kale 2,906 Reputation points
    2025-04-28T19:53:39.5833333+00:00

    Hello Pat,

    Thank you for posting your question in the Microsoft Q&A forum. 

    When an Azure service becomes unresponsive and fails to stop via the portal, the root cause often lies in a combination of software, hardware, or platform-level issues. In your case, the service had been functioning normally for months before suddenly freezing, suggesting an underlying instability rather than a misconfiguration. The high CPU usage prior to the failure points to a potential process deadlock or resource exhaustion, which may have prevented the operating system from gracefully handling shutdown commands. Additionally, if the Azure host node encountered hardware issues or hypervisor-level delays, stop requests could have been queued or ignored until the platform resolved the underlying problem. 

    Is CLI More Reliable Than the Portal? - Yes, sometimes. The portal uses the same APIs as CLI/PowerShell, However, if the issue was platform-side (e.g., Azure backend delays), CLI wouldn’t necessarily help. but CLI offers: 

    • Retry logic (e.g., az vm stop --no-wait --resource-group MyRG --name MyVM). 
    • Better logging (errors appear directly in the terminal). 
    • Avoids browser-related timeouts. 

    To diagnose such issues in the future, administrators should consult Azure Activity Logs to review failed stop operations, check Resource Health for platform-related incidents, and access the Serial Console (for VMs) to inspect OS-level freezes. Enabling diagnostic logging for CPU, memory, and disk metrics can also help identify pre-failure patterns. Proactive monitoring, such as alerts for sustained high CPU usage, could prevent similar incidents by allowing earlier intervention. 

    If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.