Closed
Description
Task name
AzureFileCopy
Task version
5
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
Question
we have a yaml file use AzureFileCopy@5 task. then use the task's output StorageContainerUri and StorageContainerSasToken to next ARM template deploy task. In the ARM template, the output StorageContainerUri and StorageContainerSasToken will be used to construct url to access blobs (StorageContainerUri+StorageContainerSasToken).
In the latest running, the ARM template task failed to access to blob due to shortage of '?' either in StorageContainerUri or StorageContainerSasToken. The constructed url is like below.
https://xx.blob.core.windows.net/xx/xx.jsonsv=2023-08-03&se=2024-01-08T07%3A13%3A55Z&sr=c&sp=rwdl&sig=***Sanitized Azure Storage Account Shared Access Signature
The correct one should be like below.
https://xx.blob.core.windows.net/xx/xx.json?sv=2023-08-03&se=2024-01-08T07%3A13%3A55Z&sr=c&sp=rwdl&sig=***Sanitized Azure Storage Account Shared Access Signature
The last successful run happened on 15th Nov, 2023 and it used below task version.
Task : Azure file copy
Description : Copy files to Azure Blob Storage or virtual machines
Version : 5.230.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-file-copy
The failed run used below task version
Task : Azure file copy
Description : Copy files to Azure Blob Storage or virtual machines
Version : 5.231.2
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-file-copy
It looks like the '?' mark was removed somewhere between this 2 version.
Please help to check which version did this change and whether the output StorageContainerSasToken without '?' mark is a permanent change.