0

The below snippet is a block from arm template for function app.

 "variables": {
        "linuxFxVersion": {
           "python":"DOCKER|microsoft/azure-functions-python3.6:2.0",
           "dotnet":"DOCKER|microsoft/azure-functions-dotnet-core2.0:2.0",
           "node": "DOCKER|microsoft/azure-functions-node8:2.0",
            "java":"",
            "powershell":""
        },
        "FX":"[variables('linuxFxVersion')[parameters('runTimeStack')]]"

    },


{
      "linuxFxVersion": "[if(equals(parameters('osType'),'windows'),json('null'),variables('FX'))]"
 },
twinkle hema
  • 75
  • 1
  • 11

1 Answers1

0

According to the documentation for automating function resource deployment, the linuxFxVersion is required when deploying to a Linux App Service Plan.

When deploying code, you have to use the provided images as in the template that you've shared.

If you are using a custom container, then it should be your container instead as shown in the docs. Here is the same for reference

"linuxFxVersion": "DOCKER|myacr.azurecr.io/myimage:mytag"
PramodValavala
  • 6,026
  • 1
  • 11
  • 30