You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance README with Function App environment variable details
Added detailed explanations for various Function App environment variables related to deployment, diagnostics, logging, SCM separation, temp access, and Application Insights.
Copy file name to clipboardExpand all lines: scenario1-high-decay/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ Last updated: 2025-08-27
54
54
55
55
-**Deployment Method (Function App Environment Variables)**: Standard deployment (extracted .zip)
56
56
57
+
> `WEBSITE_RUN_FROM_PACKAGE = 0` means your app is deployed by extracting files from a zip package, rather than mounting the zip directly. `Extracted deployments allow your app to write to its local disk (such as C:\local\Temp), which is essential for scenarios testing temp file accumulation.`
58
+
57
59
```terraform
58
60
# Force standard deployment instead of mounted package
> This enables verbose diagnostics for the Function App, assisting in troubleshooting. `More detailed logs make it easier to observe how temp files accumulate and to identify issues.`
69
+
66
70
```terraform
67
71
# Enable full diagnostics for troubleshooting
68
72
"WEBSITE_ENABLE_DETAILED_DIAGNOSTICS" = "true"
@@ -72,6 +76,8 @@ Last updated: 2025-08-27
72
76
73
77
-**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)
74
78
79
+
> Sets the default logging level (e.g., “Information”) for the Azure Functions host. `Higher verbosity (like “Information” or “Verbose”) increases disk usage due to more logs being written, which is relevant for stress-testing disk decay.`
80
+
75
81
```terraform
76
82
# Set verbose logging level for better diagnostics but higher disk usage
-**SCM Separation (Function App Environment Variables)**: Enabled to ensure Kudu and function app run as separate processes
83
89
90
+
> SCM stands for Source Control Management. In Azure, SCM refers to the Kudu service, which is the advanced tool behind deployments and diagnostics. When SCM Separation is enabled (WEBSITE_DISABLE_SCM_SEPARATION=false), the Kudu (SCM) site runs in a separate process from the main Function App. Separation improves security and stability, ensuring that debugging or diagnostic actions via Kudu do not interfere with the running Function App.
91
+
84
92
```terraform
85
93
# Enable SCM separation for diagnostics
86
94
"WEBSITE_DISABLE_SCM_SEPARATION" = "false"
@@ -90,6 +98,8 @@ Last updated: 2025-08-27
90
98
91
99
-**Temp Access (Function App Environment Variables)**: Explicitly enabled for diagnostics and reporting
92
100
101
+
> Explicitly allows the Function App to access and write to the temp directory on the server. Necessary for scenarios where you want to observe temp file build-up or diagnose disk usage issues.
102
+
93
103
```terraform
94
104
# Enable temp file access for diagnostics
95
105
"WEBSITE_ENABLE_TEMP_ACCESS" = "true"
@@ -103,6 +113,8 @@ Last updated: 2025-08-27
103
113
104
114
-**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)
105
115
116
+
> Sampling reduces the volume of telemetry data sent to Application Insights. Setting sampling_percentage = 100 means no sampling, so all logs/events are recorded. `Full logging provides the most complete diagnostics but increases disk and network usage.`
0 commit comments