Share via

RunCommands and Custom Script Extension failing across the subscription

Leonardo Santos 20 Reputation points Microsoft Employee
2026-02-12T11:02:07.49+00:00

Im having issues executing run commands across the subscription. They hang even in new Virtual Machines 90% of time similar to deploying Custom Script Extensions.

I've tried to run the same commands by deploying the same template in another subscription and they all worked immediately. Is there a limit or throttle in place that I need to remove?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

{count} votes

Answer accepted by question author
  1. Jilakara Hemalatha 10,365 Reputation points Microsoft External Staff Moderator
    2026-02-12T12:34:15.49+00:00

    Hi Leonardo Santos,

    Thank you for your patience while we worked on this request.

    Issue Summary: You reported that RunCommand, Custom Script Extension, and other VM extension–based operations were not executing and were remaining in a stuck or updating state across multiple VMs and VMSS instances within the affected subscription, while the same deployment functioned correctly in another subscription.

    Findings from Engineering Review: After analysis, this behavior was not attributed to a single platform-side failure. Instead, it was determined to be a combination of the following factors:

    RunCommand timeout scenarios where operations did not complete within the expected execution window.

    Resource constraints (memory pressure) on certain VMs, which can prevent extensions from starting or completing successfully and may lead to errors such as OutOfMemoryException.

    A concurrent execution condition on some VMSS instances (RunCommand triggered alongside other extension operations), which resulted in failures in a limited set of cases. This was identified and tracked internally.

    A few extension failures were categorized as transient/client-side execution issues (for example, file download or retry-related failures), which typically resolve after re-execution once system resources are stable.

    Current Status: As you confirmed, all operations are now working as expected, indicating that the issue has been mitigated.

    If issue is resolved. Could you please accept the answer and upvote it.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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