Deploy Specific Functions from Artifacts Using AzureRmWebAppDeployment@4 Task in Azure Release Pipeline

Komal Dewnani 0 Reputation points
2024-12-11T09:21:31.8766667+00:00

Is it possible to edit the AzureRmWebAppDeployment@4 task in a release pipeline to deploy only specific functions from the artifacts? I am currently using this task to deploy an artifact, but I want to selectively deploy certain functions rather than the entire set of functions in the artifact. Is there a way to achieve this with the current task or any workaround? Also, is it a good practice to selectively deploy functions from the artifact. Any help would be appreciated!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,539 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 3,905 Reputation points Microsoft External Staff
    2024-12-13T14:54:15.19+00:00

    Hi @Komal Dewnani ,

    As highlighted in the thread below, the Function App is treated as the unit of deployment, not individual Functions within it: Deploying Functions from the Same Project to Multiple Apps

    Currently, it is not possible to deploy specific functions selectively from an artifact using the AzureRmWebAppDeployment@4 task or other available options. Instead, the entire set of functions within the Function App is deployed.

    We appreciate your understanding on this matter. Should any workarounds or updates to support this scenario become available in the future, we will promptly notify you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.