简体   繁体   English

Azure DevOps - 多个 Azure Function 部署在单个 Z8640198593C34AF7FD6

[英]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.

相关问题 Is it possible to deploy multiple azure functions from different projects can be deployed in single Azure function app via Azure Devops pipeline? - Is it possible to deploy multiple azure functions from different projects can be deployed in single Azure function app via Azure Devops pipeline? 如何将 function 应用程序设置部署到 azure function 应用程序使用 ZCF04A02E37B774FC3597 devop8 - How to deploy function app settings to azure function app using azure devops app service deployment task 多个 Azure EventHub 触发到 Azure Function 应用程序中的单个函数 - Multiple Azure EventHub trigger to single function in Azure Function app 如何在 Azure DevOps 中为 Azure 应用服务使用时隙部署? - How can I use slotted deployments in Azure DevOps for an Azure App Service? Azure Devops Release Pipeline - 将单个文件部署到Azure App Service - Azure Devops Release Pipeline - Deploy single file to Azure App Service Azure Devops - 服务主体手动(或)服务主体自动用于生产部署? - Azure Devops - Service Principal manual (or) Service Principal automatic for production deployments? Azure ARM模板部署是否删除功能应用程序的主机密钥? - Do Azure ARM Template deployments delete host keys for a function app? 使用 DevOps 部署 Azure Function - Deploying Azure Function with DevOps 如何使用 azure DevOps 在单个应用服务中部署多个 .net core webjob? - How to deploy multiple .net core webjob in a single app service using azure DevOps? 现有 Azure 应用服务上的 Azure 函数 - Azure Function on Existing Azure App Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM