azure-sdk-for-cpp/eng/common/scripts/Import-AzModules.ps1
Azure SDK Bot 5e071a07d7
Enable Caching of PS Modules (#2363)
- Remove copied AzPowershell utilities
- Add latest AZ module path already on hosted agents to PSModulePath
- Rename setup-az-modules template setup-environments to reflect what is is doing
- Add support for Caching the current user PS Module folder
- Add support for install-module if not already present in module folder
- Organize the live test clean-up script to be in the standard location

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-05-27 19:04:12 -04:00

8 lines
225 B
PowerShell

[CmdletBinding()]
param (
[string]$AzModuleVersion = "5.7.0" # Current version cached on agents
)
. (Join-Path $PSScriptRoot Helpers PSModule-Helpers.ps1)
Install-ModuleIfNotInstalled "Az" $AzModuleVersion | Import-Module