## The problem
Issue Azure/azure-cli#31189 (closed, 64 comments): ### Describe the bug When performing a bicep operation using the az cli in an Azure Devops Pipeline that has been upgraded to AZ CLI 2.71.x we seem to run in to the following: **FileNotFoundError: [Errno 2] No such file or directory: '[HOME]/...'** This is a **problem** on: - Ubuntu 22.04 Self Hosted - Ubuntu 24.04 Self Hosted - Ubuntu 22.04 Microsoft Hosted Azure Pipelines - Ubuntu-22.04 pool. **This works** because it runs AZ CLI 2.70 ```yaml - task: AzureCLI@2 inputs: azureSubscription: ${{ parameters.serviceConnection }} scriptType: pscore scriptLocation: in
## What to do
AZ CLI 2.71.x breaking Bicep deployments on Azure DevOps agents: a regression fixed in Azure CLI 2.72.0, which the Microsoft-hosted agents now include. Upgrade to 2.72.0+. If you are stuck on older agents, install the Azure CLI edge build as a pipeline step.