Replace Azure CLI container with Python SDK
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
Línea de trabajo
Start by reading sebs/azure/cli.py to inventory every az/func call and match it against the mapping table; then inspect tools/create_azure_credentials.py and the Flex work in #289. The change is complete when the manage.azure container is gone, an AzureClients holder replaces AzureCLI, and the listed Azure scenarios (create/update function app, deploy, logs, storage/Cosmos) pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The Azure backend runs every management operation through az/func inside the manage.azure Docker container (sebs/azure/cli.py). The Python SDKs now cover everything we need, so we can drop the container.
manage.azure ships Core Tools v3, which is end-of-life, on Debian bullseye. We keep having to maintain the image just for management calls. There's also an issue of handling of secrets leak, every call pays for docker exec plus az's start-up time, and we detect errors by string-matching CLI output which is quite fragile.
Possible Mapping
| Area | Current | Replacement |
|---|---|---|
| Login, subscription | az login |
azure-identity |
| Resource groups, storage accounts, keys | az group, az storage account |
azure-mgmt-resource, azure-mgmt-storage |
| Cosmos DB accounts and keys | az cosmosdb |
azure-mgmt-cosmosdb |
| Function apps, app settings, function URL, Flex scale config | az functionapp |
azure-mgmt-web (web_apps, app_service_plans, FunctionAppConfig) |
| App Insights lookup and KQL query | az monitor app-insights (+ extension, + az feature register) |
azure-mgmt-applicationinsights and azure-monitor-query |
| Metrics (Flex billing) | az monitor metrics list |
azure-mgmt-monitor |
| Code publish | func azure functionapp publish |
No SDK method. Consumption: upload the zip to blob storage, set WEBSITE_RUN_FROM_PACKAGE to a SAS URL, then sync_function_triggers. Flex: POST the zip to https://<scm>/api/publish?RemoteBuild=false with an Azure AD token. More complex |
- Replace
AzureCLIwith anAzureClientsholder (one credential, management clients created on first use). - We now have to build the
az functionapp createrequest ourselves:kind,linux_fx_version,FUNCTIONS_EXTENSION_VERSION,WEBSITE_CONTENT*, the App Insights component. - We need to ensure that this also works with the Flex consumption plan.
- Stays:
tools/create_azure_credentials.py. We need interactive login to create the service principal (I couldn't find a decent alternative to generate non-interactive credentials), but we should be able to do it from a Python package. Then, we no longer need the manage CLI Docker container. - Depends on the Flex variant work (#289); this one should be done first.
Testing
- Creating a new function app.
- Retrieving existing function apps and updating them.
- Deploying new code.
- Cold start enforcement.
- Retrieving logging information.
- Storage container management + resource groups.
- Cosmos DB database management.
- Working on Azure Durable workflows.
- Lenguaje dominante
- Python
- Estrellas
- 200
- Forks
- 112
- Merge medio
- 25 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de spcl/serverless-benchmarks
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
spcl/serverless-benchmarks#339 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
spcl/serverless-benchmarks#329 ·
-
[storage] Remove the MinIO SDK dependencyQuizá libre de nuevo @modelpath-dev la tomó hace 40 días y no hay ningún pull request abierto. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
spcl/serverless-benchmarks#328 · 2 comentarios ·
-
benchmark enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
spcl/serverless-benchmarks#321 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
spcl/serverless-benchmarks#320 ·
Todos los issues de spcl/serverless-benchmarks
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
software-mansion-labs/Diplomat#20 ·
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
View Counts discarded due to field name mismatchPosiblemente ocupada @rsiva0400 la tomó hoy. Abiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Model version publishes the new UK firm entity as a personPosiblemente ocupada @vahid-ahmadi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine.py#764 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
spcl/HPCAgent-Bench#264 ·
Los mantenedores suelen responder en 1 día