TFS preview.com,并在部署Azure的证书,发挥得不好 [英] TFSPreview.com and Azure certificates not playing well at deployment

查看:179
本文介绍了TFS preview.com,并在部署Azure的证书,发挥得不好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我设置TFS持续部署,我运行到哪里天青与通信时,我的构建编译只是正常的,但未能在部署阶段的情况。我的日志看起来像

So I setup TFS continuous deployment and I'm running into a situation where my build compiles just alright but fails in the deployment phase when communicating with Azure. My log looks like

Get Default Azure Cloud Service Publish Profile
Set Project to build CSPack
Run MSBuild for Project
Run Visual Studio Test Runner for Test Sources
Publish Output
Deploy application to Azure
8/23/2012 7:20:04 AM - Preparing deployment for rcfoapi with SubscriptionID: mysubscriptionidhere.veryverylong.andkeepsgoing...
8/23/2012 7:20:04 AM - Connecting...
 An attempted http request against URI https://management.core.windows.net:8443/mysubscriptionidhere.veryverylong.andkeepsgoing
 /services/hostedservices/myrolenamehere?embed-detail=true 
 returned an error: (403) Forbidden.
Additional Exception Information:
Error Code: AuthenticationFailed
Message: The server failed to authenticate the request. Verify that the 
         certificate is valid and is associated with this subscription.
         Typically, a response of (403) Forbidden from a Windows Azure 
         Management API means that the X509 certificate used to 
         authenticate the call is not valid. The certificate may have 
         been revoked or expired. Reconnect your Windows Azure 
         subscription to your Team Foundation account.

我试着在Azure门户链接从TFS断开连接,然后验证在天青门户的证书部分证书。我证实使用指纹哈希相同的证书也是在我的本地计算机证书存储区('我'存储)。然后我重新链接回TFS通过Azure的门户。

I tried the 'Disconnect from TFS' link in the Azure portal, then verified that the certificate in the 'certificates' section of the Azure portal. I confirmed using the fingerprint hash that the same certificate is also in my local computers' certificate store ('my' store). Then I relinked TFS back via the Azure portal.

但我仍然得到同样的错误。任何想法?

But I still get the same error. Any idea?

更新的:
我也尝试了一些额外的步骤,没有什么似乎工作:(

Update: I also tried a few additional steps, nothing seems to be working :(


  1. 删除整个云服务

  2. 创建一个新的云服务(同名)

  3. VS2012部署到云服务的生产和分期(因为我需要为使用前,后检测服务运营)

  4. 验证门户网站的云服务证书部分在Windows Azure工具证书(我的本地副本匹配)。我明白这将是TFS和Azure的
  5. 之间的一个不同
  6. 赴TFS preview.com =>左上角齿轮=>项目管理=>服务=>看到任何链接服务

  7. 又到用户配置文件=>连接=> OAuth的上市(管理-PROD CLOUDAPP通过Windows Azure的)=>连接删除它

  8. 在Azure的门户网站,链接在新设置的云服务回TFS preview.com

  9. 在本地VS2012,断开TFS('团队'=>'脱节')

  10. 在本地VS2012,登录TFS出('团队'=>'连接'=>'退出'在底部)

  11. 签名回TFS,连接到团队项目

  12. 做了一个微不足道的改变=>检查=>触发连续部署

  1. Deleted the entire cloud service
  2. Created a new cloud service (with same name)
  3. VS2012 deployed to the cloud service on both production and staging (because I need to service operational for front use and back testing)
  4. Verified the Windows Azure Tools certificate in the portal's cloud service 'certificate' section (which matches my local copy). I understand this will be different from the one between TFS and Azure
  5. Went to TFSPreview.com => top left gear => project administration => services => no linked services seen
  6. Went to user profiles => connections => OAuth connection listed (MANAGE-PROD CLOUDAPP by Windows Azure) => removed it
  7. Within the Azure portal, linked the newly setup cloud service back to TFSPreview.com
  8. Locally in VS2012, disconnected TFS ('team' => 'disconnect')
  9. Locally in VS2012, logged out of TFS ('team' => 'connect' => 'sign out' at the bottom)
  10. Signed back into TFS, connected to the team project
  11. Made a trivial change => check in => triggered continuous deploy

=>同样的错误之前:

=> Same error as before :?

感谢

推荐答案

如果您的证书需要在Azure的控制面板被更新会发生这种情况。

This can happen if your certificate needs to be renewed in the Azure control panel.

如果你没有首先部署暂存或生产环境也可能发生。我不完全知道为什么,因为它部署一个新的,但这个固定的问题,我刚才。

It can also happen if you don't have a staging or production environment deployed first. I'm not entirely sure why since it deploys a new one, but this fixed the issue for me just now.

这篇关于TFS preview.com,并在部署Azure的证书,发挥得不好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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