连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

huangapple go评论56阅读模式
英文:

Linking my Azure App Service to my API repository & pipeline in Azure DevOps for deployment

问题

我正在尝试将我的应用服务与Azure DevOps存储库的管道进行关联,但每当我点击“开始”链接时,它会将我重定向到一个门户,尝试创建一个全新的组织,而不是使用我的当前组织。我不确定我做错了什么?也许我忘记了将一些东西关联在一起?

英文:

I'm trying to link my App Service to a pipeline of my repository in Azure DevOps but whenever I click the Get started link, it directs me to a portal where it's trying to make a brand new organization instead of using my current organization. I'm not sure what I'm doing wrong? Perhaps I forgot to link some stuff together?

答案1

得分: 1

我使用与我的Azure DevOps帐户相同的帐户登录了Azure门户,如下所示:

在下一个选项卡中,我使用以下方式登录了我的Azure DevOps帐户:

点击“开始免费”

我成功登录了Azure DevOps帐户,因为我已经使用相同的凭据登录了Azure帐户,所以它没有要求我登录,如下所示:

要将Azure租户与Azure DevOps关联,点击“切换目录”,然后切换到您的Azure帐户目录,如下所示:

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

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

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

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

我的门户中的Web应用程序:

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

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

参考MS文档创建Azure DevOps组织。

英文:

I logged into my Azure account in Portal with the same account as my Azure DevOps account, Refer below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

And in the next tab I logged into my Azure DevOps account like below:-

Click on Start Free

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

I got logged into Azure DevOps account as I have already logged into my Azure account with same credentials it did not ask me to Sign in Refer below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

To link your Azure tenant with Azure DevOps, Click on Switch Directory and then Switch to your Azure account directory like below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

As By default the url is routed to Microsoft Account Directory like below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

Now, You can link or run your Azure App Service with Azure DevOps in two ways, Import the Source code of your Web app in Azure Repos like below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

Now, click on Pipeline > New Pipeline > Select your Web app source code repository > And then either create a new YAML pipeline from scratch or select existing YAML pipeline like below:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

Selected my Azure Web app like below

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

My web app in Portal:-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

YAML pipeline to deploy Web app :-

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

Another way is via Release pipeline.

连接我的Azure应用服务到我的Azure DevOps中的API存储库和管道以进行部署。

Reference MS Document to create AzureDevOps organization.

huangapple
  • 本文由 发表于 2023年5月25日 00:55:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76325845.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定