How to add Microsoft.Azure.Diagnostics.iaasdiagnostics extension using azure portal

GVS 156 Reputation points
2020-08-20T06:15:30.447+00:00

Hi, Microsoft.Azure.Diagnostics.iaasdiagnostics extension status shows provisioning failed, I would like uninstall and add the extension back. could you please help me to know the way

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,946 Reputation points Microsoft Employee Moderator
    2020-08-20T08:16:12.547+00:00

    @AzureisMyCareer-5423 The Azure Diagnostics VM extension enables you to collect monitoring data, such as performance counters and event logs, from your Windows VM. You can granularly specify what data you want to collect and where you want the data to go, such as an Azure Storage account or an Azure Event Hub. You can also use this data to build charts in the Azure portal or create metric alerts.

    You can refer to this article for more information on installation part.

    As mentioned in this article

    For a Virtual Machine: C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Diagnostics.IaaSDiagnostics\<WADVersion>\WAD<WADVersion>

    Required attributes are:

    • path - The directory on the system to be used by Azure Diagnostics.
    • expandEnvironment - Controls whether environment variables are expanded in the path name.

    In order to remove the required extesnsion you can make use of below command as well:

    Remove-AzureRmVMDiagnosticsExtension -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM22" | Update-AzureRmVM

    You can refer to this article for more information.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.