Azure Autoscaling块无法找到证书

时间:2012-10-11 15:39:27

标签: azure enterprise-library autoscaling

我有以下情况:我的azure应用程序包含5个角色。其中一个角色托管企业库中的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'在商店名称'My'和   商店位置'LocalMachine'找不到。在   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Security.CertificateHelper.FindCertificate(STORENAME   certificateStoreName,StoreLocation certificateStoreLocation,String   certificateThumbprint,Boolean withPrivateKey,Boolean validOnly)at   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.CreateFactory(STORENAME   certificateStoreName,StoreLocation certificateStoreLocation,String   certificateThumbprint,Inspector inspector)at   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.CallOperation [TResult](Func键2 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](Func 2   call,StoreName certificateStoreName,StoreLocation   certificateStoreLocation,String certificateThumbprint,String   exceptionMessage,String& requestId)at   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClient.GetDeployment(字符串   hostedServiceDnsPrefix,String subscriptionId,DeploymentSlot   deploymentSlot,StoreName certificateStoreName,StoreLocation   certificateStoreLocation,String certificateThumbprint)at   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClientExtensions.GetDeployment(IServiceManagementClient   客户端,HostedService hostedService)at   Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.DataPointsCollection.RoleInstanceCountDataPointsCollector.Collect(的DateTimeOffset   collectionTime)

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

我不明白为什么它无法访问我的云服务。我需要对此证书做任何事吗?

非常感谢帮助!!

1 个答案:

答案 0 :(得分:2)

您是否实际上传了管理证书的pfx(私钥侧)?此错误表示无法找到计算机上安装的证书。

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