Azure Functions Core Tools v4:
func –version
az webapp list –resource-group “<nombre-del-rg>”
az functionapp create ` --resource-group <nombre-del-rg> ` --consumption-plan-location <región> ` --runtime python ` --runtime-version 3.11 ` --functions-version 4 ` --name <nombre-de-la-functionapp> ` --storage-account <nombre-storage> ` --os-type Linux
func init . –python
func new –name ItWorksFunc –template “HTTP trigger” –authlevel anonymous
function_app.py con decorators.func azure functionapp publish <nombre-de-la-functionapp>
https://<nombre-de-la-functionapp>.azurewebsites.net/api/ItWorksFunc
authLevel a anonymous para evitar respuestas 401."it works! running at Azure Functions"
function_app.py:/backups, /updates, /inventory, /statuscurl -X POST https://<functionapp>.azurewebsites.net/api/backups \
-H "Content-Type: application/json" \
-d '{"server":"srv01","status":"ok"}'