通过ARM模板azure将IaaS诊断扩展添加到VMS

通过ARM模板azure将IaaS诊断扩展添加到VMS,azure,virtual-machine,azure-vm-scale-set,Azure,Virtual Machine,Azure Vm Scale Set,我试图将一些默认诊断添加到通过ARM模板部署的VMS中 每当我通过Azure门户部署集群时,我都能够查看虚拟机并在虚拟机中看到此扩展 名称:VMDiagnosticsVmExt_VMNodeType1名称,类型:Microsoft.Azure.Diagnostics.IaaSDiagnostics,版本:1.5 我现在正试图通过arm模板部署VMS。我已从如上所示的集群复制了导出的模板,但是每当我尝试部署此VMS时,都会引发以下错误: { "status": "F

我试图将一些默认诊断添加到通过ARM模板部署的VMS中

每当我通过Azure门户部署集群时,我都能够查看虚拟机并在虚拟机中看到此扩展

名称:VMDiagnosticsVmExt_VMNodeType1名称,类型:Microsoft.Azure.Diagnostics.IaaSDiagnostics,版本:1.5

我现在正试图通过arm模板部署VMS。我已从如上所示的集群复制了导出的模板,但是每当我尝试部署此VMS时,都会引发以下错误:

{
"status": "Failed",
"error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
        {
            "code": "VMExtensionProvisioningError",
            "message": "VM has reported a failure when processing extension 'VMDiagnosticsVmExt_vmNodeType1Name'. Error message: \"Failed to read configuration. See the troubleshooting guide to diagnose the problem: https://go.microsoft.com/fwlink/?linkid=852271\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot "
        }
    ]
}
}

用于延伸的臂模板如下所示:

                            {
                            "name": "VMDiagnosticsVmExt_vmNodeType1Name",
                            "properties": {
                                "autoUpgradeMinorVersion": true,
                                "provisionAfterExtensions": [],
                                "publisher": "Microsoft.Azure.Diagnostics",
                                "type": "IaaSDiagnostics",
                                "typeHandlerVersion": "1.5",
                                "settings": {
                                    "WadCfg": {
                                        "DiagnosticMonitorConfiguration": {
                                            "overallQuotaInMB": "50000",
                                            "EtwProviders": {
                                                "EtwEventSourceProviderConfiguration": [
                                                    {
                                                        "provider": "Microsoft-ServiceFabric-Actors",
                                                        "scheduledTransferKeywordFilter": "1",
                                                        "scheduledTransferPeriod": "PT5M",
                                                        "DefaultEvents": {
                                                            "eventDestination": "ServiceFabricReliableActorEventTable"
                                                        }
                                                    },
                                                    {
                                                        "provider": "Microsoft-ServiceFabric-Services",
                                                        "scheduledTransferPeriod": "PT5M",
                                                        "DefaultEvents": {
                                                            "eventDestination": "ServiceFabricReliableServiceEventTable"
                                                        }
                                                    }
                                                ],
                                                "EtwManifestProviderConfiguration": [
                                                    {
                                                        "provider": "xxxxx-xxxx-xxxx-xxx-xxxxx",
                                                        "scheduledTransferLogLevelFilter": "Information",
                                                        "scheduledTransferKeywordFilter": "4611686018427387904",
                                                        "scheduledTransferPeriod": "PT5M",
                                                        "DefaultEvents": {
                                                            "eventDestination": "ServiceFabricSystemEventTable"
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "StorageAccount": "[variables('sfdgstorageaccountname')]"
                                }
                            }
                        },

有人能诊断出发生此错误的原因吗?错误消息中的一个链接已断开,另一个链接似乎没有提供任何有用的信息。

据我所知,该扩展基于Azure存储。请尝试添加存储帐户设置,如
“protectedSettings”:{“storageAccountName”:“[parameters('existingdiagnosticsStorageAccountName')]”、“storageAccountKey”:“[listkeys(variables('accountid'),'2015-05-01-preview')。key1],“storageAccountEndPoint”:https://core.windows.net"}
在模板中。有关详细信息,请参阅