Skip to content

bbkane/azfunc-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generally to iterate, copy the function directory and rename it. For the README, I've renamed it to "function_app_name" here (which happens to be an illegal URL, but whatever).

function_app_hostname = "function_app_name.azurewebsites.net"
function_app_name = "function_app_name"
func azure functionapp publish function_app_name
Invoke url: https://function_app_name.azurewebsites.net/api/my_function

Can also start from scratch with something like:

# from ./06_more_auth_from_tf
func init fnhw06-01-fa-dev-bbk --python
cd fnhw06-01-fa-dev-bbk
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
pip freeze --requirement requirements.txt | sponge requirements.txt
func new --name fnhw06-01-fn-dev-bbk --template "HTTP trigger" --authlevel "anonymous"
func start  # test locally
curl http://localhost:7071/api/fnhw06-01-fn-dev-bbk
func azure functionapp publish fnhw06-01-fa-dev-bbk

NOTE that the newlines will be \r\n instead of \n - see Azure/azure-functions-core-tools#2673

That's probably enough for now...

About

Azure Functions + TF - thanks for permission for this Tom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published