New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudPlatform
determination does not work correctly in Azure App Service (Windows)
#27657
Comments
Thanks for raising this, @shibayan. When the original support was added, I shared @cuspymd's concern that Let's wait for the opinion of @jdubois before we change anything here. |
Thank you! I’ll have a look next week, when I’m back from holidays. |
I just had a talk with @ccompy who knows this far better than I do, and those three environment variables look good. |
Thanks, @jdubois. I'm still a bit concerned about false positives as those three are all rather generic. If there's no single alternative that's more Azure-specific, I guess my concerns could be alleviated somewhat by looking for all three in combination. |
Unfortunately there isn't one... And yes I believe the combination of all 3 variables makes it pretty unique. |
Closing in favor of #27819. |
CloudPlatform
for Azure App Service was added in Pull Request #25829, but the environment is not correctly identified on App Service (Windows) because theWEBSITES_ENABLE_APP_SERVICE_STORAGE
environment variable, which exists only on App Service (Linux), was used to identify the environment.#25829 (comment)
Therefore, if you are running a Spring boot application on Windows, you may need to configure additional settings for handling Forwarded headers.
There are a number of environment variables that exist on both Windows and Linux, but the following three are probably unique to Azure App Service.
WEBSITE_INSTANCE_ID
WEBSITE_RESOURCE_GROUP
WEBSITE_SKU
Hello @jdubois, I would like to know if you have any opinions on this.
The text was updated successfully, but these errors were encountered: