feat(az): clear envvars

This commit is contained in:
TravisTX 2021-03-30 16:52:43 -06:00 committed by Jan De Dobbeleer
parent e2a86e8bd5
commit 85fb7611bc

View file

@ -23,6 +23,9 @@ function global:Initialize-ModuleSupport {
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
}
$env:AZ_SUBSCRIPTION_NAME = $null
$env:AZ_SUBSCRIPTION_ID = $null
if (Get-Module -ListAvailable -Name "Az.Accounts") {
try {
$subscription = Get-AzContext | Select-Object -ExpandProperty "Subscription" | Select-Object "Name", "Id"