Scripts/Output/test/loadEnv.ps1
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.2, generator: @autorest/powershell@3.0.494) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' } if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $envFilePath = Join-Path $PSScriptRoot $envFile } else { $envFilePath = Join-Path $PSScriptRoot '..\$envFile' } $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} } |