Skip to content

Conversation

@stevenvergenz
Copy link

When they're unset, take the ingestion config options from environment variables if available. If not, fill in hard-coded defaults like normal.

if (!(Get-Variable -Name SBDefaultProxyEndpoint -Scope Global -ValueOnly -ErrorAction Ignore))
{
$global:SBDefaultProxyEndpoint = $null
if ($env:SBDefaultProxyEndpoint)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason not to uses Get-Variable like we do above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants