Repository navigation
Restart the App Configuration sample's web app before checking its reads of the store - #160
Merged
paolosalvatori merged 1 commit intoDec 4, 2026
Conversation
…ads of the store The web app reads its key-values from the App Configuration store only when it starts, and Azure can drop for good the records of a new diagnostic setting's first minutes. query-logs-and-metrics.sh restarted the app so that it read its secrets again, but only after the AACHttpRequest check, so that check failed whenever every start of the app had fallen in those minutes: on 2026-12-04 the .NET sample's four startup reads were missing for good, and the workspace held only the read of the restart that followed the failed check. The script now restarts the app before both the AACHttpRequest and the AZKVAuditLogs checks, and the READMEs list the store reads among the start-up records Azure can drop. Fixes SMF-1297 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FvNuJJKcAASYSAqWH2cusA
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain to block approval.
No open issues 🎉
What changed in this PR
Updates the .NET and Python App Configuration samples to address missing startup-read logs during Azure diagnostic checks.
Changes:
- Moves the web-app restart and readiness wait before both the App Configuration and Key Vault log checks.
- Documents that Azure can permanently drop startup reads of the App Configuration store.
| File | Description |
|---|---|
| samples/web-app-app-configuration/python/scripts/query-logs-and-metrics.sh | Restarts the app before both read-log checks. |
| samples/web-app-app-configuration/python/README.md | Adds store reads to the diagnostic-delivery caveat. |
| samples/web-app-app-configuration/dotnet/scripts/query-logs-and-metrics.sh | Applies the same restart ordering to .NET. |
| samples/web-app-app-configuration/dotnet/README.md | Adds the matching diagnostic-delivery caveat. |
Review effort: Balanced
paolosalvatori
deleted the
smf-1297-samples-the-app-configuration-logs-check-can-miss
branch
December 4, 2026 13:01
This branch was previously deployed
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.
Motivation
While testing #159 on Azure,
query-logs-and-metrics.shof the .NET App Configuration sample failed itsAACHttpRequestcheck: after 90 attempts (15 minutes), the workspace held no record of the web app's requests to the App Configuration store.The web app reads its key-values from the store only when it starts, and Azure can drop for good the records of a new diagnostic setting's first minutes. All four startup reads of that run (08:26 to 08:34 UTC) fell in them; the workspace later held only the read of 08:59, made when the script restarted the app. The script already restarts the app for this reason, but only before the Key Vault check (
AZKVAuditLogs), which comes after theAACHttpRequestcheck. The Python run of the same day passed only because its app started later. The .NET and Python scripts are identical.Fixes SMF-1297
Changes
query-logs-and-metrics.shof the .NET and Python App Configuration samples restarts the web app, and waits for it to answer, before theAACHttpRequestcheck instead of after it, so that both checks look for reads made after the diagnostic setting's first minutes.Tests
run-samples.shandRETRY_COUNT=90: every step passed, theAACHttpRequestcheck included. The other five deployments never reached the changed script: on 2026-12-04, westeurope answered App Service plan creation with "No available instances to satisfy this request" in four rounds, northeurope has no S1 App Service quota on the test subscription, and the .NET Azure CLI deployment hung inaz webapp deployfor 78 minutes. Their resource groups are deleted.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01FvNuJJKcAASYSAqWH2cusA