can not enable automatic ugprade for AMA

Bombbe 1,621 Reputation points
2022-04-21T13:39:54.85+00:00

Hi,
I have installed AMA to few arc servers but seems that they do not get automatically upgrades because I have not enabled it. Newest version seems to be 1.3.0.0
195165-image.png

My vms

195140-image.png

I then tried to enable automatic upgrade (so they would upgrade now and later automatically) with powershell and this following command but it seems not to work. I checked the docs for the Update-AzConnectedMachineExtension command and -EnableAutomaticUpgrade should work. Here are link to doc: update-azconnectedmachineextension. This points also that my syntax should be fine: azure-monitor-agent-manage

Update-AzConnectedMachineExtension -MachineName MyVM01 -Name AzureMonitorWindowsAgent -ResourceGroupName  MyVM-RG -EnableAutomaticUpgrade  

195197-image.png

195158-image.png

Running also latest PS and AZ version. Any clue what am I missing here now? FYI: pretty much same command for in CLI (tested and confirmed).

195166-image.png

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,137 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
390 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Willis 236 Reputation points Microsoft Employee
    2022-04-25T21:44:49.143+00:00

    Hey @Bombbe , Ryan from the Arc-enabled servers team here. Can you run the following command to upgrade the Az.ConnectedMachine module on your server? I suspect it is out of date if it can't find the EnableAutomaticUpgrade parameter. It should be version 0.3.0.

    Update-Module Az.ConnectedMachine  
    

    Let me know if you have any success after upgrading the PS module.


1 additional answer

Sort by: Most helpful
  1. Andrew Blumhardt 9,856 Reputation points Microsoft Employee
    2022-04-21T16:09:55.37+00:00

    Asking an internal SME for more information. This is still in preview, possible bug.

    0 comments No comments