【问题标题】:Azure Autoscaling block cannot find certificateAzure 自动缩放块找不到证书
【发布时间】:2012-10-12 00:08:52
【问题描述】:

我有以下情况:我的 azure 应用程序包含 5 个角色。其中一个角色托管来自 Enterprise Library 的 Autoscale 块。这个角色负责向上和向下扩展其他角色。

现在我按照教程将 Autoscale 设置添加到 app.config 并添加了 services.xml 和 rules.xml。

问题在于自动缩放记录器(有效!)一遍又一遍地输出此错误:

无法使用 DNS 检索托管服务的实例计数 前缀“myCloudApp”。 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClientException: 无法从 Windows Azure 检索服务配置 对于订阅 ID 中具有 DNS 前缀“myCloudApp”的托管服务 'xxxxxxxxxxxxxxxxxx' 和部署槽 '生产'。 ---> Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Security.CertificateException: 带有指纹的证书 商店名称“我的”中的“xxxxxxxxxxxxxxxxxxxxx”和 找不到存储位置“LocalMachine”。在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Security.CertificateHelper.FindCertificate(StoreName certificateStoreName, StoreLocation certificateStoreLocation, String certificateThumbprint, Boolean withPrivateKey, Boolean validOnly) 在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.CreateFactory(StoreName certificateStoreName, StoreLocation certificateStoreLocation, String certificateThumbprint,Inspector 检查员)在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.CallOperation[TResult](Func2 call, StoreName certificateStoreName, StoreLocation certificateStoreLocation, String certificateThumbprint, String exceptionMessage, String& requestId) --- End of inner exception stack trace --- at Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.CallOperation[TResult](Func2 调用,StoreName 证书StoreName,StoreLocation 证书存储位置,字符串证书指纹,字符串 exceptionMessage, String& requestId) 在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.GetDeployment(字符串 hostsServiceDnsPrefix, String subscriptionId, DeploymentSlot deploymentSlot, StoreName certificateStoreName, StoreLocation certificateStoreLocation, String certificateThumbprint) 在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClientExtensions.GetDeployment(IServiceManagementClient 客户端,HostedService 托管服务)在 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.DataPointsCollection.RoleInstanceCountDataPointsCollector.Collect(DateTimeOffset 收集时间)

我用 xxxxx 替换了实际的指纹和订阅 ID。

我不明白为什么它无法访问我的云服务。我需要对这个证书做些什么吗?

非常感谢您的帮助!

【问题讨论】:

    标签: azure enterprise-library autoscaling


    【解决方案1】:

    您是否真的上传了管理证书的 pfx(私钥端)?此错误表示找不到机器上安装的证书。

    http://msdn.microsoft.com/en-us/library/windowsazure/gg465712.aspx

    【讨论】:

    • 证书显示在 Azure 管理门户中。实际上我在那里添加了 5 个证书(虽然不知道它们都来自哪里)。我尝试了其中的每一个,但总是得到相同的错误
    • 请明确一点 - 管理证书上传(仅限发布密钥)和您上传到 VM 的证书之间存在差异。您是否在门户中列出了 5 个管理证书,或者您是否已将 5 个证书上传到 VM(完全不同的东西)?
    • 好吧,这就是问题所在。我一直在使用管理证书……现在至少这个问题已经解决了。然而,下一个问题出现了。新错误:无法为具有权限“management.core.windows.net”的 SSL/TLS 建立安全通道。你知道如何启用 SSL 吗?
    猜你喜欢
    • 1970-01-01
    • 2019-08-10
    • 2019-11-07
    • 2014-05-16
    • 2015-04-18
    • 2021-02-16
    • 2015-04-27
    • 2014-10-15
    • 1970-01-01
    相关资源
    最近更新 更多