[英]Azure DevOps - Multiple Azure Function Deployments Replaces Each Other in a Single Function App Service
I have 2 .NET 5 Azure Function Visual Studio projects.我有 2 .NET 5 Azure Function Visual Studio 项目。 These 2 Functions to be deployed in a single Azure Function App.
这 2 个功能将部署在单个 Azure Function 应用程序中。
I have 2 separate Build Pipelines for each of the projects and have separate Release Pipelines as well in Azure DevOps.我为每个项目有 2 个单独的构建管道,并且在 Azure DevOps 中也有单独的发布管道。 I am not using YAML for release pipelines but depends on DevOps UI to choose a new Release pipeline.
我没有将 YAML 用于发布管道,而是依赖 DevOps UI 来选择新的发布管道。
My issue is that whenever running the Release pipeline, the last Release overrides the existing Function in Azure Function App.我的问题是,无论何时运行发布管道,最后一个发布都会覆盖 Azure Function App 中现有的 Function。 So, I am not getting 2 Functions as expected under a single Azure Function App.
因此,我没有在单个 Azure Function 应用程序下获得预期的 2 个功能。 Always the last release deployment exists in Azure.
Azure 中始终存在最新版本部署。 Why one release deployment overrides existing Functions, even though they are from different Release pipelines?
为什么一个发布部署会覆盖现有的功能,即使它们来自不同的发布管道?
In the MS documentation it states that if you perform a "Zip Deployment" to an Azure Function, it will always overwrite what is running on the Azure Function Service. In the MS documentation it states that if you perform a "Zip Deployment" to an Azure Function, it will always overwrite what is running on the Azure Function Service. I presume that the "Classic Pipeline" gives you the "Zip Deployment" option.
我认为“经典管道”为您提供了“Zip 部署”选项。
Link to MS Documentation: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-function-app?view=azure-devops#deployment-methods链接到 MS 文档: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-function-app?view=azure-devops#deployment-methods
For the moment, I do have a ticket open at Microsoft on how to manage different apps on the same Azure Function service.目前,我确实在微软有一张关于如何在同一个 Azure Function 服务上管理不同应用程序的票。 I only want changes made to the specific app where there are code changes without impacting any other existing apps on the Azure Function.
我只希望对有代码更改的特定应用程序进行更改,而不影响 Azure Function 上的任何其他现有应用程序。 For now, I only had one troubleshooting session with no solution in sight.
目前,我只有一个故障排除 session 看不到解决方案。 I will share more information once I have received a solution/workaround.
收到解决方案/解决方法后,我将分享更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.