Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzurePowerShell
Breaking task version
5.247.5
Last working task version
5.246.1
Regression Description
Attempting to run an inline script using AzurePowerShell generates the following error message:
An error occurred in Initialize-AzModule
##[error]The term 'Resolve-Error' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
##[error]PowerShell exited with code '1'.
Finishing: Download from Azure
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2019 Datacenter
Relevant log output
An error occurred in Initialize-AzModule
##[error]The term 'Resolve-Error' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
##[error]PowerShell exited with code '1'.
Finishing: Download from Azure
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
SUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
No response