I install PowerShell and Az module in container based on ubuntu:16.04
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb && \
apt-get update -y && \
apt-get install powershell -y && \
pwsh -c "Install-Module -Name Az -Force"
It works fine when I ssh to Docker running on my machine,
..but fails with error "Could not find the module Az.Accounts with given version" when executed in Azure DevOps pipeline:
Any ideas how to fix?