fix: provision infrastructure in CI/CD to resolve DNS_PROBE_FINISHED_NXDOMAIN on poappidea-web#2
Draft
fix: provision infrastructure in CI/CD to resolve DNS_PROBE_FINISHED_NXDOMAIN on poappidea-web#2
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
poappidea-web.azurewebsites.netwas returningDNS_PROBE_FINISHED_NXDOMAINbecause the App Service resource didn't exist — the deploy workflow only pushed code and never provisioned infrastructure. Additionally,main.bicepreferencedmodules/keyvault-access.bicepwhich 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 onkv-poshared, required for runtime secret resolution (AI keys, OAuth credentials)infra/main.bicepappInsightsConnectionStringmade optional (= '')APPLICATIONINSIGHTS_CONNECTION_STRINGapp setting conditionally included viaconcat()— avoids overwriting an existing value with an empty string when the secret isn't passed.github/workflows/deploy.yml— two steps inserted after Azure Login, before code deploy:az group create --name PoAppIdea(idempotent)az deployment group create --mode Incrementalusinginfra/main.bicep+main.bicepparam, with optionalAPPINSIGHTS_CONNECTION_STRINGGitHub 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.