Cannot upgrade AzureMonitorWindowsAgent to 1.38.1.0 due to size of the extension

Scott Wilson 0 Reputation points
2025-09-29T19:25:38.43+00:00

I am upgrading the Azure Monitor Agent from 1.36 to1.38 and all of them seem to be stuck in the "Creating" state due to the agent being larger than 300MB unzipped.

This is a microsoft extension, I can't make it any smaller. How can I solve?

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
{count} votes

3 answers

Sort by: Most helpful
  1. Alex Burlachenko 18,310 Reputation points Volunteer Moderator
    2025-09-30T06:56:37.3433333+00:00

    hi Scott Wilson,

    the most effective solution is to clean up the temporary directory on your arc enabled server. the extension upgrade process uses the temp folder to download and extract the new agent files. if this folder is full of old files from previous operations, it runs out of space.

    log onto the windows server. open file explorer and navigate to C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent\. in this folder, you will likely find several subfolders with version numbers. you can safely delete the older version folders, like the one for version 1.36. this will free up the necessary space for the 1.38 upgrade to unzip. after cleaning up, try the upgrade operation again from the azure portal.

    if cleaning the log folder does not free up enough space, you can also clear the general windows temp folder. press windows key + r, type %temp%, and hit enter. you can delete all the files in this folder. windows might prevent some files from being deleted because they are in use, which is fine, just skip those.

    another thing to try is a manual workaround. you can try to uninstall the current agent extension completely and then install the latest version fresh. sometimes a clean install bypasses the upgrade space issue. you can do this from the azure arc blade in the portal by selecting your server, going to extensions, and removing the azure monitor agent. then, add it again.

    if you are still stuck, you need to contact azure support. this is a platform limitation that they are aware of, and they might have other internal tools or guidance for forcing the upgrade on resource constrained servers.

    this kind of disk space issue during an agent upgrade is a common challenge with any monitoring tool, not just azure. it is always a good practice to monitor the free space on the system drive of your servers.

    your first and best action is to log onto the server and clean out the old agent version folders in C:\WindowsAzure\Logs\Plugins\.... this will almost certainly free up the space needed for the new version to install.

    i hope the cleanup gets your agent upgraded smoothly.

    rgds,

    Alex


  2. さとう だいき 0 Reputation points
    2025-10-02T01:33:43.1633333+00:00

    3 solutions to fix this:

    1. Brutal cleanup:

    powershell

    # Run inside the VM
    

    This clears plugin cache (system will reload automatically)

    2. Expand temp disk:

    Azure portal → VM → Settings → Disks

    Increase temp disk from 128GB to 256GB (takes effect in 5 minutes)

    3. Change deployment strategy: Add this to your ARM template:

    json

    "protectedSettings":
    

    I solved the same issue for a client - found that cached files from old version 1.26 weren't cleaned, missing just 27MB disk space. Used solution 1 and worked instantly. Remember to scale back the temp disk after upgrade to save costs!


  3. Scott Wilson 0 Reputation points
    2025-10-08T14:08:19.5366667+00:00

    Everyone..thanks for the help. The problem ended up being the Azure Arc Agent for my onsite servers needed upgraded. I was under the impression that Azure Arc Agents self updated. I had to configure my WSUS server to download Azure Arc Updates and push to my servers. Now the AMA can be upgraded even though it is larger than 300MB

    0 comments No comments

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.