We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecdda1b commit c871952Copy full SHA for c871952
src/Cargo/dist/msrustup.ps1
@@ -69,11 +69,12 @@ elseif ((Get-Command "azureauth" -ErrorAction SilentlyContinue) -ne $null) {
69
azureauth ado token --output headervalue
70
} else {
71
$version = '0.9.1'
72
+ $env:AZUREAUTH_VERSION = $version
73
$script = "${env:TEMP}\install.ps1"
74
$url = "https://raw.githubusercontent.com/AzureAD/microsoft-authentication-cli/$version/install/install.ps1"
75
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
76
Invoke-WebRequest $url -OutFile $script; if ($?) { &$script | Out-Null }; if ($?) { rm $script }
-
77
+
78
$path = "$env:LOCALAPPDATA\Programs\AzureAuth\$version\azureauth.exe"
79
& $path ado token --output headervalue | Out-String
80
}
0 commit comments