Skip to content

Commit 69a9436

Browse files
authored
Enhance README with deployment and logging details
Updated README.md with additional references and deployment details for Function App environment variables.
1 parent 786565f commit 69a9436

1 file changed

Lines changed: 50 additions & 13 deletions

File tree

scenario1-high-decay/README.md

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ Last updated: 2025-08-27
1616
<summary><b>List of References</b> (Click to expand)</summary>
1717

1818
- [Kudu service overview](https://learn.microsoft.com/en-us/azure/app-service/resources-kudu)
19-
19+
- [log levels types](https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-log-levels)
20+
- [How to configure monitoring for Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2)
21+
- [host.json reference for Azure Functions 2.x and later](https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#override-hostjson-values)
22+
- [Sampling overrides %](https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#sampling-overrides)
23+
- [Sampling in Azure Monitor Application Insights with OpenTelemetry](https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-sampling)
24+
2025
</details>
2126

2227
> [!NOTE]
@@ -34,37 +39,69 @@ Last updated: 2025-08-27
3439
sku_name = "P1v3"
3540
```
3641

37-
- **Deployment Method**: Standard deployment (extracted .zip)
42+
<img width="1908" height="842" alt="image" src="https://github.com/user-attachments/assets/fd5b96e4-be63-4319-b533-5c0fe18ec862" />
43+
44+
- **Deployment Method (Function App Environment Variables)**: Standard deployment (extracted .zip)
3845

3946
```terraform
4047
# Force standard deployment instead of mounted package
4148
"WEBSITE_RUN_FROM_PACKAGE" = "0"
4249
```
4350

44-
- **Application Insights**: Full logging (no sampling)
51+
<img width="1903" height="842" alt="image" src="https://github.com/user-attachments/assets/412aeee4-3c7d-43b6-82ea-87050e30f4fe" />
52+
53+
- **Diagnostics Settings (Function App Environment Variables)**: Detailed diagnostics enabled
4554

4655
```terraform
47-
# No sampling configured - full logging
48-
sampling_percentage = 100
56+
# Enable full diagnostics for troubleshooting
57+
"WEBSITE_ENABLE_DETAILED_DIAGNOSTICS" = "true"
4958
```
50-
- **Verbose Diagnostics**: Enabled
59+
60+
<img width="1917" height="796" alt="image" src="https://github.com/user-attachments/assets/bf8e1b7f-bc4a-4c1d-aced-e06f92df5185" />
61+
62+
- **Logging Configuration (Function App Environment Variables)**: Verbose logging enabled. Click here to understand more about [log levels types](https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-log-levels)
5163

5264
```terraform
53-
# Enable full diagnostics
54-
"WEBSITE_ENABLE_DETAILED_DIAGNOSTICS" = "true"
65+
# Set verbose logging level for better diagnostics but higher disk usage
66+
"AzureFunctionsJobHost__logging__LogLevel__Default" = "Information"
67+
```
68+
69+
<img width="1898" height="828" alt="image" src="https://github.com/user-attachments/assets/6a10498c-fa5d-4e01-a392-0da31ae89cfb" />
70+
71+
- **SCM Separation (Function App Environment Variables)**: Enabled to ensure Kudu and function app run as separate processes
72+
73+
```terraform
74+
# Enable SCM separation for diagnostics
75+
"WEBSITE_DISABLE_SCM_SEPARATION" = "false"
5576
```
5677

57-
- **Storage Logging**: Enabled
78+
<img width="1907" height="842" alt="image" src="https://github.com/user-attachments/assets/d2128b76-38e1-4e3a-af3f-835db68b428f" />
79+
80+
- **Temp Access (Function App Environment Variables)**: Explicitly enabled for diagnostics and reporting
81+
82+
```terraform
83+
# Enable temp file access for diagnostics
84+
"WEBSITE_ENABLE_TEMP_ACCESS" = "true"
85+
```
86+
87+
<img width="1907" height="841" alt="image" src="https://github.com/user-attachments/assets/9fbb1211-5d5c-4356-b18f-deef61963150" />
88+
89+
> Overall:
90+
91+
<img width="973" height="825" alt="image" src="https://github.com/user-attachments/assets/4563a3f1-7168-4b86-b629-6210e99b8f90" />
92+
93+
- **Application Insights**: Full logging (no sampling). Click here to understand more about [Sampling overrides %](https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#sampling-overrides)
5894

5995
```terraform
60-
# Log to storage account (increases I/O operations)
61-
"AzureWebJobsDashboard" = azurerm_storage_account.storage.primary_connection_string
96+
# No sampling configured - full logging
97+
sampling_percentage = 100
6298
```
63-
- **WEBSITE_RUN_FROM_PACKAGE**: `Disabled (set to 0)`
99+
100+
<img width="1903" height="837" alt="image" src="https://github.com/user-attachments/assets/24197ef8-b302-480e-825b-4ddb34e18598" />
101+
64102
- **Key Vault Integration**: Secrets stored in Azure Key Vault
65103
- **Managed Identity**: System-assigned identity for Key Vault access
66104

67-
68105
## Deployment Instructions
69106

70107
1. Please follow the [Terraform Deployment guide](./terraform-infrastructure/README.md) to deploy the necessary Azure resources for the workshop.

0 commit comments

Comments
 (0)