简体   繁体   English

使用 Azure 上的 Swagger 文件将 API 部署到 APIM

[英]Deploy API to APIM using Swagger file on Azure Devops

I'm new to Devops and Azure Devops.我是 Devops 和 Azure Devops 的新手。

I need to create a pipeline that would be able to deploy external API's to one APIM using Swagger.我需要创建一个能够使用 Swagger 将外部 API 部署到一个 APIM 的管道。

Swagger is also new to me. Swagger 对我来说也是新的。 However, I learnt that I would need to have a repo with the swagger.yaml file.但是,我了解到我需要一个包含 swagger.yaml 文件的仓库。 However, I'm not sure how I can then create a build that can then be sent to Azure Portal.但是,我不确定如何创建一个可以发送到 Azure 门户的构建。

Is there a way to do this?有没有办法做到这一点? I apologize if this is a stupid question, but these concepts are all relatively new to me.如果这是一个愚蠢的问题,我深表歉意,但这些概念对我来说都是相对较新的。

You can add a special Task to accomplish this.您可以添加一个特殊任务来完成此操作。 I'd reccommend this one due its simplicity:我推荐这个,因为它很简单: 在此处输入图像描述

You need to configure a couple of things in there.你需要在那里配置一些东西。 Here's a full-detailed tutorial that I hope you'll find it useful: https://lurumad.github.io/continous-delivery-to-azure-api-management-using-azure-devops-pipelines这是一个完整详细的教程,希望您会发现它有用: https://lurumad.github.io/continous-delivery-to-azure-api-management-using-azure-devops-pipelines

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM