Azure-pipelines-tasks: AzureFileCopyV2 Method 'AuthenticateAsync' in type 'Microsoft.Azure.Commands.Common.Authentication.KeyStoreApplicationCredentialProvider'

Created on 17 Dec 2019  路  27Comments  路  Source: microsoft/azure-pipelines-tasks

Issue Description

Getting error today when running AzureFileCopy. It used to work

Task logs

Task         : Azure file copy
2019-12-17T15:59:37.7448219Z Description  : Copy files to Azure Blob Storage or virtual machines
2019-12-17T15:59:37.7448387Z Version      : 2.154.15
2019-12-17T15:59:37.7448551Z Author       : Microsoft Corporation
2019-12-17T15:59:37.7448746Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-file-copy
2019-12-17T15:32:03.3241149Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM



md5-173dca368c1caebb40f3cb662da4934b



2019-12-17T15:38:12.7418126Z ##[debug]Get-AzureRmStorageAccount : Method 'AuthenticateAsync' in type 'Microsoft.Azure.Commands.Common.Authentication.KeyStoreApplicationCredentialProvider' from assembly 'Microsoft.Azure.Commands.Common.Authentication, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
2019-12-17T15:38:12.7431802Z ##[debug]At C:\vstsagent\A1\_work\_tasks\AzureFileCopy_eb72cb01-a7e5-427b-a8a1-1b31ccac8a43\2.154.15\AzureUtilityGTE1.0.ps1:27 char:47
2019-12-17T15:38:12.7443276Z ##[debug]+ ... ResourceDetails = Get-AzureRmStorageAccount -ErrorAction Stop | Where ...
2019-12-17T15:38:12.7455180Z ##[debug]+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-12-17T15:38:12.7467004Z ##[debug]    + CategoryInfo          : CloseError: (:) [Get-AzureRmStorageAccount], TypeLoadException
2019-12-17T15:38:12.7478438Z ##[debug]    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand
2019-12-17T15:38:12.7489786Z ##[debug] 
Release bug

Most helpful comment

This is also affecting the ARM Task
2019-12-17T17:19:18.3337176Z Task : Azure resource group deployment
2019-12-17T17:19:18.3337267Z Description : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
2019-12-17T17:19:18.3337336Z Version : 2.162.1
2019-12-17T17:19:18.3337406Z Author : Microsoft Corporation
2019-12-17T17:19:18.3337475Z Help : Learn more about this task
2019-12-17T17:19:18.3337583Z ==============================================================================
2019-12-17T17:19:18.7483308Z Checking if the following resource group exists:
2019-12-17T17:19:19.2802364Z ##[warning]Can't find loc string for key: CorrelationIdForARM

All 27 comments

This is also affecting the ARM Task
2019-12-17T17:19:18.3337176Z Task : Azure resource group deployment
2019-12-17T17:19:18.3337267Z Description : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
2019-12-17T17:19:18.3337336Z Version : 2.162.1
2019-12-17T17:19:18.3337406Z Author : Microsoft Corporation
2019-12-17T17:19:18.3337475Z Help : Learn more about this task
2019-12-17T17:19:18.3337583Z ==============================================================================
2019-12-17T17:19:18.7483308Z Checking if the following resource group exists:
2019-12-17T17:19:19.2802364Z ##[warning]Can't find loc string for key: CorrelationIdForARM

I am seeing this error also, but it appears to be just a warning, and my app service is deploying successfully. Not sure what it means

Can't find loc string for key: CorrelationIdForARM

It's also affecting the Azure App Service deploy task, so all my team's deployments are showing warnings even though everything seems to have worked fine. A similar issue happened before on the substitute variables task, so we weren't totally caught off guard, but it's very frustrating to see hundreds of warnings when it's not actually our problem.

@AVL-Ed @dougmolineux @allan-stewart The warning is due to missing localization for the string. We will fix this in the upcoming release. Thanks for bringing this to our attention.

However it is different from the actual error that is pointed out in the issue by @majorvin. We are investigating it and will revert back once we get details .

We're seeing the same warnings being reported by the following pipeline tasks as well:
AzureResourceManagerTemplateDeployment@3
AzureRmWebAppDeployment@4
AzureAppServiceManage@0

I can add AzureResourceGroupDeployment@2 to the list @MichaelKoster70 saw it today :)

add HelmDeploy@0 to the list :)

@AVL-Ed @dougmolineux @allan-stewart The warning is due to missing localization for the string. We will fix this in the upcoming release. Thanks for bringing this to our attention.

However it is different from the actual error that is pointed out in the issue by @majorvin. We are investigating it and will revert back once we get details .

Any timeline on the reversion, given that there are work items for the fix?

We see the warning as well on KubeCtl task:

==============================================================================
Task         : Kubectl
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running kubectl commands
Version      : 1.162.3
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/kubernetes
==============================================================================
##[warning]Can\'t find loc string for key: CorrelationIdForARM

@asranja when the next release will be?

ARM Deploy Details:

2019-12-20T10:51:11.0775687Z ##[section]Starting: ARM: Deploy on $(resourceGroupName)
2019-12-20T10:51:11.0939104Z ==============================================================================
2019-12-20T10:51:11.0939212Z Task         : Azure resource group deployment
2019-12-20T10:51:11.0939297Z Description  : Deploy an Azure Resource Manager (ARM) template to a resource group and manage virtual machines
2019-12-20T10:51:11.0939368Z Version      : 2.162.2
2019-12-20T10:51:11.0939433Z Author       : Microsoft Corporation
2019-12-20T10:51:11.0939510Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
2019-12-20T10:51:11.0939599Z ==============================================================================
2019-12-20T10:51:11.4294754Z Checking if the following resource group exists: XXXXXXXX.
2019-12-20T10:51:11.9015525Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM

Also seeing this new error on our builds.

2019-12-20T19:40:36.2303546Z Got service connection details for Azure App Service:'xxxx'
2019-12-20T19:40:36.4483566Z ##[warning]Can't find loc string for key: CorrelationIdForARM
2019-12-20T19:40:36.7754338Z ##[warning]Can't find loc string for key: CorrelationIdForARM
2019-12-20T19:40:36.7794864Z Updating App Service Application settings. Data: null
2019-12-20T19:40:37.2536312Z ##[warning]Can't find loc string for key: CorrelationIdForARM
2019-12-20T19:40:37.2537528Z Updated App Service Application settings and Kudu Application settings.
2019-12-20T19:40:37.5345194Z ##[warning]Can't find loc string for key: CorrelationIdForARM

is this issue fixed or not? I'm still getting the following;

Checking if the following resource group exists: xxx-xxx-xx-rg.
##[debug][POST]https://login.windows.net/***/oauth2/token/
##[debug][HEAD]https://management.azure.com/subscriptions/<guid>/resourcegroups/uat-todo-primary-rg?api-version=2017-05-10
##[warning]Can\'t find loc string for key: CorrelationIdForARM
##[debug]Processed: ##vso[task.issue type=warning;]Can\'t find loc string for key: CorrelationIdForARM
##[debug]CorrelationIdForARM <guid>

```

Starting: App - Deploy

Task : Azure App Service deploy
Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
Version : 3.160.1
Author : Microsoft Corporation

Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment

[warning]Resource file has already set to: /home/vsts/work/_tasks/AzureRmWebAppDeployment_/3.160.1/task.json

Got connection details for Azure App Service:'xxx-xxxx-xxxxxx-webapp'

[warning]Can't find loc string for key: CorrelationIdForARM

[warning]Can't find loc string for key: CorrelationIdForARM

[warning]Can't find loc string for key: CorrelationIdForARM

Successfully deployed package /home/vsts/work/1/a/application/application.zip using kudu service at /site/wwwroot

[warning]Can't find loc string for key: CorrelationIdForARM

[warning]Can't find loc string for key: CorrelationIdForARM

Successfully updated deployment History at https://xxx-xxxx-xxxxxx-webapp.scm.azurewebsites.net/api/deployments/
Finishing: App - Deploy

I'm getting this error in the Prepare Deployment ARM template deployment Task. Version : 3.1.9

I am also facing the same error in a pipeline the was working before

Hi, the fix for CorrelationIdForARM warning is already merged and is under deployment. It should reach all the accounts by the end of this week. Thankyou for your patience.

The fix is rolled out to all accounts. Please let us know if you are still facing the issue.

@majorvin Can you please once confirm if the issue still persists for you?

@eaarora-ms we are still experiencing the same issue...

2020-01-10T08:03:45.4266880Z ==============================================================================
2020-01-10T08:03:45.4267022Z Task         : Azure App Service deploy
2020-01-10T08:03:45.4267116Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2020-01-10T08:03:45.4267376Z Version      : 4.160.2
2020-01-10T08:03:45.4267433Z Author       : Microsoft Corporation
2020-01-10T08:03:45.4267533Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment
2020-01-10T08:03:45.4267618Z ==============================================================================
2020-01-10T08:03:46.3397852Z Got service connection details for Azure App Service:'owr-node-server'
2020-01-10T08:03:47.4292838Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:03:48.1682074Z Package deployment using ZIP Deploy initiated.
2020-01-10T08:05:46.1485008Z Deploy logs can be viewed at https://owr-node-server-test.scm.azurewebsites.net/api/deployments/93ce65ca060142d6b46fbce6fd2d4da7/log
2020-01-10T08:05:46.1485734Z Successfully deployed web package to App Service.
2020-01-10T08:05:46.8682840Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:05:46.8698750Z Updating App Service Application settings. Data: {"WEBSITE_NODE_DEFAULT_VERSION":"10.6.0"}
2020-01-10T08:05:47.0822154Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:05:47.0823865Z Updated App Service Application settings and Kudu Application settings.
2020-01-10T08:05:47.2960250Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:05:47.4864710Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:05:48.1209207Z Successfully updated deployment History at https://owr-node-server-test.scm.azurewebsites.net/api/deployments/23441578643547482
2020-01-10T08:05:48.3471757Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T08:05:48.3660057Z App Service Application URL: http://owr-node-server-test.azurewebsites.net
2020-01-10T08:05:51.4233429Z ##[section]Finishing: Deploy Azure App Service

Besides the warning in the Deploy app service we are also experiencing issue when try to swap our test slot to production...

2020-01-10T06:56:37.4295855Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T06:56:52.6031415Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T06:57:08.2580170Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T06:57:08.4740225Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T06:57:10.3727219Z ##[warning]Can\'t find loc string for key: CorrelationIdForARM
2020-01-10T06:57:10.9438637Z ##[warning]Error: Failed to update deployment history. Service Temporarily Unavailable (CODE: 503)
2020-01-10T06:57:12.1235098Z Successfully updated deployment History at https://owr-node-server.scm.azurewebsites.net/api/deployments/23361578639430937
2020-01-10T06:57:12.1243303Z ##[error]Error: Failed to swap App Service 'owr-node-server' slots - 'test' and 'production'. Error: BadRequest - Cannot swap slots for site 'owr-node-server' because the worker process for 'test' slot could not be started. (CODE: 400)
2020-01-10T06:57:12.1315109Z ##[section]Finishing: Swap Slots: owr-node-server

Could this be related somehow?

I never had the warning until about ten minutes ago. I have 8 identical warnings in one task.

2020-01-10T08:24:14.0698171Z ##[warning]Can't find loc string for key: CorrelationIdForARM

It's a simple azure functions deployment. I checked previous deployments and I never had any warnings. They appeared today in two different pipelines.

I also never had such a warning. The first warnings in the pipeline appeared about 6 hours ago. All warnings are in steps related to web applications:

  • Restart Azure App Service
  • Swap Slots
  • Azure App Service Deploy

Getting this bug for Deploy Azure App Service to Slot right now, so can confirm it's not yet resolved.

Thanks for your response. Looks like the issue for AzureAppServiceDeployV4 and AppServiceManageV0 task is still not resolved for few accounts. We are investigating the issue and will fix it ASAP.

Updated ETA for the fix is Monday.

It's still occurring. Just got that message 11 times in one deployment attempt. My resources are in the Southwest US Data Center.

Hi,
Getting this bug for Jenkins download artifacts with azure storage right now. My resources are in the West Europe data center.

Hi Guys, i now this is not a blocker as we can use other version of the task, but is this being work on? in progress?

the warning for missing loc sting has been fixed, please let us know if you you are still facing this

Was this page helpful?
0 / 5 - 0 ratings