-
Notifications
You must be signed in to change notification settings - Fork 54
Add POWERSHELL_DISTRIBUTION_CHANNEL environment variable #709
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/RequestProcessor.cs
Outdated
@@ -97,6 +97,7 @@ internal StreamingMessage ProcessWorkerInitRequest(StreamingMessage request) | |||
{ | |||
var workerInitRequest = request.WorkerInitRequest; | |||
Environment.SetEnvironmentVariable("AZUREPS_HOST_ENVIRONMENT", $"AzureFunctions/{workerInitRequest.HostVersion}"); | |||
Environment.SetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL", $"Azure-Functions-{workerInitRequest.HostVersion}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a colon works better as a separator as that's what we use in our MSI
Environment.SetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL", $"Azure-Functions-{workerInitRequest.HostVersion}"); | |
Environment.SetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL", $"Azure-Functions:{workerInitRequest.HostVersion}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Code updated.
* Add POWERSHELL_DISTRIBUTION_CHANNEL env variable * Update environment variable value format
* Add POWERSHELL_DISTRIBUTION_CHANNEL env variable * Update environment variable value format
Issue describing the changes in this PR
Add POWERSHELL_DISTRIBUTION_CHANNEL environment variable
Pull request checklist
release_notes.md
Additional information
Additional PR information