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
Copy file name to clipboardExpand all lines: scenario2-optimized/README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ Last updated: 2025-09-05
55
55
56
56
-**Deployment Method (Function App Environment Variables)**: ZipDeploy with mounted package
57
57
58
+
> This means your app is deployed as a mounted package (the .zip is mounted read-only, not extracted to disk). `Significantly reduces disk writes and temp file creation, as the app cannot write to its own content folder. This is the recommended deployment method for Azure Functions.`
59
+
58
60
```terraform
59
61
# Use mounted package deployment for optimized disk usage
> Disables detailed diagnostics. `Reduces logging overhead and disk write operations, improving performance.`
70
+
67
71
```terraform
68
72
# Disable detailed diagnostics for better performance
69
73
"WEBSITE_ENABLE_DETAILED_DIAGNOSTICS" = "false"
@@ -73,6 +77,8 @@ Last updated: 2025-09-05
73
77
74
78
-**Logging Configuration (Function App Environment Variables)**: Minimal 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)
75
79
80
+
> Only warnings and errors are logged. `Minimizes disk usage from logs while still capturing important events.`
-**SCM Separation (Function App Environment Variables)**: Disabled for better performance
84
90
91
+
> SCM stands for Source Control Management (Kudu), used for advanced diagnostics and deployment.
92
+
> Setting this to true means SCM (Kudu) and the main app run in the same process. `Increases performance and reduces resource consumption, but may reduce isolation between diagnostics and the main app`
> Disables access to the temp directory for the Function App. Prevents the app from creating temp files, further reducing disk writes and risk of disk filling up.
104
+
94
105
```terraform
95
106
# Disable temp file access for better performance
96
107
"WEBSITE_ENABLE_TEMP_ACCESS" = "false"
@@ -104,6 +115,8 @@ Last updated: 2025-09-05
104
115
105
116
-**Application Insights**: Sampling enabled (5%). Click here to understand more about [Sampling overrides %](https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#sampling-overrides)
106
117
118
+
> Only 5% of telemetry data (logs, traces) is sent to Application Insights. `Greatly reduces disk and network usage, while still providing insight into application health.`
119
+
107
120
```terraform
108
121
# Enable sampling - optimized for low disk usage
109
122
sampling_percentage = 5
@@ -129,8 +142,6 @@ Last updated: 2025-09-05
129
142
130
143
- Azure Portal > Function App > Development Tools > Advanced tools ([Kudu](https://learn.microsoft.com/en-us/azure/app-service/resources-kudu))
0 commit comments