I had the same issue appear too today with no changes to our release pipelines. I've resolved it by changing the Azure File Copy task version from 2.* to 6.*
Azure DevOps Pipeline Error - Required Minimum Version 0.9.0 of Azure Powershell Cmdlets Not Installed
When running our Azure Pipeline, we encountered the following error in the YAML below:
The pipeline attempts to execute AzureBlob Copy App Version 2.252.0 using Azure Powershell, but it fails due to outdated module version.
The last build that run was on 02-14-2025T22:38:10.4169481Z using Version : 2.251.1
How can we ensure the pipeline always uses the latest Azure Powershell Version.
Using Version 2.252.0, we are seeing this error:
##[error]The required minimum version 0.9.0 of the Azure Powershell Cmdlets are not installed. You can follow the instructions at https://azure.microsoft.com/en-in/documentation/articles/powershell-install-configure/ to get the latest Azure powershell
2025-03-08T02:57:41.4331352Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop
2025-03-08T02:57:41.4741199Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop
2025-03-08T02:57:41.6125683Z ##[error]The required minimum version 0.9.0 of the Azure Powershell Cmdlets are not installed. You can follow the instructions at https://azure.microsoft.com/en-in/documentation/articles/powershell-install-configure/ to get the latest Azure powershell
2025-03-08T02:57:41.6760435Z ##[section]Finishing: AzureBlob Copy App
##[error]The required minimum version 0.9.0 of the Azure Powershell Cmdlets are not installed. You can follow the instructions at https://azure.microsoft.com/en-in/documentation/articles/powershell-install-configure/ to get the latest Azure powershell
Azure DevOps
1 additional answer
Sort by: Most helpful
-
Arko 4,150 Reputation points Microsoft External Staff Moderator
2025-03-17T04:01:41.4633333+00:00 It looks like the core issue was with the version of the Azure File Copy task rather than the PowerShell module itself. While ensuring that the latest PowerShell modules are installed is generally a good practice, the actual fix in this case is updating the Azure File Copy task version in your pipeline. Modify your pipeline YAML to use AzureFileCopy@6 instead of the older v2 version
- task: AzureFileCopy@6 inputs: SourcePath: '<your-source-path>' Target: '<your-target>' AzureSubscription: '<your-service-connection>'
Instead of manually managing PowerShell versions, ensuring that you're using the latest supported version of the Azure File Copy task should resolve this issue. Azure File Copy v6 is designed to be compatible with the latest Azure PowerShell versions, preventing the version mismatch error.