为这个冗长的问题道歉,但我认为这里的一些背景很重要。
我正在尝试在 TFS 中设置发布定义,它应该通过使用“Azure Web App Deployment”步骤来支持 Azure 部署(见图)。
为此,我需要设置一个服务端点。但是,我在检索此处请求的管理证书时遇到了问题:
新门户 ( https://portal.azure.com )中似乎有多个地方可以下载 *.publishsettings 文件,例如这里:
问题 出于某种原因,所有这些下载都返回一个 *.publishsettings 文件,格式如下:
<publishData>
<publishProfile profileName="XXX"
publishMethod="XXX"
publishUrl="XXX"
msdeploySite="XXX"
userName="XXX"
userPWD="XXX"
destinationAppUrl="XXX"
SQLServerDBConnectionString=""
mySQLDBConnectionString=""
hostingProviderForumLink=""
controlPanelLink="http://windows.azure.com"
webSystem="WebSites">
<databases />
</publishProfile>
<publishProfile profileName="XXX"
publishMethod="XXX"
publishUrl="XXX"
ftpPassiveMode="XXX"
userName="XXX"
userPWD="XXX"
destinationAppUrl="XXX"
SQLServerDBConnectionString=""
mySQLDBConnectionString=""
hostingProviderForumLink=""
controlPanelLink="http://windows.azure.com"
webSystem="WebSites">
<databases />
</publishProfile>
</publishData>
我需要的格式不同。我需要一个这种格式的文件:
<?xml version="1.0" encoding="utf-8"?>
<PublishData>
<PublishProfile
SchemaVersion="2.0"
PublishMethod="AzureServiceManagementAPI">
<Subscription
ServiceManagementUrl="XXX"
Id="XXX"
Name="XXX"
ManagementCertificate="XXX" />
</PublishProfile>
</PublishData>
从此文件中,我可以检索 ManagementCertificate 值。我已经可以使用https://manage.windowsazure.com/PublishSettings/index?Client=&SchemaVersion=&DisplayTenantSelector=true从旧门户中检索它,但在新门户中似乎没有这个位置。它不可用,还是我只是忽略了它?
提前致谢!