Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Azure Web App: Environment variables provided in the arguments attribute aren't interpreted anymore #117

@Tratcher

Description

@Tratcher

From @toburger on June 28, 2017 8:22

I use the following library to host my web application: https://github.com/SuaveIO/Suave.IIS

The hosting port gets provided via:
arguments="%ASPNETCORE_PORT%"

Since yesterday everything worked normally. The port was parsed and the app worked flawlessly.
But suddenly I've got the dreaded 502 gateway error.

After some debugging I found the reason of the error:
The environment variable doesn't get interpreted anymore. My program receives the plain "%ASPNETCORE_PORT%" string and not the value of the environment variable.

My workaround is to read the environment variable in the application itselft, but I wonder why the behavior has changed and why this is happening exclusively on Azure. I think the aspNetCore module was updated, but I can't find any information about this breaking change.

Copied from original issue: aspnet/IISIntegration#389

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions