Blog Post
Public Preview: Auto agent upgrade for Azure Arc-enabled servers
What version of the agent is currently on the server? It has to be at least 1.48 for the script to work and set the value (reference above). I ran into an issue with the script running but not setting the desired value and found that it was due to the server being on a version of the agent that was lower than 1.48. If the script runs successful this is what you should see in the json properties of the Arc server.
"agentUpgrade": {
"enableAutomaticUpgrade": true,
"desiredVersion": "1.55"
},
The current Version is 1.53. For setup, I followed the Microsoft Learn article mentioned above. If I look up the values of the Server in Azure Powershell, I get the following:
"agentUpgrade": {
"enableAutomaticUpgrade": true
},
That is also the value set in the Microsoft Learn article. I mean, I don't want to set it to 1.55 because then it would not upgrade to the latest version in the future. Can "desiredVersion" also be set to "desiredVersion": "auto"?
- nd4everSep 18, 2025
Microsoft
It looks like your script ran successfully then as the important setting is the "enableAutomaticUpgrade": true is the critical setting. I just spot checked a bunch of my other servers and they are all set to the below as well. Not sure how/why that setting for desired version got set. I'll reach out internally to our product team and see if they might know how/why that got set and reply back here. FWIW I just ran script from referenced in article in a batch against all of my Arc connected servers in bulk so I am not sure how that one was set differently. But the important thing is the "enableAutomaticUpgrade":true is set.
"agentUpgrade": {
"enableAutomaticUpgrade": true
},
Out of curiosity I ran the below Azure Resource Graph query and it looks like I have about 3 more with the same hard coded setting for 1.55. Only consistency I have found thus far is at least 2 of the servers are running a Windows core OS.resources
| extend desiredVersion = tostring(properties.agentUpgrade.desiredVersion)
| where isnotempty(desiredVersion)
- Lennart_DESep 25, 2025Copper Contributor
Hello nd4ever​,
did you already get any replay back?
For troubleshooting I put following attributes in the Api-params.
"agentUpgrade": {
"enableAutomaticUpgrade": true,
"desiredVersion": "1.56"
},Now the error is that the downloadlink is empty.
Error Message:
"C:\Program Files\AzureConnectedMachineAgent\azcmagent_check_updates.ps1 : unable to get or reach automaticupgrade.downloadlink: "
Best Regards
- nd4everSep 25, 2025
Microsoft
Lennart_DE​ I did get one response but am awaiting confirmation of my understanding. It sounds like the platform populates the "desiredVersion" field as a flag for upgrade. So it sounds like we do not need to (and maybe should not) add the "desiredVersion" but that is the clarification I am waiting on. I'll poke them one more time to see if I can get an answer.
Aurnov_Chattopadhyay​ do you happen to know?