Member-only story
Linux Azure Function Isolated Dot Net 9 YAML Template Deployment
Azure function with dotnet9 isolated worker process is cool
Introduction
In this post, let’s see how we can deploy a dot net 9 isolated runtime model project to a Linux based Azure function.
Prerequisites
Creating the hosting plan
It is not mandatory to create a hosting plan, as the resource will be auto created when you create the function, however it is recommended to create one as you can define your naming strategies and more controls. Here we are choosing the consumption plan. You can learn more about the hosting options Azure provides here. Below is the ARM template to create the consumption hosting plan.
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2024-04-01",
"name": "[parameters('funcAppServerFarmName')]",
"location": "[parameters('funcAppLocation')]",
"kind": "functionapp",
"sku": {
"name": "Y1",
"tier": "Dynamic"
},
"properties": {
"computeMode": "Dynamic",
"reserved": true
}
}
Creating the Azure function
Below is the ARM template to create the Azure function.
{
"type": "Microsoft.Web/sites"…