Table of Contents

Step-by-step checklist: Azure Functions en PowerShell 7 / uso general

1. Instalación de herramientas

func –version

2. Verificación del App Service Plan

az webapp list –resource-group “<nombre-del-rg>”

3. Creación de Function App (Linux)

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

4. Inicialización del proyecto local

func init . –python

func new –name ItWorksFunc –template “HTTP trigger” –authlevel anonymous

5. Publicación y pruebas

func azure functionapp publish <nombre-de-la-functionapp>
https://<nombre-de-la-functionapp>.azurewebsites.net/api/ItWorksFunc
"it works! running at Azure Functions"

6. Extensión a múltiples endpoints

curl -X POST https://<functionapp>.azurewebsites.net/api/backups \
     -H "Content-Type: application/json" \
     -d '{"server":"srv01","status":"ok"}'