mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
* first part * fix session manager plugin * rework AWS installation * azure cosmos db tests * azure devops cli * add azmodules test * put brackets * add root folder * remove validate aliyun * add azure modules * update modules test * docker, baze, dotnetsdk * DACFx * add azdevopscli * change to Should -BeTrue * nitpicks * remove extra * add azurecli * remove BeforeAll for DACFx * a bit of refactoring * fix templates * remove disk space validation * rename to powershell modules * fix templates
13 lines
599 B
PowerShell
13 lines
599 B
PowerShell
################################################################################
|
|
## File: Install-AzureCli.ps1
|
|
## Desc: Install Azure CLI
|
|
################################################################################
|
|
|
|
Choco-Install -PackageName azure-cli
|
|
|
|
$AzureCliExtensionPath = Join-Path $Env:CommonProgramFiles 'AzureCliExtensionDirectory'
|
|
New-Item -ItemType "directory" -Path $AzureCliExtensionPath
|
|
|
|
[Environment]::SetEnvironmentVariable("AZURE_EXTENSION_DIR", $AzureCliExtensionPath, [System.EnvironmentVariableTarget]::Machine)
|
|
|
|
Invoke-PesterTests -TestFile "Tools" -TestName "AzureCli" |