https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-github-actions?tabs=python

1 Create repos az-func-git-actions
git@github.com:spawnmarvel/az-func-git-actions.git

2 Clone with cli

# Bash
$ cd c:\giti2022
$ git clones git@github.com:spawnmarvel/az-func-git-actions.git

3 Make the function project and function

# Powershell in VSC
func init funcprod01 --python
cd .\funcprod01\
func new --name coinfun01prod --template "HTTP trigger" --authlevel "anonymous"

func start

4 Visit URL

http://localhost:7071/api/coinfun01prod

5 Push with cli

$ git add .
$ git commit -m "initial"
$ git push origin main

Make the function app same as qa but add deployment

But error

https://github.com/shigeyf/ai-digitalmedia/issues/6

Installation failure – “Cannot find SourceControlToken with name GitHub”

This error occurs due to connecting Github to multiple Azure accounts.

Hm, no OAuth apps

Delete the rg and start over again, no application insight / log analytics, create that separate after. Besides that, same steps, consumption, public etc.

New error for the site

Just create the storage account first probably something with access

Got mail 27 min ago for the first deployment configuration, good.

Ok, storage account is done, with a new name

The function app is created with the same name as pushed to github.

Verify it

To download the publishing profile of your function app:

In GitHub, go to your repository.

Select Settings > Secrets > Actions.

Select New repository secret.

Add a new secret with the name AZURE_FUNCTIONAPP_PUBLISH_PROFILE and the value set to the contents of the publishing profile file.

Select Add secret.

GitHub can now authenticate to your function app in Azure.

TODO

Understanding GitHub Actions – GitHub Docs

How to: Deploy Azure Functions Using Github Actions (shanebart.com)