Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Azure File Copy V6 is not generating SASToken #19838

Closed
3 of 7 tasks
Veera-kambham opened this issue May 4, 2024 · 4 comments
Closed
3 of 7 tasks

[Question]: Azure File Copy V6 is not generating SASToken #19838

Veera-kambham opened this issue May 4, 2024 · 4 comments

Comments

@Veera-kambham
Copy link

Veera-kambham commented May 4, 2024

New issue checklist

Task name

Azure File Copy

Breaking task version

6.0

Last working task version

3.0

Regression Description

We copied the files to storage account using Azure File Copy V6. However it is not generating SASToken.
We need to use this SASToken in the subsequent tasks.

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 2022

Relevant log output

The output variable is not generating the SAS Token and we cannot use it in the subsequent tasks

Full task logs with system.debug enabled

No response

Repro steps

No response

@Veera-kambham Veera-kambham added bug regression This used to work, but a change in the service/tasks broke it. labels May 4, 2024
@v-snalawade
Copy link
Contributor

@Veera-kambham - AzureFileCopyV6 is no longer supporting SASToken, please refer https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-file-copy-v6?view=azure-pipelines

Use V5 to work with SASToken.

@v-schhabra v-schhabra added Area:RM RM task team and removed regression This used to work, but a change in the service/tasks broke it. labels May 19, 2024
@Veera-kambham
Copy link
Author

V5 doesn’t support for Federated Identity. Hence we have to use V6.
Please reopen the issue

@v-schhabra v-schhabra reopened this May 27, 2024
@v-snalawade
Copy link
Contributor

@geekzter - Hi, Can you update on V6 and SASToken removal

@geekzter
Copy link
Member

@Veera-kambham V6 of the task discourages the use of secrets and encourages the use of Azure RBAC, and therefore no longer generates & uses SAS tokens.
If you need a SAS token in a pipeline, you can create one in the AzureCLI@2 task with az storage account generate-sas or the AzurePowerShell@5 task with New-AzStorageContainerSASToken.

@v-snalawade v-snalawade changed the title [REGRESSION]: Azure File Copy V6 is not generating SASToken [Question]: Azure File Copy V6 is not generating SASToken May 28, 2024
@v-snalawade v-snalawade added question and removed bug labels May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants