azure - 在新的 Azure 门户中,我可以在哪里下载 vNext 的 *.publishsettings 文件?

标签 azure tfs azure-web-app-service vnext

对这个长问题表示歉意,但我认为一些背景在这里很重要。

我正在尝试在 TFS 中设置发布定义,它应该通过使用“Azure Web 应用程序部署”步骤支持 Azure 部署(参见图片)。

enter image description here

为此,我需要设置一个服务端点。但是,我在检索此处请求的管理证书时遇到了问题:

enter image description here

新门户 ( https://portal.azure.com ) 中似乎有多个位置可以下载 *.publishsettings 文件,例如此处:

enter image description here

问题 由于某种原因,所有这些下载都会返回一个具有以下格式的 *.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 从旧门户检索它,但在新门户中似乎没有这样的地方。是它不可用,还是我只是忽略了它?

提前致谢!

最佳答案

您好,Tybs,您没有使用可以使用的管理证书创建服务主体,是否有原因?在您的屏幕截图中,有一个有关如何使用服务主体的链接,正如 Guarav 指出的那样,这是连接 ARM 的方式。

https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authenticate-service-principal

关于azure - 在新的 Azure 门户中,我可以在哪里下载 vNext 的 *.publishsettings 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41741227/

相关文章:

azure - 部署到 Azure 网站时出现 Microsoft.VisualStudio.QualityTools.UTFResources 的 FileNotFoundException

visual-studio-2012 - 在 Visual Studio 2012 中连接到 TFS 源时出现异常

visual-studio - TFS 错误 TF53001 : The database operation was canceled by an administrator

sharepoint - 如何在 SharePoint Wiki 库中创建文件夹?

Azure 应用程序无法启动并收到 HTTP 500 错误

postgresql - Azure Function 创建了太多与 PostgreSQL 的连接

azure - 如何在 USQL 中定义多个输入文件模式?

azure - Azure 存储文件共享上已存在指定的共享

c# - 无法使用 SendGrid 触发有关 Blob 存储更改的电子邮件

Azure 应用服务部署槽 - 应用程序网关