ARM Function Deployment

Graham Allwood 306 Reputation points
2021-04-01T13:24:32.493+00:00

Hi,

I have a number of Functions written in dotnet. I want to start using ARM templates (or Proj Bicep) to deploy them.

Up to this point I've used he Portal and VS2019 Publish in order to get the code on Azure.

I want to start using CI/CD in Azure Dev Ops. I can build my repo for the function code easily. But, when it comes to release pipelines I want to run a template to deploy things. The problem is, what is the best practice?

I can create storage accounts and service plans and FunctionApps in my template, but how do I get my functions (code) in to the FunctionApp?

It would be nice if my template could reference the build artifacts of the built dotnet project for the functions.

Azure Release Pipelines do have a deployment step for AzFunctions but I don't know what this is doing :(

Thanks

Graham

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

Accepted answer
  1. Stanislav Zhelyazkov 21,021 Reputation points MVP
    2021-04-01T13:38:00.41+00:00

    Hi,
    You can find example here on how to deploy a function that is located on Storage account.

    A few more information you can find in this tweet as well.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful