Skip to content

fix: provision infrastructure in CI/CD to resolve DNS_PROBE_FINISHED_NXDOMAIN on poappidea-web#2

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-website-loading-issue
Draft

fix: provision infrastructure in CI/CD to resolve DNS_PROBE_FINISHED_NXDOMAIN on poappidea-web#2
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-website-loading-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

poappidea-web.azurewebsites.net was returning DNS_PROBE_FINISHED_NXDOMAIN because the App Service resource didn't exist — the deploy workflow only pushed code and never provisioned infrastructure. Additionally, main.bicep referenced modules/keyvault-access.bicep which was missing, making any manual Bicep deployment fail immediately.

Changes

  • infra/modules/keyvault-access.bicep (new) — RBAC module granting the web app's System-Assigned Managed Identity the Key Vault Secrets User role on kv-poshared, required for runtime secret resolution (AI keys, OAuth credentials)

  • infra/main.bicep

    • appInsightsConnectionString made optional (= '')
    • APPLICATIONINSIGHTS_CONNECTION_STRING app setting conditionally included via concat() — avoids overwriting an existing value with an empty string when the secret isn't passed
    appSettings: concat(
      !empty(appInsightsConnectionString) ? [{ name: 'APPLICATIONINSIGHTS_CONNECTION_STRING', value: appInsightsConnectionString }] : [],
      [ /* storage, openai, oauth settings */ ]
    )
  • .github/workflows/deploy.yml — two steps inserted after Azure Login, before code deploy:

    1. az group create --name PoAppIdea (idempotent)
    2. az deployment group create --mode Incremental using infra/main.bicep + main.bicepparam, with optional APPINSIGHTS_CONNECTION_STRING GitHub secret override

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…e DNS_PROBE_FINISHED_NXDOMAIN

Co-authored-by: punkouter26 <121304072+punkouter26@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix website loading issue on poappidea-web fix: provision infrastructure in CI/CD to resolve DNS_PROBE_FINISHED_NXDOMAIN on poappidea-web Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants