Turn off Extension without uninstalling it

Israel, Sahar 21 Reputation points
2021-11-08T08:04:17.65+00:00

Hello,
This is General Question about Azure Monitor Agent

VM system/ Extension Name:

  • Windows VM - AzureMonitorWindowsAgent
  • Linux VM - AzureMonitorLinuxAgent

There is a way to turn off the Agent without uninstall the Extension?
i didn't find any doc or info about that..

On the linux machine i found 2 services related to the agent but i don't know if stopping them is the right way..

Thnaks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,321 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pradeep Kommaraju 2,551 Reputation points
    2021-11-09T03:50:24.193+00:00

    Hi @Israel, Sahar

    Thank you for reaching out to Microsoft Q & A Platform .

    Unfortunately , I don't think there is a way to disable the service ,
    If we try to tweak into it and disable the service from the VM -->This operation will actually start other kinds of VM restart timeouts/issues etc .

    Suggested approach is , If you don't need the service please go ahead and uninstall it .
    And if you want it at a later point just re install it using :

    Set-AzVMExtension -Name AMAWindows -ExtensionType AzureMonitorWindowsAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -VMName <virtual-machine-name> -Location <location> -TypeHandlerVersion 1.0

    Ref: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-install?tabs=ARMAgentPowerShell%2CPowerShellWindows%2CPowerShellWindowsArc%2CCLIWindows%2CCLIWindowsArc#azure-virtual-machines

    Hope this helps , And request you to accept the answer if it helps .

    Thanks & Regards,
    Pradeep

    0 comments No comments

0 additional answers

Sort by: Most helpful