I am attempting to configure the Log Analytics agent for Insights on my Azure VM running Windows. When I attempt to deploy the monitoring configuration, the DependencyAgentWindows VM extension fails to install. I have the same solution working on a similar VM and am stumped on what the issue is for the failing VM.
{"code":"DeploymentFailed","message":"At least one resource deployment> operation failed. Please list deployment operations for details.> Please see https://aka.ms/DeployOperations for usage details.","details":"code":"VMExtensionHandlerNonTransientError","message":"The handler for VM extension type 'Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentWindows' has reported terminal failure for VM extension 'DependencyAgentWindows' with error message: 'Install failed for plugin (name: Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentWindows, version 9.10.16.22650) with exception Command C:\Packages\Plugins\Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentWindows\9.10.16.22650\scripts\RunPs1.cmd of Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentWindows has exited with Exit code: 52'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionDependencyAgentWindowsTroubleshoot'"}]}
I have tried to deploying the Monitoring Configuration and installing the DepencyAgentWindows VM Extension through the Portal and through PowerShell. I am expecting the DepencyAgentWindows VM Extension to install properly and be able to enable Insights successfully.