Getting warning in AzureFileCopy@3

Chirag Patel 20 Reputation points

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.

- task: AzureFileCopy@3
  displayName: 'Upload Azure Blob Files'
    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

    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

    Detailed discussion is there in below article:

    Please try out those !



0 additional answers

Sort by: Most helpful