PsModuleManagement.psm1
#----------------------------------------------------------------------------------------------------------------- # Variables #----------------------------------------------------------------------------------------------------------------- $global:TerminateSession = $false #----------------------------------------------------------------------------------------------------------------- # Mitigations #----------------------------------------------------------------------------------------------------------------- If ([version]$Global:InstalledVersionMainModule.Version -ge [version]12.0.0 ) { $Setting = get-azconfig -EnableLoginByWam If ($Setting.Value -eq $true) { # Fix AzV12 "Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: A window handle must be configured" Update-AzConfig -EnableLoginByWam $false $global:TerminateSession = $true } } #----------------------------------------------------------------------------------------------------------------- # Variables #----------------------------------------------------------------------------------------------------------------- $global:TerminateSession = $false #----------------------------------------------------------------------------------------------------------------- # Mitigations #----------------------------------------------------------------------------------------------------------------- If ([version]$Global:InstalledVersionMainModule.Version -ge [version]12.0.0 ) { ## } #----------------------------------------------------------------------------------------------------------------- # Variables #----------------------------------------------------------------------------------------------------------------- $global:TerminateSession = $false #----------------------------------------------------------------------------------------------------------------- # Mitigations #----------------------------------------------------------------------------------------------------------------- If ([version]$Global:InstalledVersionMainModule.Version -ge [version]12.0.0 ) { ## } #----------------------------------------------------------------------------------------------------------------- # Variables #----------------------------------------------------------------------------------------------------------------- $global:TerminateSession = $false #----------------------------------------------------------------------------------------------------------------- # Mitigations #----------------------------------------------------------------------------------------------------------------- If ([version]$Global:InstalledVersionMainModule.Version -ge [version]12.0.0 ) { ## } # SIG # Begin signature block # MIIaigYJKoZIhvcNAQcCoIIaezCCGncCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCc/2SvVxSkGKZd # YL45Pz1W9RsJ75UD2pLpFEGqkypsCqCCFsUwggNfMIICR6ADAgECAgsEAAAAAAEh # WFMIojANBgkqhkiG9w0BAQsFADBMMSAwHgYDVQQLExdHb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