ZIP Doesn't show in Azure Functions

Viewed 54

I created a new Azure Function using the Azure portal. I have the ZIP of my application code. I used below command to deploy the ZIP file to my Azure function. But when I go to Azure Functions -> Functions, it doesn't show anything.

enter image description here

This is the command I used to upload the ZIP file

az functionapp deployment source config-zip -g my-resource-group -n my-funcation-app  --src "My-ZIP-File.zip"

After I execute the above command, it shows as succeeded.

"message": "Created via a push deployment",
"progress": "",
"provisioningState": "Succeeded"

Any idea why it doesn't show?

1 Answers

I have tried the below steps to do the zip deployment of Function App using CLI:

  1. Created the .NET 6 Azure Functions locally and zipped using PowerShell Command:
C:\Users\krishna\source\repos\KrishNet6FunctionApp1205> Compress-Archive C:\Users\krishna\source\repos\KrishNet6FunctionApp1205 -DestinationPath ".\KrishNet6FunctionApp1205.zip" -CompressionLevel Optimal
  1. Created .NET 6 Function App in Azure Portal > added the application setting SCM_DO_BUILD_DURING_DEPLOYMENT to true and then deployed the local zipped function app to the Azure portal function app using the below command:
az functionapp deployment source config-zip -g KrishnaTestRG -n KrishNet6App141-FunApp --src "C:/Users/krishna/source/repos/KrishNet6FunctionApp1205.zip"

Result:

enter image description here

enter image description here

Related