Azure部署中心 - 脚本

发布于 2025-02-01 03:46:21 字数 277 浏览 3 评论 0原文

我正在构建具有私人端点的Azure功能(高级计划)。

由于我使用了私有端点,因此无法从公共Internet / MSFT托管云管道中获得功能。

现在,想法是在功能应用中使用部署中心启用CI/CD,但是我未能找到一种方法来脚本脚本配置部署中心。

是否有一种在Azure门户外设置部署中心配置的方法?使用二头肌还是Powershell?从本质上讲,可以用给定插槽映射存储库/分支/构建管道的东西。

拥有完全自动化的流程以部署基础架构将很奇怪,然后去那里并手动更新每个订阅/阶段的部署配置。

I'm building Azure Function (Premium plan) with Private endpoint.

As I'm using private endpoint, function is not available from the public internet / MSFT managed Cloud pipelines.

Now, idea was to use Deployment Center in Function App to enable CI/CD, but I'm failing to find a way how to script configuration of Deployment Center.

Is there even a way to setup Deployment Center configuration outside of Azure Portal? Using Bicep or Powershell? Essentially, something which will map repository/branch/build pipeline with given slot.

It will be weird to have completely automated process for deployment of infrastructure and then to go there and manually update deployment configuration for each subscription/stage.

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

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

发布评论

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

评论(1

夜访吸血鬼 2025-02-08 03:46:21

您可以使用GitHub操作来部署该功能,但是您必须通过部署中心将GITHUB连接到该功能。

这是一个简单的过程,在部署中心,只需在源下选择github,然后通过在github帐户中浏览来连接github存储库即可。

另一个解决方案是使用Visual Studio(例如工具)直接部署到开发环境。

另外,您可以容器化功能并部署容器。

请参阅以下文档部署到Azure。

you can use github actions to deploy the function, but you have to connect the github to the function through the deployment center.

This is simple process where in deployment center just select github under source and connect the github repository by Loging in the github account.

Another solution would be to use visual studio like tool to directly deploy from to development environment.

Also, you can containerize the function and deploy the container.

Refer the following documentation on all the ways of deployment to the azure.

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