User Tools

Site Tools


azure_functions_en_powershell_7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
azure_functions_en_powershell_7 [2025/11/24 13:50] – created osoazure_functions_en_powershell_7 [2025/11/24 14:04] (current) – [4. Inicialización del proyecto local] oso
Line 4: Line 4:
   * Instalar y verificar Azure CLI en PowerShell 7.   * Instalar y verificar Azure CLI en PowerShell 7.
   * Instalar ''Azure Functions Core Tools v4'':   * Instalar ''Azure Functions Core Tools v4'':
-    - Opción MSI (Windows): descargar desde la documentación oficial de Microsoft.+    - Opción MSI (Windows): [[https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-csharp|descargar desde la documentación oficial de Microsoft.]]
   * Verificar instalación:   * Verificar instalación:
 ''func --version'' ''func --version''
Line 11: Line 11:
   * Listar apps en un resource group:   * Listar apps en un resource group:
 ''az webapp list --resource-group "<nombre-del-rg>"'' ''az webapp list --resource-group "<nombre-del-rg>"''
-  * Si al crear una Function App aparece un error de compatibilidad de runtime con Windows, +  * Si al crear una Function App aparece un error de compatibilidad de runtime con Windows, suele indicar que el App Service Plan está configurado como Windows. Para runtimes como Python, se requiere **Linux**.
-    suele indicar que el App Service Plan está configurado como Windows. +
-  * Conclusión típica: para runtimes como Python, se requiere **Linux**.+
  
 ==== 3. Creación de Function App (Linux) ==== ==== 3. Creación de Function App (Linux) ====
Line 32: Line 30:
  
 ==== 4. Inicialización del proyecto local ==== ==== 4. Inicialización del proyecto local ====
-  * Crear carpeta de trabajo y ejecutar:+  * Crear e ir a la carpeta de trabajo (mkdir, cd) y ejecutar:
 ''func init . --python'' ''func init . --python''
-  * Crear función HTTP trigger con acceso anónimo:+  * Crear función HTTP trigger. Para etapa de desarrollo puede usarse con acceso anónimo:
 ''func new --name ItWorksFunc --template "HTTP trigger" --authlevel anonymous'' ''func new --name ItWorksFunc --template "HTTP trigger" --authlevel anonymous''
   * En Functions v4 para Python se genera ''function_app.py'' con decorators.   * En Functions v4 para Python se genera ''function_app.py'' con decorators.
azure_functions_en_powershell_7.1763992225.txt.gz · Last modified: 2025/11/24 13:50 by oso