Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
fb0e9bd
Mark every shell script in the samples executable
paolosalvatori Nov 16, 2026
068090f
Application Insights, diagnostic settings and B1 plans in the web app…
paolosalvatori Nov 16, 2026
3dcb17d
Function app samples: deployments that hold on Azure
paolosalvatori Nov 16, 2026
8aedc76
web-app-managed-identity: every resource from a module, with diagnost…
paolosalvatori Nov 16, 2026
f2b7ff4
web-app-managed-identity: storage metrics that export everywhere, and…
paolosalvatori Nov 16, 2026
51a80fc
Function app pilots: every resource from a module, OpenTelemetry, and…
paolosalvatori Nov 16, 2026
35e7e5c
Function app pilots: only the function's logger, an aligned .NET work…
paolosalvatori Nov 16, 2026
204cf21
web-app-app-configuration: Application Insights, telemetry in the app…
paolosalvatori Nov 16, 2026
0da8224
web-app-managed-identity: the .NET app retries its storage setup inst…
paolosalvatori Nov 16, 2026
9672dea
Architecture diagrams with the Log Analytics workspace and Applicatio…
paolosalvatori Nov 16, 2026
50de313
web-app-mysql-flexible-server: Application Insights, telemetry in the…
paolosalvatori Nov 16, 2026
2ae49ca
The NAT Gateway's diagnostic setting sends its metrics only: a Standa…
paolosalvatori Nov 16, 2026
0d6382b
web-app-postgresql-flexible-server: Application Insights, telemetry i…
paolosalvatori Nov 16, 2026
1bd777b
web-app-cosmosdb-nosql-api: Application Insights, telemetry in the ap…
paolosalvatori Nov 16, 2026
8f49b46
web-app-cosmosdb-mongodb-api: Application Insights, telemetry in the …
paolosalvatori Nov 16, 2026
885023d
web-app-custom-image: Application Insights, telemetry in the apps, an…
paolosalvatori Nov 16, 2026
3822346
web-app-sql-database: Application Insights, telemetry in the apps, an…
paolosalvatori Nov 16, 2026
2f2fe40
function-app-front-door: Application Insights, telemetry in the funct…
paolosalvatori Nov 16, 2026
b0d1cb0
function-app-service-bus: Application Insights, telemetry in the func…
paolosalvatori Nov 16, 2026
8a290a7
function-app-storage-http: Python version of the gaming scoreboard
paolosalvatori Nov 16, 2026
fb288f1
function-app-managed-identity: .NET version of the text processor
paolosalvatori Nov 16, 2026
3a7b2af
url-shortener: Application Insights, telemetry in both apps, and ever…
paolosalvatori Nov 17, 2026
ad793aa
api-management-function-app: Application Insights, telemetry in the f…
paolosalvatori Nov 17, 2026
1e29c4e
eventhubs: Application Insights, telemetry in the function and the da…
paolosalvatori Nov 17, 2026
314c674
eventhubs-eventgrid: Application Insights, telemetry in the function,…
paolosalvatori Nov 17, 2026
7cedfb2
Samples: read the key vault's audit records after a restart of the app
paolosalvatori Nov 17, 2026
869b4d6
web-app-sql-database: the Bicep deployment lets its deployer create t…
paolosalvatori Nov 17, 2026
7cb0063
.NET function samples: deploy the published package with config-zip
paolosalvatori Nov 17, 2026
a6fd2a7
Web app samples: retry the activity that query-telemetry.sh adds unti…
paolosalvatori Nov 17, 2026
04a0df4
Architecture diagrams with the Log Analytics workspace and Applicatio…
paolosalvatori Nov 17, 2026
c135a9b
New samples: the READMEs show their own images
paolosalvatori Nov 17, 2026
4f9ba14
.NET function samples: Bicep and Terraform deploy the code with confi…
paolosalvatori Nov 17, 2026
1a6641e
PostgreSQL and MySQL samples: Terraform creates the private endpoint …
paolosalvatori Nov 17, 2026
14c86ce
Query scripts: on Azure, read the exported platform metrics once and …
paolosalvatori Nov 17, 2026
3356d71
api-management-function-app: retry the function app's code deployment…
paolosalvatori Nov 17, 2026
ba55036
Event Hubs samples: create every event hub with its cleanup policy
paolosalvatori Nov 17, 2026
619cde1
Function samples: retry the first code deployment after a 504 on Azure
paolosalvatori Nov 17, 2026
bc11dab
Event Hubs samples: deploy the function app with zip deployment and a…
paolosalvatori Nov 17, 2026
bd14dd6
url-shortener scripts: give the deploying principal Key Vault Secrets…
paolosalvatori Nov 17, 2026
ba0d987
Event Hubs Bicep: set the content share with its connection string, a…
paolosalvatori Nov 17, 2026
5b72339
eventhubs: deploy the dashboard web app asynchronously
paolosalvatori Nov 17, 2026
d08f7bd
function-app-service-bus .NET Bicep: the function app module reads th…
paolosalvatori Nov 17, 2026
f79a809
eventhubs Bicep: create the dashboard's plan after the Linux Consumpt…
paolosalvatori Nov 17, 2026
a7b90d1
url-shortener Bicep: the web app and function app modules read the ke…
paolosalvatori Nov 17, 2026
aff648e
web-app-cosmosdb-nosql-api: build the source package on deployment
paolosalvatori Nov 17, 2026
e127d4c
eventhubs validate: skip the application group check on Azure
paolosalvatori Nov 17, 2026
ba82089
eventhubs: start the dashboard with App Service's default command
paolosalvatori Nov 17, 2026
f5e0489
Event Hubs samples: retry the function code deployment for ten minutes
paolosalvatori Nov 18, 2026
5c64089
url-shortener: shorten the storage account name
paolosalvatori Nov 18, 2026
9ef77a3
function-app-front-door: route /api/status to the status origin group
paolosalvatori Nov 18, 2026
892e249
Event Hubs samples: configure the Azure Monitor distro in the functio…
paolosalvatori Nov 18, 2026
dde9381
Event Hubs pipelines: restart the processor with az functionapp restart
paolosalvatori Nov 18, 2026
a681ccb
function-app-front-door: wait for each function app to list its funct…
paolosalvatori Nov 18, 2026
e84ed32
eventhubs pipeline: let the processor export its metrics before the r…
paolosalvatori Nov 18, 2026
b790037
eventhubs Terraform: create the dashboard's plan after the Linux Cons…
paolosalvatori Nov 18, 2026
f431983
function-app-front-door validate: wait for the rewrite rule and for a…
paolosalvatori Nov 18, 2026
aa46533
Merge main (#153) into samples-application-insights
paolosalvatori Nov 18, 2026
fb71d4e
CI: remove the temporary Azurite 3.37.0 pin
paolosalvatori Nov 18, 2026
61a0381
CI: a long list of changed files no longer hides an infrastructure ch…
paolosalvatori Nov 18, 2026
2a7914d
Terraform: moved blocks keep a deployment made with the earlier, modu…
paolosalvatori Nov 18, 2026
6e845e7
url-shortener Terraform: keep Azure's 90-day soft-delete retention on…
paolosalvatori Nov 18, 2026
f183c73
api-management-function-app Terraform: reach the emulator's metadata …
paolosalvatori Nov 19, 2026
e78a32d
Function-app-service-bus .NET: host the function app on the Flex Cons…
paolosalvatori Nov 20, 2026
59e3718
Terraform outputs: read the product and the capture container from th…
paolosalvatori Nov 20, 2026
8b7d253
web-app-sql-database Terraform: format terraform.tfvars as terraform …
paolosalvatori Nov 20, 2026
81170c7
url-shortener: keep main's storage account name
paolosalvatori Nov 20, 2026
c0c7243
api-management-function-app Terraform README: the emulator's metadata…
paolosalvatori Nov 20, 2026
5fe580a
api-management-function-app: wait for the gateway's first answer in v…
paolosalvatori Nov 20, 2026
0a2934e
url-shortener Terraform: import the storage account's diagnostic sett…
paolosalvatori Nov 20, 2026
a137224
url-shortener: run the worker's functions again before reading their …
paolosalvatori Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 6 additions & 4 deletions .github/scripts/build-matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ TOTAL=$(echo "$TEST_META" | jq length)
echo "Run mode: $RUN_MODE | Arch filter: $ARCH_FILTER | Platform: $PLATFORM | Total tests: $TOTAL"

# Changes to these files affect all tests, so any modification triggers a full run
INFRA_FILES="run-samples.sh Makefile .github/workflows/run-samples.yml .github/scripts/build-matrix.sh .github/scripts/prepare-azurite.sh pyproject.toml requirements-dev.txt requirements-runtime.txt"
INFRA_FILES="run-samples.sh Makefile .github/workflows/run-samples.yml .github/scripts/build-matrix.sh pyproject.toml requirements-dev.txt requirements-runtime.txt"

if [[ "$RUN_MODE" == "changed" && -n "$BASE_SHA" ]]; then
# Get list of files changed between base branch and current HEAD
CHANGED=$(git diff --name-only "$BASE_SHA"..HEAD || true)
echo "Changed files:"
echo "$CHANGED"

# Safety net: if any infrastructure file changed, run all tests
# Safety net: if any infrastructure file changed, run all tests. The matches read the list from a here-string,
# not a pipe: under pipefail, echo dies of SIGPIPE once grep -q has its match in a list longer than a pipe buffer,
# and the match then reads as a failure.
RUN_ALL=false
for f in $INFRA_FILES; do
if echo "$CHANGED" | grep -qF "$f"; then
if grep -qF "$f" <<<"$CHANGED"; then
echo "Infra changed: $f -> running all"
RUN_ALL=true && break
fi
Expand All @@ -52,7 +54,7 @@ if [[ "$RUN_MODE" == "changed" && -n "$BASE_SHA" ]]; then
for (( i=0; i<TOTAL; i++ )); do
mapfile -t folders < <(echo "$TEST_META" | jq -r ".[$i].watch_folders[]")
for wf in "${folders[@]}"; do
if echo "$CHANGED" | grep -q "^${wf}/"; then
if grep -q "^${wf}/" <<<"$CHANGED"; then
INDICES+=" $i" && break
fi
done
Expand Down
10 changes: 0 additions & 10 deletions .github/scripts/prepare-azurite.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/run-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ jobs:
# happy path. A start that fails or never becomes ready is retried on a fresh container.
if: matrix.os == 'linux'
run: |
bash .github/scripts/prepare-azurite.sh
attempts=3
for attempt in $(seq 1 "${attempts}"); do
if lstk start --non-interactive --type azure --image "${IMAGE}" --timeout 400s; then
Expand Down Expand Up @@ -508,7 +507,6 @@ jobs:
exit 1
EOF
docker pull "$IMAGE"
bash .github/scripts/prepare-azurite.sh
bash "$RUNNER_TEMP/start-emulator.sh"

- name: Give lstk an Azure CLI path without spaces
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Each sample is a self-contained project with its own README, Azure CLI scripts a

| Sample | Description |
|--------|-------------|
| Function App with Storage ([.NET](./samples/function-app-storage-http/dotnet/README.md)) | A gaming scoreboard built on Azure Functions (isolated worker): HTTP triggers record player scores in Table Storage, publish messages to Queue Storage and write game-session summaries to Blob Storage, all against the emulated storage account. |
| Function App with Storage ([.NET](./samples/function-app-storage-http/dotnet/README.md), [Python](./samples/function-app-storage-http/python/README.md)) | A gaming scoreboard built on Azure Functions (the .NET isolated worker or the Python v2 programming model): HTTP triggers record player scores in Table Storage, publish messages to Queue Storage and write game-session summaries to Blob Storage, all against the emulated storage account. |
| Function App with Front Door ([Python](./samples/function-app-front-door/python/README.md)) | Two Python Function Apps serving a small *Catalog* API, published through an Azure Front Door (Standard) endpoint: the edge picks an origin by priority, matches the more specific of two routes, caches what the origin allows, and runs a rule set that stamps a response header, rewrites `/shop` to `/catalog` and redirects a retired path without calling the origin at all. |
| API Management with Function App ([Python](./samples/api-management-function-app/python/README.md)) | A Python Function App serving a small *Inventory* API, published through an Azure API Management (Consumption) gateway: clients present a product-scoped subscription key, and the API policy injects a shared secret from a secret named value, enforces a rate limit, strips the key and answers CORS preflights before the request reaches the function; deployable with Azure CLI scripts, Terraform and Bicep. |
| Function App with Managed Identities ([Python](./samples/function-app-managed-identity/python/README.md)) | A serverless text processor: an Azure Functions app reads text blobs from an `input` container, converts them to uppercase and writes the result to an `output` container, authenticating to the storage account with a managed identity instead of keys. |
| Function App with Managed Identities ([Python](./samples/function-app-managed-identity/python/README.md), [.NET](./samples/function-app-managed-identity/dotnet/README.md)) | A serverless text processor: an Azure Functions app reads text blobs from an `input` container, converts them to uppercase and writes the result to an `output` container, authenticating to the storage account with a managed identity instead of keys. |
| Function App with Service Bus ([.NET](./samples/function-app-service-bus/dotnet/README.md)) | An Azure Functions app on an App Service plan that exchanges messages through Service Bus queues: an HTTP trigger sends greetings and a queue trigger consumes them, connecting with either a connection string or a managed identity. |
| Web App with Cosmos DB for MongoDB API ([Python](./samples/web-app-cosmosdb-mongodb-api/python/README.md), [.NET](./samples/web-app-cosmosdb-mongodb-api/dotnet/README.md)) | The *Vacation Planner* single-page web app on an Azure Web App with regional VNet integration, storing activities in the `activities` collection of an Azure Cosmos DB for MongoDB account reached through a private endpoint. |
| Web App with CosmosDB for NoSQL API ([Python](./samples/web-app-cosmosdb-nosql-api/python/README.md), [.NET](./samples/web-app-cosmosdb-nosql-api/dotnet/README.md)) | The *Vacation Planner* single-page web app on an Azure Web App, storing activities as JSON items in the `activities` container of an Azure Cosmos DB for NoSQL database partitioned by user; deployed with Azure CLI scripts. |
Expand Down
Loading
Loading