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
The command line arguments we currently send to language worker process has generic names (HOST, PORT etc). This would cause conflict with other environment variables in certain environments. For example, dotnet isolated in Linux + VNET is one of those cases where the PORT gets overwritten when the customer calls "ConfigureAppConfiguration" in the main method (as shown in Azure/azure-functions-dotnet-worker#1547)
We want to send these args with FUNCTIONS_ prefix. Initially we will send both (ex: HOST and FUNCTIONS_HOST) and once all language workers adopts to the new arguments & we are confident that no existing apps are using the old approach, we shall consider retiring the old ones.
Language workers are advised to use the new command line arguments if present, and fallback to existing one.
We also decided to combine the host and port part to a single argument "functions-uri".
For example, for dotnet-isolated worker, we will do something like below
where config is an instance of IConfiguration which contains all command line arguments. We will first check FUNCTIONS_HOST entry is present and use it's value if present, else will use host.
Issues tracking fixes on language workers side to support the new arguments (to not throw while parsing)
For command line, can we make sure to use --functions-url and make sure it maps to FUNCTIONS_URL in IConfiguration? (I think this may be the default behavior, but would need to verify).
The command line arguments we currently send to language worker process has generic names (HOST, PORT etc). This would cause conflict with other environment variables in certain environments. For example, dotnet isolated in Linux + VNET is one of those cases where the PORT gets overwritten when the customer calls "ConfigureAppConfiguration" in the main method (as shown in Azure/azure-functions-dotnet-worker#1547)
We want to send these args with FUNCTIONS_ prefix. Initially we will send both (ex: HOST and FUNCTIONS_HOST) and once all language workers adopts to the new arguments & we are confident that no existing apps are using the old approach, we shall consider retiring the old ones.
Language workers are advised to use the new command line arguments if present, and fallback to existing one.
We also decided to combine the host and port part to a single argument "functions-uri".
For example, for dotnet-isolated worker, we will do something like below
where
config
is an instance ofIConfiguration
which contains all command line arguments. We will first checkFUNCTIONS_HOST
entry is present and use it's value if present, else will usehost
.Issues tracking fixes on language workers side to support the new arguments (to not throw while parsing)
functions-<argumentname>
azure-functions-powershell-worker#992The text was updated successfully, but these errors were encountered: