Forum Discussion
bqcanary
Jul 24, 2023Copper Contributor
PowerShell Az module missing from latest Microsoft-hosted Agents???
Goals Use PowerShell Az module when executing an Azure DevOps Pipeline Avoid installing Az from scratch (takes several minutes) I want to execute Az module commands from a Pipeline running on...
Kidd_Ip
Aug 25, 2025MVP
May try to below as workaround:
steps:
- pwsh: |
Install-Module -Name Az -Scope CurrentUser -Force -AllowClobber
Import-Module Az
displayName: 'Install and Import Az Module'
Suggestions:
• Use a self-hosted agent with Az pre-installed.
• Or cache the module between pipeline runs using Azure Pipeline Caching.