Azure Functions let us execute our code in a serverless environment. This does not require to create a solution or publish it as Azure Apps. In short, just focus on code and your functional aspect, and don’t need to worry about infrastructure.
You can create Azure Function directly from the Azure Portal. Azure Functions Tools for Visual Studio also lets you develop, test, and deploy functions to Azure.
Azure Function Tips and Tricks
- Invoke Azure Functions from Azure Data Factory Pipeline
- Using Azure API Management with Azure Function
- Generate the OpenAPI definition for Azure Function Apps
You can run your function code in an App Service, where we define the Runtime Stack, Version, and Region, or on the other hand, we can publish it in a Docker Container.
Once your Azure function is created, you need to provide your Azure Registry and Image Information to your Azure Function Services.
From the Azure Portal, go to your Function App – settings and Select Container settings. Here you can choose to following types of image sources.
- Azure Container Registry
- Docker Hub
- Private Registry
If you have an Image created for any of the Image Source, provide the container name and name of the images and Save it.
With that you can easily get started with Azure Function, running on Docker. There are several ways to create the Docker Images for Azure Function, and using Azure DevOps for Automated releases and deployments. We will take a look at them in a detailed post.