Blog Post
Public Preview: Auto agent upgrade for Azure Arc-enabled servers
I have been testing this feature for my clients. After waiting for a few weeks now, for an automatic update, I tried to trigger the underlying scheduled task script manually.
The Script stops after a few seconds because there is no value set in automaticupgrade.desiredversion. If I look up the value manually, it is not set.
How does this value get set? What triggers an update of that value?
Would appreciate if somebody in the tech community would give me some guidance.
- nd4everSep 18, 2025
Microsoft
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"
},- Lennart_DESep 18, 2025Copper Contributor
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)