Azure Service Fabric资源部署失败退出代码-532462766

Met*_*ael 2 azure azure-service-fabric

通过Azure门户创建一个vanilla服务结构集群后,我在VM Scale Set上收到此错误.它使用了一系列不同的集群名称,大小和VM类型.

完整错误:

{
  "status": "Failed",
  "error": {
  "code": "ResourceDeploymentFailure",
  "message": "The resource operation completed with terminal provisioning state 'Failed'.",
  "details": [
      {
        "code": "VMExtensionHandlerNonTransientError",
        "message": "Handler 'Microsoft.Azure.ServiceFabric.ServiceFabricNode' has reported failure for VM Extension 'Test_ServiceFabricNode' with terminal error code '1009' and error message: 'Enable failed for plugin (name:   Microsoft.Azure.ServiceFabric.ServiceFabricNode, version 1.0.0.33) with exception Command C:\\Packages\\Plugins\\Microsoft.Azure.ServiceFabric.ServiceFabricNode\\1.0.0.33  \\ServiceFabricExtensionHandler.exe of   Microsoft.Azure.ServiceFabric.ServiceFabricNode has exited with Exit code: -532462766'"
      }
    ]
  }
}
Run Code Online (Sandbox Code Playgroud)

这是在我尝试将我的用户代码发布到群集之前,所以不确定是什么导致了这一点.使用大多数事物的默认设置.初始容量3(测试集群).青铜耐久性/可靠性

编辑:连接到远程桌面中的一个VM时看到此问题.

Application: ServiceFabricExtensionHandler.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Azure.ServiceFabric.Extension.Core.AgentException
   at Microsoft.Azure.ServiceFabric.Extension.Core.CertificateUtility.LoadClientCertificate(System.String, System.String)
   at Microsoft.Azure.ServiceFabric.Extension.Core.CertificateUtility.LoadCertificateWrapper(Microsoft.Azure.ServiceFabric.Extension.Core.Models.CertificateSettings)
   at Microsoft.Azure.ServiceFabric.Extension.Core.Models.HandlerSettings.AllowAccessToCerts()
   at Microsoft.Azure.ServiceFabric.Extension.Core.VMExtensionHandler.ValidateDeployment(Microsoft.Azure.ServiceFabric.Extension.Core.Models.HandlerSettings)
   at Microsoft.Azure.ServiceFabric.Extension.Core.VMExtensionHandler.InstallService()
   at Microsoft.Azure.ServiceFabric.Extension.Core.VMExtensionHandler.InstallServiceWithRetry()
   at Microsoft.Azure.ServiceFabric.Extension.Core.VMExtensionHandler.Enable()
   at Microsoft.Azure.ServiceFabric.Extension.Handler.Program.Main(System.String[])
Run Code Online (Sandbox Code Playgroud)

kwi*_*ill 5

问题是Service Fabric无法找到您配置的证书.这有几个常见的原因:

  1. 提供了错误的证书指纹.假设您使用的是KeyVault,请确保未使用KeyVault URL的ID部分作为证书指纹.
  2. 在cert指纹的开头有一个隐藏的unicode字符.如果从Windows证书查看器对话框中获取指纹,这种情况很常见,就像从对话框中复制/粘贴时,它会在开头插入隐藏字符.解决方法是首先复制到记事本(或任何其他ASCII编辑器).

如果RDP到其中一个VM,有两种方法可以解决这个问题:

  1. 检查位于C:\ WindowsAzure\Logs\WaAppAgent.logs的Azure来宾代理日志.您将查找与安装Microsoft.Azure.ServiceFabric.Extension相关的条目,然后查找"无法找到带有指纹的证书"xxxx"..."的内容.确保指纹符合您的预期,并且指纹不会以问号"?xxx"开头,表示隐藏的unicode字符.
  2. 打开Service Fabric Admin事件日志(eventvwr - >应用程序和服务日志 - > Microsoft-ServiceFabric).您应该看到与未能加载证书相关的错误条目.