[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X04BC3XM0FXCTQZQVA0F81":3,"skill-same:01M6X04BC3XM0FXCTQZQVA0F81":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6X04BC3XM0FXCTQZQVA0F81","superset-azure",null,"Deploy Apache Superset on Azure. Use when deploying Superset for BI\u002Fdata visualization with PostgreSQL backend.","microsoft\u002Fagentic-journeys","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6X02N4YDMMXKRMQMRA26956",6,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"azure","superset","superset azure","deploy","data visualization","visualization","postgresql","apache","apache superset","data","use","backend","bi","with","for","when","2026-11-10 10:12:30",false,"---\nname: superset-azure\ndescription: Deploy Apache Superset on Azure. Use when deploying Superset for BI\u002Fdata visualization with PostgreSQL backend.\n---\n\n# Apache Superset on Azure Skill\n\nDeploy Apache Superset data visualization platform on Azure Kubernetes Service.\n\n> **Complexity Note**: Superset is the most complex deployment in this project due to psycopg2 requirements and AKS architecture. Deploy time: ~15-20 minutes.\n\n## Prerequisites and Portability\n\nRequire Azure CLI, Azure Developer CLI 1.28.0 or later, and Node.js LTS or later. Verify `az version`, `azd version`, and `node --version` before generating infrastructure. The host must not need `kubectl` or Helm. Installation options for Windows, Mac, and Linux are in `..\u002F..\u002F..\u002Fdocs\u002Ftool-installation.md`.\n\nGenerate the AKS post-provision workflow as `infra-superset\u002Fhooks\u002Fpostprovision.js` and reference it directly from `azure.yaml`. The hook must attach the Kubernetes manifests and a remote deployment script to `az aks command invoke`. Run Helm and `kubectl` inside Azure. Invoke `az` and `azd` with argument arrays. On Mac and Linux, call each executable directly. On Windows, use the static PowerShell runner and JSON environment payload defined by the `container-apps-deployment` skill so Azure CLI `.cmd` shims aren't launched directly. Reject double quotes for every Windows target and additional shell metacharacters or CR\u002FLF for `.cmd`\u002F`.bat`; use attached scripts for complex remote commands. Do not generate a Bash-only host hook. Attach each file with its own `--file` flag (`--file deployment.yaml --file ingress.yaml`), or copy them into one folder and pass `--file .` with that folder as the working directory. Several paths after a single `--file` fail with `unrecognized arguments`. Call `az aks command invoke` synchronously (without `--no-wait`) and read `exitCode` and `logs` from its JSON output. With `--no-wait`, both `invoke` and `az aks command result` ignore `--query` and `--output` and print plain text (`command id: \u003Cid>, ... status: Running`) until the command finishes, so a JSON parser or command-ID lookup built on them fails or loops forever. Never retry an error indefinitely: give every wait a deadline and report the last error.\n\nStart the long deployment command with `--no-wait`, parse the returned command ID, and poll `az aks command result`. Require `provisioningState` to equal `Succeeded` and `exitCode` to equal `0`. Use a separate short AKS run command to read the ingress IP so URL discovery does not depend on long-command log truncation.\n\nWrite generated Kubernetes Secret values to a mode-`0600` temporary manifest as base64 data. Attach the temporary bundle to AKS run command, do not print the values, delete the remote Secret manifest immediately after `kubectl apply`, and remove the local bundle in `finally` after success or failure.\n\nThe hook owns `SUPERSET_SECRET_KEY` and `SUPERSET_ADMIN_PASSWORD`. On a clean environment, generate cryptographically random values for either missing setting, persist each with `azd env set`, never print the values, and reuse existing values on reruns. A first deployment must not depend on undocumented manual secret setup.\n\n## Critical: Infrastructure Generation\n\nThis skill provides Superset-specific configuration only. Infrastructure (Bicep, azure.yaml, K8s manifests) should be generated fresh each time by the official `azure-prepare` → `azure-validate` → `azure-deploy` pipeline. Do NOT rely on pre-existing infra code.\n\n\nBefore generating infrastructure, check whether `scripts\u002Fcheck-infra-superset.mjs` exists at the repository root. If it does, generate until `node scripts\u002Fcheck-infra-superset.mjs --offline` passes, and never change the script to get past a failure. Its spec is [config\u002Finfrastructure-gate.md](config\u002Finfrastructure-gate.md).\n\n## Critical: Subscription Context\n\n**ALWAYS set AZURE_SUBSCRIPTION_ID explicitly before running `azd up`.** Read it with `az account show --query id -o tsv`, then pass the returned value to `azd env set AZURE_SUBSCRIPTION_ID \u003Csubscription-id>`. Do not use Bash command substitution when the host OS is unknown.\n\nWithout this, azd and Azure MCP tools will fail silently or produce incomplete deployments.\n\n## Critical: PostgreSQL AVM Defaults\n\n**? See [..\u002Fconfig\u002Fpostgresql-avm-defaults.md](..\u002Fconfig\u002Fpostgresql-avm-defaults.md) for all PostgreSQL AVM gotchas** (publicNetworkAccess, passwordAuth, HA, password pinning). Without these, Superset will fail with \"authentication failed\" or \"connection timeout\".\n\n**Superset-specific:** Pin `POSTGRES_PASSWORD`, `SUPERSET_SECRET_KEY`, and `SUPERSET_ADMIN_PASSWORD` in the azd environment. Generate them with Node's `crypto.randomBytes()` or another cryptographically secure platform API. Do not require `openssl`, which is not installed by default on Windows.\n\n## Critical: AKS AVM Module Defaults\n\n```bicep\nmodule aksCluster 'br\u002Fpublic:avm\u002Fres\u002Fcontainer-service\u002Fmanaged-cluster:0.9.0' = {\n  params: {\n    disableLocalAccounts: false       \u002F\u002F Default requires AAD — fails without it\n    primaryAgentPoolProfiles: [\n      { name: 'system', availabilityZones: [] }  \u002F\u002F westus doesn't support AZ\n    ]\n  }\n}\n```\n\nIf you add an Azure Container Registry, don't set `exportPolicy` to `disabled` while `publicNetworkAccess` is `Enabled`. Azure rejects the combination with `DisableExport_PublicNetworkAccessMustBeDisabled`, and the preview doesn't catch it.\n\n## Quick Start (Verified)\n\n```text\n# 1. Register providers (one-time per subscription)\naz provider register --namespace Microsoft.ContainerService\naz provider register --namespace Microsoft.DBforPostgreSQL\naz provider register --namespace Microsoft.OperationalInsights\n\n# 2. Create environment\nazd env new my-superset-env\n\n# 3. Set required variables (replace placeholders with collected\u002Fgenerated values)\nazd env set AZURE_SUBSCRIPTION_ID \"\u003Csubscription-id>\"\nazd env set AZURE_LOCATION \"westus\"\nazd env set POSTGRES_PASSWORD \"\u003Cgenerated-secret>\"\nazd env set SUPERSET_SECRET_KEY \"\u003Cgenerated-secret>\"\nazd env set SUPERSET_ADMIN_PASSWORD \"\u003Cgenerated-secret>\"\n\n# 4. Deploy (~15-20 minutes)\nazd up\n\n# 5. Access Superset\nazd env get-value SUPERSET_URL\n# Login: admin \u002F value returned by azd env get-value SUPERSET_ADMIN_PASSWORD\n```\n\n**Deployment time breakdown:**\n- Resource Group: ~4s\n- PostgreSQL Flexible Server: ~4-5 min\n- AKS Cluster: ~8-10 min\n- Kubernetes resources: ~2-3 min\n- **Total: ~15-20 minutes**\n\n## Key Configuration Files\n\n| File | Purpose |\n|------|---------|\n| `config\u002Fenvironment-variables.md` | All Superset environment variables |\n| `config\u002Fhealth-probes.md` | Health probe timing for Superset startup |\n| `config\u002Finfrastructure-gate.md` | Spec for `scripts\u002Fcheck-infra-superset.mjs`, the deterministic checks that must pass before `azd up` |\n| `troubleshooting.md` | Common issues and solutions |\n\n## Superset Overview\n\nApache Superset is a modern data exploration and visualization platform. It requires:\n- **Backend Database**: PostgreSQL (production) or SQLite (dev only)\n- **PostgreSQL Driver**: psycopg2-binary (NOT included in official image!)\n- **Cache\u002FCelery Broker**: Redis (optional but recommended)\n- **Web Server**: Gunicorn serving Flask app on port 8088\n- **Config File**: superset_config.py that reads SQLALCHEMY_DATABASE_URI from env\n- **Initialization**: Database migrations and admin user creation on first run\n\n## Architecture on AKS\n\n```mermaid\ngraph TB\n    LB[\"Load Balancer\u003Cbr\u002F>(Public IP)\"]\n\n    subgraph AKS[\"AKS Cluster\"]\n        NGINX[\"NGINX Ingress Controller\"]\n        SVC[\"Superset Service\u003Cbr\u002F>(ClusterIP:80)\"]\n        subgraph POD[\"Superset Deployment\"]\n            INIT[\"Init Container (migrate)\"]\n            MAIN[\"Main Container (web · port 8088)\"]\n            CM[\"ConfigMap (config.py)\"]\n            VOL[\"emptyDir (psycopg2)\"]\n        end\n    end\n\n    PG[\"PostgreSQL Flexible Server\u003Cbr\u002F>(Azure Managed PaaS)\"]\n\n    LB --> NGINX --> SVC --> POD\n    POD --> PG\n```\n\n## Critical Configuration\n\n### psycopg2-binary (REQUIRED)\n\nThe official Superset image does NOT include psycopg2 for PostgreSQL. Without it, Superset falls back to SQLite. See [references\u002Fpsycopg2-installation.md](references\u002Fpsycopg2-installation.md) for the full solution.\n\n**TL;DR**: Install to emptyDir volume with `--target=\u002Fpsycopg2-lib`, set `PYTHONPATH=\u002Fpsycopg2-lib` in both init and main containers.\n\n### Environment Variables\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `SQLALCHEMY_DATABASE_URI` | PostgreSQL connection string | `postgresql:\u002F\u002FUSER:PASS@HOST:5432\u002FDB?sslmode=require` |\n| `SUPERSET_SECRET_KEY` | Flask secret key (required) | 32+ char random string |\n| `SUPERSET_CONFIG_PATH` | Path to config file | `\u002Fapp\u002Fpythonpath\u002Fsuperset_config.py` |\n| `PYTHONPATH` | Include psycopg2 location | `\u002Fpsycopg2-lib` |\n\nSee [config\u002Fenvironment-variables.md](config\u002Fenvironment-variables.md) for full details.\n\n**Critical**: Azure PostgreSQL requires `sslmode=require` in the connection string.\n\n### Kubernetes Manifests\n\nSee [references\u002Fkubernetes-manifests.md](references\u002Fkubernetes-manifests.md) for complete Deployment, ConfigMap, and Ingress patterns.\n\n## Health Checks\n\nSee [config\u002Fhealth-probes.md](config\u002Fhealth-probes.md) for liveness, readiness, and startup probe configuration. Key values: `\u002Fhealth` on port `8088`, `initialDelaySeconds: 90` for liveness (Superset is slow to start).\n\n## Resource Requirements\n\n| Component | CPU Request | CPU Limit | Memory Request | Memory Limit |\n|-----------|-------------|-----------|----------------|--------------|\n| Superset Web | 250m | 1000m | 512Mi | 2Gi |\n| Init Container | (inherits) | (inherits) | (inherits) | (inherits) |\n\n**⚠️ Load balancer health probe:** Install ingress-nginx with the annotation `service.beta.kubernetes.io\u002Fazure-load-balancer-health-probe-request-path=\u002Fhealthz` on the controller service. Without it, the Azure load balancer probes `\u002F`, gets a 404, marks every node unhealthy, and requests to the public IP time out even though the ingress works inside the cluster. `az aks command invoke` runs the command in a remote shell that strips one level of backslashes, so in `--set-string controller.service.annotations.service\\\\.beta\\\\.kubernetes\\\\.io\u002F...=\u002Fhealthz` each dot needs a doubled backslash (`\\\\.`) in the string the hook sends. Don't rely on double quotes to protect it: on Windows, the hook's PowerShell launcher rejects arguments that contain `\"`. After install, confirm with `az network lb show --resource-group \u003Cnode-resource-group> --name kubernetes --query \"probes[].requestPath\"`, which must print `\u002Fhealthz`. Never move the hook's or verifier's public-URL check inside the cluster to get past a timeout: that hides exactly this failure.\n\n**⚠️ Attached files keep only their base name.** `az aks command invoke --file \u003Cpath>` puts each file in the remote working directory under its base name. A temporary manifest named `superset-secret-\u003Crandom>.yaml` must be applied by that exact name, not `secret.yaml`. Create the temporary file under a random directory with a fixed name (for example `\u003Ctemp-dir>\u002Fsecret.yaml`), so the remote `kubectl apply -f secret.yaml` finds it.\n\n**⚠️ `PYTHONPATH` must be a container env var.** Set `PYTHONPATH=\u002Fpsycopg2-lib` in the container's `env:`, not with `export` in its start command. The verifier runs `kubectl exec ... python -c 'import psycopg2'`, which starts a new process that only sees declared env vars.\n\n**⚠️ Commands sent through `az aks command invoke` on Windows:** The hook's `--command` string reaches `az.cmd` through a PowerShell launcher that rejects `\"` and the `.cmd` metacharacters `& | \u003C > ^ % ! ( )`. Write each remote command without them: chain steps with `; ` after a leading `set -e` instead of `&&`, and use jsonpath without quotes (`-o jsonpath={.status.loadBalancer.ingress[0].ip}`). Drop `helm repo update` after `helm repo add`: each run starts in a fresh pod, and on a Windows console Helm's banner glyph made `az` crash with `UnicodeEncodeError`.\n\n**⚠️ Ingress admission webhook:** Wait for the controller (`kubectl rollout status deployment\u002Fingress-nginx-controller -n ingress-nginx --timeout=5m`) before `kubectl apply -f ingress.yaml`. Helm returns before the admission service has an endpoint, and the apply fails with `failed calling webhook \"validate.nginx.ingress.kubernetes.io\" ... no endpoints available`.\n\n**⚠️ Node count:** Use two `Standard_D2s_v3` nodes (`count: 2`), even though one node looks cheaper in a cost estimate. On one node, Superset, the NGINX ingress, and the AKS run-command pod don't fit: the run-command pod stays unschedulable (`Insufficient cpu`), and `az aks command invoke` fails with the misleading `Operation returned an invalid status 'OK'`.\n\n**⚠️ CPU Gotcha:** Standard_DS2_v2 (2 vCPU) only has ~500m available after AKS system pods. Set CPU **request** to 250m (not 500m) or the pod will be stuck in `Pending` with \"Insufficient cpu\". CPU **limit** can stay at 1000m for bursting.\n\n## Common Issues & Solutions\n\nSee [troubleshooting.md](troubleshooting.md) for detailed fixes. Most common: psycopg2 import errors (install to `\u002Fpsycopg2-lib` with `PYTHONPATH`), SQLite fallback (check `superset_config.py` ConfigMap), and SSL connection errors (add `?sslmode=require`).\n\n## Azure MCP Tools\n\nUse these Azure MCP Server tools for Superset deployments:\n\n| Tool | When to Use |\n|------|-------------|\n| `azure_deploy_plan` | Generate a deployment plan — use params: `target=AKS`, `provisioning_tool=AZD` |\n| `azure_bicep_schema` | Get latest schemas for `Microsoft.ContainerService\u002FmanagedClusters` and `Microsoft.DBforPostgreSQL\u002FflexibleServers` |\n| `azure_deploy_iac_guidance` | AKS-specific Bicep best practices — use `resource_type=aks` |\n| `azure_deploy_app_logs` | Fetch Log Analytics logs post-deployment to troubleshoot pod CrashLoopBackOff or init failures |\n| `azure_deploy_architecture` | Generate Mermaid architecture diagrams for the Superset AKS deployment |\n\n## Deployment Checklist\n\nBefore verifying: ensure PostgreSQL has a firewall rule, AKS run command is available, remote Helm installed NGINX Ingress, ConfigMap has `superset_config.py`, K8s secret has `SQLALCHEMY_DATABASE_URI` + `SUPERSET_SECRET_KEY` + `ADMIN_PASSWORD`, and `PYTHONPATH=\u002Fpsycopg2-lib` is set. See [troubleshooting.md](troubleshooting.md) for the full verification checklist.\n\n## Default Credentials\n\nFor testing only (change in production):\n- Username: `admin`\n- Password: Set via `ADMIN_PASSWORD` env var\n\n## Cost Estimate (Dev Environment)\n\n| Resource | Monthly Cost |\n|----------|--------------|\n| AKS Cluster (2x Standard_D2s_v3) | ~$100-150 |\n| PostgreSQL Flexible Server (B1ms) | ~$15 |\n| Load Balancer | ~$20 |\n| **Total** | **~$135-185\u002Fmonth** |\n\n**Note:** Superset on AKS is more expensive than Container Apps deployments (n8n, Grafana). Consider Container Apps if AKS features aren't required.\n\n## Tear Down\n\n```bash\nazd down --force --purge\n```\n\n**Note:** Teardown takes 5-10 minutes (AKS + PostgreSQL deletion is slow).\n\n## Verification\n\nAfter deployment completes, run the checked-in verifier from `journeys\u002Fsuperset`:\n\n```text\nnode ..\u002F..\u002F.github\u002Fscripts\u002Fverify-superset.mjs\n```\n\nOutput `AZURE_RESOURCE_GROUP` and `AZURE_AKS_CLUSTER_NAME` from Bicep, and have the hook save `SUPERSET_URL` with `azd env set`; the checked-in verifier reads these names. The verifier must use `az aks command invoke` for pod status, logs, and in-pod checks. It must not invoke a local `kubectl` or Helm binary.\n\nFor automated browser login, use `#username`, `#password`, and the resilient submit selector `input[type=\"submit\"], button[type=\"submit\"]`. Superset 4.1.1 renders a Flask-AppBuilder submit input; other versions may render a button. Verify successful navigation to `\u002Fsuperset\u002Fwelcome\u002F`.\n","# Apache Superset on Azure Skill\n\nDeploy Apache Superset data visualization platform on Azure Kubernetes Service.\n\n> **Complexity Note**: Superset is the most complex deployment in this project due to psycopg2 requirements and AKS architecture. Deploy time: ~15-20 minutes.\n\n## Prerequisites and Portability\n\nRequire Azure CLI, Azure Developer CLI 1.28.0 or later, and Node.js LTS or later. Verify `az version`, `azd version`, and `node --version` before generating infrastructure. The host must not need `kubectl` or Helm. Installation options for Windows, Mac, and Linux are in `..\u002F..\u002F..\u002Fdocs\u002Ftool-installation.md`.\n\nGenerate the AKS post-provision workflow as `infra-superset\u002Fhooks\u002Fpostprovision.js` and reference it directly from `azure.yaml`. The hook must attach the Kubernetes manifests and a remote deployment script to `az aks command invoke`. Run Helm and `kubectl` inside Azure. Invoke `az` and `azd` with argument arrays. On Mac and Linux, call each executable directly. On Windows, use the static PowerShell runner and JSON environment payload defined by the `container-apps-deployment` skill so Azure CLI `.cmd` shims aren't launched directly. Reject double quotes for every Windows target and additional shell metacharacters or CR\u002FLF for `.cmd`\u002F`.bat`; use attached scripts for complex remote commands. Do not generate a Bash-only host hook. Attach each file with its own `--file` flag (`--file deployment.yaml --file ingress.yaml`), or copy them into one folder and pass `--file .` with that folder as the working directory. Several paths after a single `--file` fail with `unrecognized arguments`. Call `az aks command invoke` synchronously (without `--no-wait`) and read `exitCode` and `logs` from its JSON output. With `--no-wait`, both `invoke` and `az aks command result` ignore `--query` and `--output` and print plain text (`command id: \u003Cid>, ... status: Running`) until the command finishes, so a JSON parser or command-ID lookup built on them fails or loops forever. Never retry an error indefinitely: give every wait a deadline and report the last error.\n\nStart the long deployment command with `--no-wait`, parse the returned command ID, and poll `az aks command result`. Require `provisioningState` to equal `Succeeded` and `exitCode` to equal `0`. Use a separate short AKS run command to read the ingress IP so URL discovery does not depend on long-command log truncation.\n\nWrite generated Kubernetes Secret values to a mode-`0600` temporary manifest as base64 data. Attach the temporary bundle to AKS run command, do not print the values, delete the remote Secret manifest immediately after `kubectl apply`, and remove the local bundle in `finally` after success or failure.\n\nThe hook owns `SUPERSET_SECRET_KEY` and `SUPERSET_ADMIN_PASSWORD`. On a clean environment, generate cryptographically random values for either missing setting, persist each with `azd env set`, never print the values, and reuse existing values on reruns. A first deployment must not depend on undocumented manual secret setup.\n\n## Critical: Infrastructure Generation\n\nThis skill provides Superset-specific configuration only. Infrastructure (Bicep, azure.yaml, K8s manifests) should be generated fresh each time by the official `azure-prepare` → `azure-validate` → `azure-deploy` pipeline. Do NOT rely on pre-existing infra code.\n\n\nBefore generating infrastructure, check whether `scripts\u002Fcheck-infra-superset.mjs` exists at the repository root. If it does, generate until `node scripts\u002Fcheck-infra-superset.mjs --offline` passes, and never change the script to get past a failure. Its spec is [config\u002Finfrastructure-gate.md](config\u002Finfrastructure-gate.md).\n\n## Critical: Subscription Context\n\n**ALWAYS set AZURE_SUBSCRIPTION_ID explicitly before running `azd up`.** Read it with `az account show --query id -o tsv`, then pass the returned value to `azd env set AZURE_SUBSCRIPTION_ID \u003Csubscription-id>`. Do not use Bash command substitution when the host OS is unknown.\n\nWithout this, azd and Azure MCP tools will fail silently or produce incomplete deployments.\n\n## Critical: PostgreSQL AVM Defaults\n\n**? See [..\u002Fconfig\u002Fpostgresql-avm-defaults.md](..\u002Fconfig\u002Fpostgresql-avm-defaults.md) for all PostgreSQL AVM gotchas** (publicNetworkAccess, passwordAuth, HA, password pinning). Without these, Superset will fail with \"authentication failed\" or \"connection timeout\".\n\n**Superset-specific:** Pin `POSTGRES_PASSWORD`, `SUPERSET_SECRET_KEY`, and `SUPERSET_ADMIN_PASSWORD` in the azd environment. Generate them with Node's `crypto.randomBytes()` or another cryptographically secure platform API. Do not require `openssl`, which is not installed by default on Windows.\n\n## Critical: AKS AVM Module Defaults\n\n```bicep\nmodule aksCluster 'br\u002Fpublic:avm\u002Fres\u002Fcontainer-service\u002Fmanaged-cluster:0.9.0' = {\n  params: {\n    disableLocalAccounts: false       \u002F\u002F Default requires AAD — fails without it\n    primaryAgentPoolProfiles: [\n      { name: 'system', availabilityZones: [] }  \u002F\u002F westus doesn't support AZ\n    ]\n  }\n}\n```\n\nIf you add an Azure Container Registry, don't set `exportPolicy` to `disabled` while `publicNetworkAccess` is `Enabled`. Azure rejects the combination with `DisableExport_PublicNetworkAccessMustBeDisabled`, and the preview doesn't catch it.\n\n## Quick Start (Verified)\n\n```text\n# 1. Register providers (one-time per subscription)\naz provider register --namespace Microsoft.ContainerService\naz provider register --namespace Microsoft.DBforPostgreSQL\naz provider register --namespace Microsoft.OperationalInsights\n\n# 2. Create environment\nazd env new my-superset-env\n\n# 3. Set required variables (replace placeholders with collected\u002Fgenerated values)\nazd env set AZURE_SUBSCRIPTION_ID \"\u003Csubscription-id>\"\nazd env set AZURE_LOCATION \"westus\"\nazd env set POSTGRES_PASSWORD \"\u003Cgenerated-secret>\"\nazd env set SUPERSET_SECRET_KEY \"\u003Cgenerated-secret>\"\nazd env set SUPERSET_ADMIN_PASSWORD \"\u003Cgenerated-secret>\"\n\n# 4. Deploy (~15-20 minutes)\nazd up\n\n# 5. Access Superset\nazd env get-value SUPERSET_URL\n# Login: admin \u002F value returned by azd env get-value SUPERSET_ADMIN_PASSWORD\n```\n\n**Deployment time breakdown:**\n- Resource Group: ~4s\n- PostgreSQL Flexible Server: ~4-5 min\n- AKS Cluster: ~8-10 min\n- Kubernetes resources: ~2-3 min\n- **Total: ~15-20 minutes**\n\n## Key Configuration Files\n\n| File | Purpose |\n|------|---------|\n| `config\u002Fenvironment-variables.md` | All Superset environment variables |\n| `config\u002Fhealth-probes.md` | Health probe timing for Superset startup |\n| `config\u002Finfrastructure-gate.md` | Spec for `scripts\u002Fcheck-infra-superset.mjs`, the deterministic checks that must pass before `azd up` |\n| `troubleshooting.md` | Common issues and solutions |\n\n## Superset Overview\n\nApache Superset is a modern data exploration and visualization platform. It requires:\n- **Backend Database**: PostgreSQL (production) or SQLite (dev only)\n- **PostgreSQL Driver**: psycopg2-binary (NOT included in official image!)\n- **Cache\u002FCelery Broker**: Redis (optional but recommended)\n- **Web Server**: Gunicorn serving Flask app on port 8088\n- **Config File**: superset_config.py that reads SQLALCHEMY_DATABASE_URI from env\n- **Initialization**: Database migrations and admin user creation on first run\n\n## Architecture on AKS\n\n```mermaid\ngraph TB\n    LB[\"Load Balancer\u003Cbr\u002F>(Public IP)\"]\n\n    subgraph AKS[\"AKS Cluster\"]\n        NGINX[\"NGINX Ingress Controller\"]\n        SVC[\"Superset Service\u003Cbr\u002F>(ClusterIP:80)\"]\n        subgraph POD[\"Superset Deployment\"]\n            INIT[\"Init Container (migrate)\"]\n            MAIN[\"Main Container (web · port 8088)\"]\n            CM[\"ConfigMap (config.py)\"]\n            VOL[\"emptyDir (psycopg2)\"]\n        end\n    end\n\n    PG[\"PostgreSQL Flexible Server\u003Cbr\u002F>(Azure Managed PaaS)\"]\n\n    LB --> NGINX --> SVC --> POD\n    POD --> PG\n```\n\n## Critical Configuration\n\n### psycopg2-binary (REQUIRED)\n\nThe official Superset image does NOT include psycopg2 for PostgreSQL. Without it, Superset falls back to SQLite. See [references\u002Fpsycopg2-installation.md](references\u002Fpsycopg2-installation.md) for the full solution.\n\n**TL;DR**: Install to emptyDir volume with `--target=\u002Fpsycopg2-lib`, set `PYTHONPATH=\u002Fpsycopg2-lib` in both init and main containers.\n\n### Environment Variables\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `SQLALCHEMY_DATABASE_URI` | PostgreSQL connection string | `postgresql:\u002F\u002FUSER:PASS@HOST:5432\u002FDB?sslmode=require` |\n| `SUPERSET_SECRET_KEY` | Flask secret key (required) | 32+ char random string |\n| `SUPERSET_CONFIG_PATH` | Path to config file | `\u002Fapp\u002Fpythonpath\u002Fsuperset_config.py` |\n| `PYTHONPATH` | Include psycopg2 location | `\u002Fpsycopg2-lib` |\n\nSee [config\u002Fenvironment-variables.md](config\u002Fenvironment-variables.md) for full details.\n\n**Critical**: Azure PostgreSQL requires `sslmode=require` in the connection string.\n\n### Kubernetes Manifests\n\nSee [references\u002Fkubernetes-manifests.md](references\u002Fkubernetes-manifests.md) for complete Deployment, ConfigMap, and Ingress patterns.\n\n## Health Checks\n\nSee [config\u002Fhealth-probes.md](config\u002Fhealth-probes.md) for liveness, readiness, and startup probe configuration. Key values: `\u002Fhealth` on port `8088`, `initialDelaySeconds: 90` for liveness (Superset is slow to start).\n\n## Resource Requirements\n\n| Component | CPU Request | CPU Limit | Memory Request | Memory Limit |\n|-----------|-------------|-----------|----------------|--------------|\n| Superset Web | 250m | 1000m | 512Mi | 2Gi |\n| Init Container | (inherits) | (inherits) | (inherits) | (inherits) |\n\n**⚠️ Load balancer health probe:** Install ingress-nginx with the annotation `service.beta.kubernetes.io\u002Fazure-load-balancer-health-probe-request-path=\u002Fhealthz` on the controller service. Without it, the Azure load balancer probes `\u002F`, gets a 404, marks every node unhealthy, and requests to the public IP time out even though the ingress works inside the cluster. `az aks command invoke` runs the command in a remote shell that strips one level of backslashes, so in `--set-string controller.service.annotations.service\\\\.beta\\\\.kubernetes\\\\.io\u002F...=\u002Fhealthz` each dot needs a doubled backslash (`\\\\.`) in the string the hook sends. Don't rely on double quotes to protect it: on Windows, the hook's PowerShell launcher rejects arguments that contain `\"`. After install, confirm with `az network lb show --resource-group \u003Cnode-resource-group> --name kubernetes --query \"probes[].requestPath\"`, which must print `\u002Fhealthz`. Never move the hook's or verifier's public-URL check inside the cluster to get past a timeout: that hides exactly this failure.\n\n**⚠️ Attached files keep only their base name.** `az aks command invoke --file \u003Cpath>` puts each file in the remote working directory under its base name. A temporary manifest named `superset-secret-\u003Crandom>.yaml` must be applied by that exact name, not `secret.yaml`. Create the temporary file under a random directory with a fixed name (for example `\u003Ctemp-dir>\u002Fsecret.yaml`), so the remote `kubectl apply -f secret.yaml` finds it.\n\n**⚠️ `PYTHONPATH` must be a container env var.** Set `PYTHONPATH=\u002Fpsycopg2-lib` in the container's `env:`, not with `export` in its start command. The verifier runs `kubectl exec ... python -c 'import psycopg2'`, which starts a new process that only sees declared env vars.\n\n**⚠️ Commands sent through `az aks command invoke` on Windows:** The hook's `--command` string reaches `az.cmd` through a PowerShell launcher that rejects `\"` and the `.cmd` metacharacters `& | \u003C > ^ % ! ( )`. Write each remote command without them: chain steps with `; ` after a leading `set -e` instead of `&&`, and use jsonpath without quotes (`-o jsonpath={.status.loadBalancer.ingress[0].ip}`). Drop `helm repo update` after `helm repo add`: each run starts in a fresh pod, and on a Windows console Helm's banner glyph made `az` crash with `UnicodeEncodeError`.\n\n**⚠️ Ingress admission webhook:** Wait for the controller (`kubectl rollout status deployment\u002Fingress-nginx-controller -n ingress-nginx --timeout=5m`) before `kubectl apply -f ingress.yaml`. Helm returns before the admission service has an endpoint, and the apply fails with `failed calling webhook \"validate.nginx.ingress.kubernetes.io\" ... no endpoints available`.\n\n**⚠️ Node count:** Use two `Standard_D2s_v3` nodes (`count: 2`), even though one node looks cheaper in a cost estimate. On one node, Superset, the NGINX ingress, and the AKS run-command pod don't fit: the run-command pod stays unschedulable (`Insufficient cpu`), and `az aks command invoke` fails with the misleading `Operation returned an invalid status 'OK'`.\n\n**⚠️ CPU Gotcha:** Standard_DS2_v2 (2 vCPU) only has ~500m available after AKS system pods. Set CPU **request** to 250m (not 500m) or the pod will be stuck in `Pending` with \"Insufficient cpu\". CPU **limit** can stay at 1000m for bursting.\n\n## Common Issues & Solutions\n\nSee [troubleshooting.md](troubleshooting.md) for detailed fixes. Most common: psycopg2 import errors (install to `\u002Fpsycopg2-lib` with `PYTHONPATH`), SQLite fallback (check `superset_config.py` ConfigMap), and SSL connection errors (add `?sslmode=require`).\n\n## Azure MCP Tools\n\nUse these Azure MCP Server tools for Superset deployments:\n\n| Tool | When to Use |\n|------|-------------|\n| `azure_deploy_plan` | Generate a deployment plan — use params: `target=AKS`, `provisioning_tool=AZD` |\n| `azure_bicep_schema` | Get latest schemas for `Microsoft.ContainerService\u002FmanagedClusters` and `Microsoft.DBforPostgreSQL\u002FflexibleServers` |\n| `azure_deploy_iac_guidance` | AKS-specific Bicep best practices — use `resource_type=aks` |\n| `azure_deploy_app_logs` | Fetch Log Analytics logs post-deployment to troubleshoot pod CrashLoopBackOff or init failures |\n| `azure_deploy_architecture` | Generate Mermaid architecture diagrams for the Superset AKS deployment |\n\n## Deployment Checklist\n\nBefore verifying: ensure PostgreSQL has a firewall rule, AKS run command is available, remote Helm installed NGINX Ingress, ConfigMap has `superset_config.py`, K8s secret has `SQLALCHEMY_DATABASE_URI` + `SUPERSET_SECRET_KEY` + `ADMIN_PASSWORD`, and `PYTHONPATH=\u002Fpsycopg2-lib` is set. See [troubleshooting.md](troubleshooting.md) for the full verification checklist.\n\n## Default Credentials\n\nFor testing only (change in production):\n- Username: `admin`\n- Password: Set via `ADMIN_PASSWORD` env var\n\n## Cost Estimate (Dev Environment)\n\n| Resource | Monthly Cost |\n|----------|--------------|\n| AKS Cluster (2x Standard_D2s_v3) | ~$100-150 |\n| PostgreSQL Flexible Server (B1ms) | ~$15 |\n| Load Balancer | ~$20 |\n| **Total** | **~$135-185\u002Fmonth** |\n\n**Note:** Superset on AKS is more expensive than Container Apps deployments (n8n, Grafana). Consider Container Apps if AKS features aren't required.\n\n## Tear Down\n\n```bash\nazd down --force --purge\n```\n\n**Note:** Teardown takes 5-10 minutes (AKS + PostgreSQL deletion is slow).\n\n## Verification\n\nAfter deployment completes, run the checked-in verifier from `journeys\u002Fsuperset`:\n\n```text\nnode ..\u002F..\u002F.github\u002Fscripts\u002Fverify-superset.mjs\n```\n\nOutput `AZURE_RESOURCE_GROUP` and `AZURE_AKS_CLUSTER_NAME` from Bicep, and have the hook save `SUPERSET_URL` with `azd env set`; the checked-in verifier reads these names. The verifier must use `az aks command invoke` for pod status, logs, and in-pod checks. It must not invoke a local `kubectl` or Helm binary.\n\nFor automated browser login, use `#username`, `#password`, and the resilient submit selector `input[type=\"submit\"], button[type=\"submit\"]`. Superset 4.1.1 renders a Flask-AppBuilder submit input; other versions may render a button. Verify successful navigation to `\u002Fsuperset\u002Fwelcome\u002F`.\n",{"name":5,"description":7},"main","08df0f20395080660d032202390dae6fe94caccb",".github\u002Fskills\u002Fsuperset-azure",7,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-25 18:55:43",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add microsoft\u002Fagentic-journeys --skill superset-azure",{"tool":55,"command":56},"bunx","bunx skills add microsoft\u002Fagentic-journeys --skill superset-azure",{"tool":58,"command":59},"pnpm","pnpm dlx skills add microsoft\u002Fagentic-journeys --skill superset-azure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002FSKILL.md",true,[63,69,73,77,81,85],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"config\u002Fenvironment-variables.md","REFERENCE","参考文档",5031,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Fconfig\u002Fenvironment-variables.md",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"config\u002Fhealth-probes.md",5362,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Fconfig\u002Fhealth-probes.md",{"path":74,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":75,"sourceHtmlUrl":76},"config\u002Finfrastructure-gate.md",6132,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Fconfig\u002Finfrastructure-gate.md",{"path":78,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fkubernetes-manifests.md",2818,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Freferences\u002Fkubernetes-manifests.md",{"path":82,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fpsycopg2-installation.md",1437,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Freferences\u002Fpsycopg2-installation.md",{"path":86,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":87,"sourceHtmlUrl":88},"troubleshooting.md",10929,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsuperset-azure\u002Ftroubleshooting.md",[90,114,130,157,180,193],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":35},"01M6X04HH8G0N7M63NR4AJ0A1W","flex-functions-sql-foundry","Scaffold and deploy an Azure Functions Flex Consumption API with Azure SQL through managed identity and Microsoft Foundry.\nUSE FOR: serverless APIs that need Flex Consumption, managed-identity Azure SQL access, Microsoft Foundry models, and deterministic azd\u002FBicep infrastructure.\nDO NOT USE FOR: Container Apps, AKS, SQL password authentication, non-HTTP workloads that need independent scaling, or projects that cannot use Azure CLI and azd.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002Fjourneys\u002Fsmart-todo\u002Fcheckpoints\u002Fphase-3\u002Frepo\u002F.github\u002Fskills\u002Fflex-functions-sql-foundry\u002FSKILL.md",[],[97,98,99,100,101,19,102,103,104,105,106,29,107,108,109,110,111,112,33,113],"foundry","sql","functions","flex functions sql foundry","foundry models","http","authentication","access","projects","password","container","azure cli","do","deterministic","scaling","apps","managed",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":35},"01M6X045XFPWKZZNKXBM2WRA43","n8n-azure","n8n workflow automation configuration for Azure. Use when deploying n8n specifically to Azure Container Apps.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fn8n-azure\u002FSKILL.md",[],[19,121,122,123,124,125,29,107,126,127,128,112,129,33,34],"n8n","n8n azure","workflow","automation","Workflow Automation","configuration","n8n workflow automation","azure container apps","n8n workflow",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":35},"01M6X03Z3NQVK79R1A9GR97VS4","journey-test-harness","Run multiple journeys as a cross-platform test suite. Discover journeys, invoke journey-runner in isolated workspaces, deploy, verify, capture screenshots, clean up only owned Azure resources, and produce a consolidated report.\nUSE FOR: test all journeys, regression test, CI journey validation, nightly journey test, end-to-end journey suite, validate journeys deploy correctly.\nDO NOT USE FOR: running one journey interactively (use journey-runner), creating journeys (use journey-template), or reviewing content (use content-reviewer).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fjourney-test-harness\u002FSKILL.md",[],[137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156],"test","harness","journey","test harness","journey test harness","run","ci","template","regression","reviewer","only","up","test all","workspaces","clean","runner","discover","end","resources","invoke",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":35},"01M6X03S1407VWGHND8SDYRK0T","journey-template","Create new agentic journeys from app ideas. Generates README.md (learner walkthrough), PLAN.md (AI-readable spec), and app-specific skills for OSS deployments. Supports any stack (Node.js, Python, .NET, Java, Swift, Kotlin) and Azure service (Container Apps, AKS, Functions, App Service).\nUSE FOR: new journey, scaffold journey, create learning experience, generate journey template, add journey to repo, build and deploy app to Azure, create journey README, generate PLAN.md spec, new OSS deployment, new full-stack journey, journey from idea.\nDO NOT USE FOR: modifying existing journeys (use coder), reviewing journey content (use content-reviewer), deploying apps (use oss-to-azure-deployer agent).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fjourney-template\u002FSKILL.md",[],[144,139,164,165,166,167,168,169,170,171,172,173,146,174,175,176,177,178,112,179],"journey template","swift","agentic","deploy app to azure","create","generate","aks","walkthrough","plan","stack","node","deploy app","idea","full","app","add",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":35},"01M6X03GAF7B5764RD7KP7EK0S","journey-runner","Run an agentic journey end-to-end: preflight the host, extract prompts, execute them in an isolated workspace, build, deploy to Azure, verify with real requests and screenshots, and clean up only owned resources.\nUSE FOR: test a journey, run a journey end-to-end, validate journey prompts, deploy a journey to Azure, walk through a journey, execute journey steps, CI journey test.\nDO NOT USE FOR: creating new journeys (use journey-template), reviewing journey content (use content-reviewer), or modifying unrelated code.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fjourney-runner\u002FSKILL.md",[],[152,139,187,188,166,142,189,143,190,144,146,147,148,191,151,109,154,192,155,33],"journey runner","screenshots","code","preflight","unrelated","host",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":35},"01M6X038K7H20P5SZX2TV4W771","grill-plan","Interview the user about an issue or plan before any code is written, one question at a time, until the decisions and the test list are clear. Turns a plan into a Decisions table and a behavior-to-test list for red\u002Fgreen TDD.\nUSE FOR: grill me, grill the plan, stress-test a plan, plan interview, clarify an issue before coding, find ambiguous requirements, decide defaults before implementation.\nDO NOT USE FOR: writing code or tests (use the tdd-builder agent), reviewing finished code (use \u002Freview), or creating new journeys (use journey-template).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagentic-journeys\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgrill-plan\u002FSKILL.md",[],[172,200,201,202,203,204,205,206,207,29,208,209,109,139,210,211,212,213,214,33],"grill","grill plan","writing","clarify","decide","decisions","question","interview","builder","test list","green","time","stress-test","requirements","tests"]