Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzureFileCopyV6
Breaking task version
6.258.0
Last working task version
6.254.0
Regression Description
We have two pipelines where they were working fine with Azure File Copy version 6.254.0 but once the backend version upgraded to 6.258.0, it started causing our pipelines to break. The error message is: "Failed to perform Auto-login: PSContextCredential�[31;1mGet-AzAccessToken: -REDACTED-;1mA parameter cannot be found that matches parameter name 'AsSecureString'.�[0m"
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)
Azure DevOps Server 2019.1
Operation system
Windows 11
Relevant log output
2025-06-02T17:40:21.9269175Z INFO: Scanning...
2025-06-02T17:40:41.9922184Z
2025-06-02T17:40:42.2786978Z Failed to perform Auto-login: PSContextCredential?Get-AzAccessToken: -REDACTED-;1mA parameter cannot be found that matches parameter name AsSecureString.?
2025-06-02T17:40:42.2788885Z .
2025-06-02T17:40:42.3376695Z ##[error]Upload to container: 'files' in storage account: '' with blob prefix: '' failed with error: 'AzCopy.exe exited with non-zero exit code while uploading files to blob storage.' For more info please refer to https://aka.ms/azurefilecopyreadme
2025-06-02T17:40:42.4014746Z ##[warning]RetryHelper encountered task failure, will retry (attempt #: 1 out of 5) after 1000 ms
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
SUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]