英文:
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:-
And in the next tab I logged into my Azure DevOps account like below:-
Click on Start Free
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:-
To link your Azure tenant with Azure DevOps, Click on Switch Directory and then Switch to your Azure account directory like below:-
As By default the url is routed to Microsoft Account Directory like below:-
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:-
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:-
Selected my Azure Web app like below
My web app in Portal:-
YAML pipeline to deploy Web app :-
Another way is via Release pipeline.
Reference MS Document to create AzureDevOps organization.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论