Microsoft.insights,Vmdiagnosticssettings uninstalled mistakenly

GVS 146 Reputation points

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

    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 --protected-settings protected-settings.json \
    --settings public-settings.json

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


    3) Using ARM 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