Getting warning in AzureFileCopy@3

Chirag Patel 20 Reputation points
2023-03-15T18:54:33.3866667+00:00

Hello Team,

I have used AzureFileCopy@3 task in pipeline. It is giving warning message with success execution. I provided YAML of that task and warning message.

steps:
- task: AzureFileCopy@3
  displayName: 'Upload Azure Blob Files'
  inputs:
    SourcePath: '$(System.DefaultWorkingDirectory)/$(ArtifactSourceAlias)/artifacts'
    azureSubscription: '$(AzureSubscription)'
    Destination: AzureBlob
    storage: '$(StorageAccount)'
    ContainerName: '$(StagingContainer)'
    BlobPrefix: '$(BlobPrefix)'
    sasTokenTimeOutInMinutes: 240
##[warning]The command 'Get-SpnAccessToken' is obsolete. Use Get-AccessTokenMSAL instead. This will be removed.

Do we have any solution to remove this warning?

Thanks in advance !!!

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,186 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,492 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,146 Reputation points Microsoft Employee
    2023-03-15T21:00:31.8833333+00:00

    Hello @chirag patel ,

    Can you take a look at the below links:

    As per the links , it was suggested to use : USE_MSAL: true in your YAML pipeline variable section

    https://github.com/microsoft/azure-pipelines-tasks/issues/17815

    Detailed discussion is there in below article:

    https://github.com/microsoft/azure-pipelines-tasks/issues/17677

    Please try out those !

    Regards,

    Shiva.


0 additional answers

Sort by: Most helpful