azure - 将我的 Azure 应用服务链接到 Azure DevOps 中的 API 存储库和管道以进行部署

标签 azure azure-devops azure-web-app-service azure-deployment

我正在尝试将我的应用服务链接到 Azure DevOps 中存储库的管道,但每当我单击开始链接时,它都会将我引导到一个门户,在该门户中尝试打造品牌新的组织而不是使用我当前的组织。我不确定我做错了什么?也许我忘记将一些东西链接在一起?

最佳答案

我使用与我的 Azure DevOps 帐户相同的帐户在门户中登录了我的 Azure 帐户,请参阅以下内容:-

enter image description here

在下一个选项卡中,我登录到我的 Azure DevOps 帐户,如下所示:-

点击“开始免费”

enter image description here

我登录了 Azure DevOps 帐户,因为我已经使用相同的凭据登录了我的 Azure 帐户,但它没有要求我登录 请参阅以下内容:-

enter image description here

enter image description here

要将您的 Azure 租户与 Azure DevOps 链接,请单击“切换目录”,然后切换到您的 Azure 帐户目录,如下所示:-

enter image description here

默认情况下,URL 将路由到 Microsoft 帐户目录,如下所示:-

enter image description here

现在,您可以通过两种方式将您的 Azure 应用服务与 Azure DevOps 链接或运行,将 Web 应用程序的源代码导入到 Azure Repos 中,如下所示:-

enter image description here

现在,单击 Pipeline > New Pipeline > 选择您的 Web 应用程序源代码存储库 > 然后从头开始创建新的 YAML 管道或选择现有的 YAML 管道,如下所示:-

enter image description here

选择了我的 Azure Web 应用程序,如下所示

enter image description here

我在 Portal 中的网络应用程序:-

enter image description here

用于部署 Web 应用程序的 YAML 管道:-

enter image description here

另一种方法是通过发布管道。

enter image description here

引用MS Document创建 AzureDevOps 组织。

关于azure - 将我的 Azure 应用服务链接到 Azure DevOps 中的 API 存储库和管道以进行部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76325845/

相关文章:

azure - 如何使用 SAML 将 Okta 作为 IDP 与 Azure AD B2C 集成?

linux - k8s 检查 pod securityContext 定义

Opshub 从 TFS 迁移到 VSTS 不映射用户

azure - 来自 SIG 的 Microsoft Azure 托管应用程序 ARM 模板

azure - 如何从 SSMS 检查数据同步组?

azure - 无法在 ADO 中更新 Sprint Board 内的卡设置

azure - 无法启动Azure模拟器 "Operation not supported. Unknown error: 0x80070057."

git - 如何使用 Azure DevOps 推送到浅克隆

python - git Push azure master azure fatal : Not a git repository (or any of the parent directories): . git

azure - Azure SQL 数据库 v12 : the database is always slow on the first insert or delete execution, 出现奇怪问题,但 V11 则不然