Azure Linux Zip Deploy not working : Azure Functions App Azure Linux Zip Deploy not working : Azure Functions App azure azure

Azure Linux Zip Deploy not working : Azure Functions App


1.I encountered the same issue when I deploy the linux function via vs2019, my issue is that I didn't set the Azure storage connection string.

[FunctionName("Function2")]        public static void Run([BlobTrigger("samples-workitems/{name}", Connection = "")]Stream myBlob, string name, ILogger log)        {            log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");        }

2.This error message is not useful to identify the issue. You can go to Azure portal to see if there is any error message there.

3.The ZipDeployUI endpoint is https://<app_name>.scm.azurewebsites.net/ZipDeployUI, it doesn't work for Linux App Service at this time.

enter image description here

Reference:

Troubleshoot error: "Azure Functions Runtime is unreachable"


I did research and posting my own answer here,

  1. Apparently there seems to be some timeout when I use VS2019 "Publish" Zip Deploy. It fails somewhere around 1 minute 40 seconds. So I used Azure CLI.

  2. The code works fine on both Linux and Windows servers. It is more of a timeout issue because my zip size is a bit larger.

  3. As said by @Tony Ju, it is possible that ZipDeployUI is not available for Linux server.

Alternative to VS2019 Publish,

Download Azure Cli from here, https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest

Command to run for zip deploy,

az webapp deployment source config-zip --resource-group <group-name> --name <app-name> --src clouddrive/<filename>.zip

Full documentation is here.https://docs.microsoft.com/en-us/azure/app-service/deploy-zip