Sample HTTP-triggered Azure Function used in the hands-on lab Automate Azure Functions Delivery with GitHub Actions.
HttpExample/— the sample HTTP-triggered function (function.jsonbinding +index.jscode).host.json/package.json— Azure Functions host and Node project files.
During the lab you fork this repository into your own GitHub account and then:
- Store a publish profile from the pre-created Azure Function app as the repository secret
AZURE_FUNCTIONAPP_PUBLISH_PROFILE. - Add the deployment workflow (provided in the lab guide) under
.github/workflows/, and set itsAZURE_FUNCTIONAPP_NAMEto the pre-created function app's name. - On every push to
main(or a manual run), the workflow deploys the function withAzure/functions-action.
The live endpoint is https://<your-function-app-name>.azurewebsites.net/api/HttpExample.