[OMS扩展]无法将配置应用于Microsoft Monitoring Agent [英] [OMS Extension] Failed to apply configuration to Microsoft Monitoring Agent

查看:94
本文介绍了[OMS扩展]无法将配置应用于Microsoft Monitoring Agent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

通过ARM模板部署VM扩展"OMSExtension"时,开始收到以下错误消息:

Started receiving the following error message when deploying the VM extension 'OMSExtension' through an ARM template:

VMExtensionProvisioningError。 VM处理扩展"OMSExtension"时报告失败。错误消息:无法将配置应用于Microsoft Monitoring Agent。

VMExtensionProvisioningError. VM has reported a failure when processing extension 'OMSExtension'. Error message: Failed to apply configuration to Microsoft Monitoring Agent.

VM扩展的ARM模板定义如下所示:

The ARM template definition of the VM extension looks like this:

    {
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "name": "[concat(parameters('customerNameCounter'), 'sql1','/', parameters('OMSExtensionName'))]",
      "apiVersion": "[variables('apiVersion')]",
      "location": "[resourceGroup().location]",
      "tags": {
        "displayName": "sql_OMS"
      },
      "dependsOn": [
        "[concat('Microsoft.Compute/virtualMachines/', parameters('customerNameCounter'), 'sql1')]"
      ],
      "properties": {
        "publisher": "Microsoft.EnterpriseCloud.Monitoring",
        "type": "MicrosoftMonitoringAgent",
        "typeHandlerVersion": "1.0",
        "autoUpgradeMinorVersion": true,
        "settings": {
          "workspaceId": "[parameters('omsWorkspaceID')]"
        },
        "protectedSettings": {
          "workspaceKey": "[parameters('omsWorkspaceKey')]"
        }
      }
    },




三重验证OMS工作区ID和OMS工作区密钥是否正确。对于发生了什么的任何想法?


Triple-verified that the OMS Workspace ID and the OMS Workspace Key are correct. Any ideas of what is going on?

推荐答案

我建议你验证一下扩展定义在VM定义部分或部分外部声明。

I would suggest you verify if the Extension definition is declared within the VM definition section or outside the section.

参考:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/extensions-oms#template-demployment

----------------------------------------------- -------------------------------------------------- --------------


点击"标记为答案"在帮助您的帖子上,这对其他社区成员有益。

Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/extensions-oms#template-deployment
---------------------------------------------------------------------------------------------------------------
Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.


这篇关于[OMS扩展]无法将配置应用于Microsoft Monitoring Agent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆