From cb8671793a2a2b6ad0b9af0bc59701283c7a96d2 Mon Sep 17 00:00:00 2001 From: Paolo Salvatori Date: Tue, 22 Sep 2026 12:59:03 +0200 Subject: [PATCH] Register the SQL Database Bicep samples so CI actually runs them Both web-app-sql-database Bicep templates ship to users while no CI job has ever deployed them. The python entry has been commented out since BICEP_SAMPLES was introduced in 046fd2ed (2026-02-25) and the dotnet entry was never added at all, so a broken Bicep template in this sample would reach users green. Both deploy cleanly against the emulator today, so whatever prompted the original comment no longer applies. Verified locally on a fresh emulator: DOCKER_FLAGS="-e MSSQL_ACCEPT_EULA=Y" bash run-samples.sh 50 67 # python DOCKER_FLAGS="-e MSSQL_ACCEPT_EULA=Y" bash run-samples.sh 51 67 # dotnet Each provisions the SQL server, both databases, the app service plan, the web app and the Key Vault with its secret, then passes the sample's shared validate.sh. Registered with `bash ../scripts/validate.sh` rather than deploy alone, matching the eventhubs Bicep entries. validate.sh is deliberately shared across all three provisioning methods, so a Bicep deployment that cannot satisfy it is a finding rather than a reason to skip the check. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01REQogJXRdeGF1rZm5edNTE --- run-samples.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-samples.sh b/run-samples.sh index 62c9f25..d494350 100755 --- a/run-samples.sh +++ b/run-samples.sh @@ -86,7 +86,8 @@ BICEP_SAMPLES=( "samples/servicebus/java/bicep|bash deploy.sh" "samples/eventhubs/python/bicep|bash deploy.sh|bash ../scripts/validate.sh" "samples/eventhubs-eventgrid/python/bicep|bash deploy.sh|bash ../scripts/validate.sh" - #"samples/web-app-sql-database/python/bicep|bash deploy.sh" + "samples/web-app-sql-database/python/bicep|bash deploy.sh|bash ../scripts/validate.sh" + "samples/web-app-sql-database/dotnet/bicep|bash deploy.sh|bash ../scripts/validate.sh" "samples/function-app-managed-identity/python/bicep|bash deploy.sh" "samples/function-app-service-bus/dotnet/bicep|bash deploy.sh" "samples/function-app-storage-http/dotnet/bicep|bash deploy.sh"