通过使用Azure DevOps管道创建HTTP API

发布于 2025-02-08 04:12:26 字数 1303 浏览 2 评论 0 原文

我正在尝试使用Azure Pipelines创建HTTP API,

我的烧瓶API已部署到通过Privat LB暴露的AKS POD 在同一VNET中使用API​​管理,

这就是我要实现的目标:

”

oing oing它可以手动使用POD私有IP Adresse:

注意:IM使用http api not openapi not Openapi

“在此处输入图像描述”

  • 我从Azure DevOps Pipeline配置API时

当 “ https://i.sstatic.net/61d4s.png” alt =“在此处输入图像说明”>

  • API管理 - 创建/更新产品:成功
  • API管理 - 创建/更新API:失败

“在此处输入图像描述”

我知道这是管道中的OpenAPI配置

I am trying to Create An Http Api Using Azure Pipelines

I have a Flask Api that is deployed to a Aks Pod exposed through a privat LB
with api management in the same vnet

Here Is What I'm Trying to Achieve :

Aks With APIM

oing it it manually Works Fine with the pod private ip adresse :

Note : Im using http api not openAPI

enter image description here

enter image description here

  • when i configure the api from Azure Devops Pipeline

enter image description here

  • API Management - Create/Update Product : succeed
  • API Management - Create/Update API : Failed

enter image description here

enter image description here

i understand that it's an openapi configuration in the pipelines but i couldn't find any pipeline to cnofigure http api in devops

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

メ斷腸人バ 2025-02-15 04:12:26

我们通过使用Terraform文件

此过程

我们将Terraform文件调整为管道:

我们首先创建了API,然后在管道中可以看到的操作:

然后在舞台上添加init,计划和应用任务:

“在此处输入图像描述”

就像我们创建并配置了API一样

We Solved this problem by using Terraform files

Following this Procedure

We Adapted The Terraform Files To our Pipelines :

We First Created The API then The Operations as you can see in the pipeline :

enter image description here

And Then added the init,plan and apply tasks on the stage :

enter image description here

And Just like That We created and configured the Api
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文