Skip to content

[SVLS-8477] ensure consistency for WEBSITES_ENABLE_APP_SERVICE_STORAGE#2084

Merged
ava-silver merged 2 commits intomasterfrom
ava.silver/svls-8477/ensure-consistency-for-websites_enable_app_service_storage
Feb 2, 2026
Merged

[SVLS-8477] ensure consistency for WEBSITES_ENABLE_APP_SERVICE_STORAGE#2084
ava-silver merged 2 commits intomasterfrom
ava.silver/svls-8477/ensure-consistency-for-websites_enable_app_service_storage

Conversation

@ava-silver
Copy link
Contributor

@ava-silver ava-silver commented Feb 2, 2026

What and why?

After some discussions with support and other folks, we should make sure we're consistent about ensuring the WEBSITES_ENABLE_APP_SERVICE_STORAGE env var is set to true, since the default value is not always set properly.

How?

Always add WEBSITES_ENABLE_APP_SERVICE_STORAGE, since it can fix logging issues but doesn't hurt to do.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Feb 2, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5b4be41 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@ava-silver ava-silver marked this pull request as ready for review February 2, 2026 17:21
@ava-silver ava-silver requested review from a team as code owners February 2, 2026 17:21
@ava-silver ava-silver added bug Something isn't working serverless Related to [aas, cloud-run, lambda, stepfunctions] labels Feb 2, 2026
// Get base environment variables
let envVars = getBaseEnvVars(config)
envVars = {
WEBSITES_ENABLE_APP_SERVICE_STORAGE: 'true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with this specifically, but is there any risk associated changing this without customers knowing?

AI overview said this about turning it to true:

Files written to /home (including subdirectories like /home/site/wwwroot, LogFiles, etc.) will persist across app restarts and scale instances.

Which makes it sound like this could cause stored files to build up or state to act differently

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline -- the TLDR is logging won't work without this environment variable so regardless of how the customer has configured their app, this is necessary.

@ava-silver ava-silver merged commit 82857c5 into master Feb 2, 2026
26 of 28 checks passed
@ava-silver ava-silver deleted the ava.silver/svls-8477/ensure-consistency-for-websites_enable_app_service_storage branch February 2, 2026 18:21
@Drarig29 Drarig29 mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working serverless Related to [aas, cloud-run, lambda, stepfunctions]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants