eng/common/scripts/Import-AzModules.ps1 (6 lines of code) (raw):

[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