Microsoft.insights,Vmdiagnosticssettings uninstalled mistakenly

GVS 146 Reputation points
2020-12-25T16:57:15.747+00:00

Hi, I have uninstalled Microsoft.insights,Vmdiagnosticssettings Vm extensions mistakenly now how to install it back again

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

Accepted answer
  1. shiva patpi 13,146 Reputation points Microsoft Employee
    2020-12-25T23:47:55.063+00:00

    Hello @AzureisMyCareer-5423 ,
    There are 3 ways you can enable back that extension

    1) Using Azure Portal: (Easy way)
    -> Browse to the VM Blade
    -> Go to Diagnostics Settings Under Monitoring Section
    -> Select Diagnostics Storage Account (if exists or create a new storage account to store diagnostics data)
    -> Click on Enable Guest-Level Monitoring

    Below 2 methods needs some configuration files

    2) Using Azure CLI command
    az vm extension set \
    --resource-group myResourceGroup \
    --vm-name myVM \
    --name IaaSDiagnostics \
    --publisher Microsoft.Azure.Diagnostics \
    --version 1.9.0.0 --protected-settings protected-settings.json \
    --settings public-settings.json

    Please note to create protected-settings.json & public-settings.json files.

    Source: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/extensions-diagnostics

    3) Using ARM template
    Source: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-template

    If this helps , please make sure to "Accept Answer" so that it will help out the community out there.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful