maximivanov / publish-az-func-code-with-terraform

Run from Package Azure Functions deployments with Terraform
MIT License
10 stars 12 forks source link

publishing azure function app does not work #1

Open heringmartin opened 3 years ago

heringmartin commented 3 years ago

Hi Max , thanks for providing your source code to create and publish an azure function with terraform. I used your azure cli approch to publish the function app up the azure portal. I used:

For some reason either of those command does not publish my code, even though i get a 202 reponse from the output logs. My function.zip contains the powershell code as well as a function.json where my time trigger is configured. Am I missing something here ? Thanks in advance.

Regrads Martin

maximivanov commented 3 years ago

Hey Martin,

I believe you need to zip the function app folder, that is host.json and sub-folders with function.json and your code.

Ex. https://github.com/maximivanov/publish-az-func-code-with-terraform/tree/main/function-app

EAR009 commented 1 month ago

Hi, Thanks for the code. The deployment was successful, but the functions were not visible in the function app. In addition, command to deploy web app will also be deprecated soon.