Skip to content

Commit cbcc54b

Browse files
Merge pull request #9622 from amsliu/v-liuamson-CI7213
AB#7213: slow-vm-start-extensions-troubleshooting.md
2 parents c269819 + 206eb5c commit cbcc54b

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

209 KB
Loading
76.1 KB
Loading
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Slow Azure Virtual Machine Start Operations Caused by Extensions in failed state
3+
description: Troubleshooting guide for slow Azure Virtual Machine Start operations that are caused by the extensions being in a failed state.
4+
ms.date: 09/02/2025
5+
ms.reviewer: v-liuamson; v-gsitser
6+
ms.service: azure-virtual-machines
7+
ms.collection: windows
8+
ms.custom: sap:Cannot start or stop my VM
9+
---
10+
# Slow Azure VM Start operations when extensions are "Failed"
11+
12+
## Overview
13+
14+
You might experience slow Microsoft Azure Virtual Machine (VM) **Start** or **Redeploy** operations when one or more of the VM extensions are in a **Failed** state. This article discusses possible causes of this issue and resolutions.
15+
16+
## Symptoms
17+
18+
Although the Azure VM guest OS is active and working, and the VM can connect successfully, the operation still appears to run in the Azure portal.
19+
20+
## Cause
21+
22+
VM extensions are software components that run inside the VM to enable configuration management, security, monitoring, and other features. VM extensions have a 90-minute provisioning timeout. They must complete their installation or update within that time limit. If an extension doesn't provision within the timeout period, it's marked as failed. The extension isn't retried until the next VM operation that triggers it, such as **Start** or **Redeploy**.
23+
24+
If a VM has one or more extensions in a **Failed** state, delays can occur in other VM operations, such as **Start** or **Redeploy**. This issue occurs because the Azure platform tries to provision the failed extensions again before it completes the operation. Therefore, the VMs show a **Starting** status for an extended period.
25+
26+
## More information
27+
28+
To mitigate this issue, follow these steps:
29+
30+
1. To determine the root cause of the failure, review the extension status and logs for the VM.
31+
32+
To check the status of the extensions that are installed on the VM, go to the VM blade, and then select the **extensions + applications** option under
33+
**Settings** in the left pane. If the status isn't **Provisioning Succeeded**, the extension might have to be removed or investigated further.
34+
35+
:::image type="content" source="media/slow-vm-start-extensions-troubleshooting/extensions-applications-status.png" alt-text="Screenshot of the portal showing the extensions and applications statuses. Status is highlighted.":::
36+
37+
- Logs for the extensions can be found within the Guest OS of the VM. For more information, see the [References section](#references).
38+
39+
1. Check the status of the VM "Guest Agent" that's responsible for provisioning the extensions. If the "Guest Agent" isn't in a ready state, a review might be required. For more guidance, refer to the documents that are mentioned in the [References section](#references).
40+
41+
:::image type="content" source="media/slow-vm-start-extensions-troubleshooting/agent-status-version.png" alt-text="Screenshot of the portal showing the VM overview. Agent status and Agent version are highlighted.":::
42+
43+
1. Resolve the extension failure by either fixing the configuration or uninstalling the extension. You can use the Azure portal, PowerShell, CLI, or REST API to update or remove the extension. If the issue is related to the extension functionality or compatibility, you might have to contact the extension publisher for support.
44+
45+
1. Stop and then restart the VM to verify that the extension provisioning succeeds and the VM Start operation finishes faster. You can use the Azure portal, PowerShell, CLI, or REST API to do these operations.
46+
47+
## References
48+
49+
For more guidance to troubleshoot the Azure VM Guest Agent and extension issues, see:
50+
51+
- [Troubleshooting Azure Windows VM extension failures](/azure/virtual-machines/extensions/troubleshoot)
52+
- [Troubleshoot Azure Windows VM Agent issues](windows-azure-guest-agent.md)
53+
- [Troubleshoot the Azure Linux Agent](../linux/linux-azure-guest-agent.md)

support/azure/virtual-machines/windows/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ items:
381381
href: restart-resize-error-troubleshooting.md
382382
- name: Restarting, shutting down, or stopping services
383383
href: boot-error-troubleshoot-windows.md
384+
- name: Slow VM start caused by extensions troubleshooting
385+
href: slow-vm-start-extensions-troubleshooting.md
384386

385387
- name: VM restarts or stops unexpectedly
386388
items:

0 commit comments

Comments
 (0)