因此,我设置了TFS连续部署,并且遇到了一种情况,即在与Azure通信时,我的构建版本编译正常但在部署阶段失败。我的日志看起来像TFSPreview.com和Azure证书在部署时效果不佳
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断开连接”,然后验证了在Azure的门户网站的“证书”部分证书。我确认使用指纹散列,相同的证书也在我本地计算机的证书存储区('我的'存储区)中。然后,我通过Azure门户重新链接了TFS。
但我仍然得到相同的错误。任何想法?
更新: 我也尝试了一些额外的步骤,没有什么似乎工作:(
- 删除整个云服务
- 创建一个新的云服务(同名)
- VS2012在生产和舞台上部署到云服务(因为我需要为前端使用和后端测试运行服务)
- 在门户的云服务“证书”部分(与我的本地副本匹配)中验证了Windows Azure工具证书。我知道这将不同于TFS和Azure之间的差异
- 去TFSPreview.com =>左上齿轮=>项目管理=>服务=>没有看到链接服务
- 去用户配置文件=>连接= > Azure门户中,将新建立的云服务链接回TFSPreview.com
- 在本地VS2012中,已断开连接的TFS('team'=' >'disconnect')
- 本地在VS2012中,注销TFS('team'=>'connect'=>'注销'在底部)
- 签名回TFS,连接到团队项目
- 做了一个微不足道的改变=>检查=>触发连续部署
=>同样的错误之前?
感谢
这没有帮助。我已经用我采取的额外步骤更新了我的问题。有任何想法吗? – DeepSpace101