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

Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occurs. #7

Closed
jwk6 opened this issue Apr 20, 2018 · 24 comments
Labels

Comments

@jwk6
Copy link

jwk6 commented Apr 20, 2018

We're trying to use the Azure Data Factory Deployment task from our on-premises agent, and we receive the following error: ADFOnPremisesError.txt

When we run the same step on the Hosted VS2017 agent, and it works successfully. Here's the output:
ADFHosted2017.txt

One thing we noticed is that on-premises is running Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\5.7.0\AzureRM.psd1 -Global
...and hosted 2017 is running Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM*2.1.0*\AzureRM.psd1 -Global

Could the newer version of AzureRM be incompatible?

We've looked at the version of AzureRM that we have installed on our on-prem agent following the guidance here, https://github.com/Azure/azure-powershell/blob/preview/documentation/troubleshoot-module-load.md#potential-reason-1-older-version-stored-in-user-or-global-scope, and we do not have multiple versions on our on-prem agent.

We're able to use our hand-rolled PowerShell scripts to do the deploy, however we like your VSTS extension and would like to switch to it. Our current policy says that we must use the on-prem agent.

Can you think of what may be causing this? Any help is very much appreciated.

Thanks

@liprec
Copy link
Owner

liprec commented Apr 26, 2018

Looks indeed to me like an issue with AzureRM. Have had more issues in the past and for some reason the VS2017 hosted agents still uses v2.1.0 as the default: https://github.com/Microsoft/vsts-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md#azureazurerm-powershell-modules
So is it possible to rollback the version of the AzureRM module?

@rtrainer
Copy link

rtrainer commented Aug 3, 2018

I am getting the same error when deploying in Azure:

2018-08-03T19:42:25.6468821Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.5.0\AzureRM.psd1 -Global
2018-08-03T19:42:26.0947067Z ##[error]The following error occurred while loading the extended type data file: Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occurs.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureContext": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureProfile": The member SerializationDepth is already present.

@liprec
Copy link
Owner

liprec commented Aug 3, 2018

Are you using an on-prem agent? Or a hosted environment?

@rtrainer
Copy link

rtrainer commented Aug 3, 2018

Hosted

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

Have you had a chance to look into this?

@liprec
Copy link
Owner

liprec commented Aug 6, 2018

Yes, but I cannot reproduce this error. Do you have the error also if you are using a Hosted 2017 environment?

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

I believe that it is a 2017 environment.

I added some inline powershell comands and here are the results.

2018-08-06T17:32:40.6923183Z ##[section]Starting: Azure PowerShell script: InlineScript
2018-08-06T17:32:40.7147323Z ==============================================================================
2018-08-06T17:32:40.7147761Z Task : Azure PowerShell
2018-08-06T17:32:40.7147947Z Description : Run a PowerShell script within an Azure environment
2018-08-06T17:32:40.7148136Z Version : 2.0.11
2018-08-06T17:32:40.7148287Z Author : Microsoft Corporation
2018-08-06T17:32:40.7148511Z Help : More Information
2018-08-06T17:32:40.7148721Z ==============================================================================
2018-08-06T17:32:42.2488781Z Added TLS 1.2 in session.
2018-08-06T17:32:42.7449110Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.5.0\AzureRM.psd1 -Global
2018-08-06T17:32:52.5898312Z ##[command]Add-AzureRMAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud
2018-08-06T17:32:53.8972071Z ##[command] Select-AzureRMSubscription -SubscriptionId 3da78b04-b198-458b-acde-a4f8a9f39871 -TenantId ***
2018-08-06T17:32:54.6440347Z ##[command]& 'C:\Users\localadmin\AppData\Local\Temp\5aa89eae-adb1-483f-b3c7-f6544886c0f3.ps1'
2018-08-06T17:32:54.7308041Z
2018-08-06T17:32:54.7317914Z CommandType Name Version Source
2018-08-06T17:32:54.7318657Z ----------- ---- ------- ------
2018-08-06T17:32:54.7319843Z Alias Add-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7331862Z Alias Login-AzAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7340493Z Alias Login-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7349660Z Alias Logout-AzAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7364664Z Alias Logout-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7382724Z Alias Remove-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7391856Z Alias Resolve-Error 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7402073Z Alias Save-AzureRmProfile 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7411743Z Alias Select-AzureRmSubscription 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7550310Z Cmdlet Add-AzureRmEnvironment 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7562011Z Cmdlet Clear-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7571249Z Cmdlet Clear-AzureRmDefault 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7579543Z Cmdlet Connect-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7598256Z Cmdlet Disable-AzureRmContextAutosave 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7606648Z Cmdlet Disable-AzureRmDataCollection 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7616042Z Cmdlet Disconnect-AzureRmAccount 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7650199Z Cmdlet Enable-AzureRmContextAutosave 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7663529Z Cmdlet Enable-AzureRmDataCollection 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7671998Z Cmdlet Get-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7683718Z Cmdlet Get-AzureRmContextAutosaveSetting 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7692472Z Cmdlet Get-AzureRmDefault 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7700537Z Cmdlet Get-AzureRmEnvironment 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7709057Z Cmdlet Get-AzureRmSubscription 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7717814Z Cmdlet Get-AzureRmTenant 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7725695Z Cmdlet Import-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7733726Z Cmdlet Remove-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7742169Z Cmdlet Remove-AzureRmEnvironment 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7750351Z Cmdlet Rename-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7758923Z Cmdlet Resolve-AzureRmError 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7766931Z Cmdlet Save-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7774936Z Cmdlet Select-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7784661Z Cmdlet Send-Feedback 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7963784Z Cmdlet Set-AzureRmContext 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7971003Z Cmdlet Set-AzureRmDefault 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.7977377Z Cmdlet Set-AzureRmEnvironment 5.3.3 AzureRM.Profile
2018-08-06T17:32:54.8416843Z Alias New-AzureRmDataFactoryV2 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8423824Z Alias New-AzureRmDataFactoryV2LinkedService 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8430300Z Alias New-AzureRmDataFactoryV2Pipeline 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8436891Z Alias New-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8443675Z Cmdlet Get-AzureRmDataFactoryV2 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8449663Z Cmdlet Get-AzureRmDataFactoryV2ActivityRun 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8456470Z Cmdlet Get-AzureRmDataFactoryV2Dataset 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8462932Z Cmdlet Get-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8468911Z Cmdlet Get-AzureRmDataFactoryV2IntegrationRuntimeKey 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8476496Z Cmdlet Get-AzureRmDataFactoryV2IntegrationRuntimeMetric 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8482782Z Cmdlet Get-AzureRmDataFactoryV2IntegrationRuntimeNode 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8489108Z Cmdlet Get-AzureRmDataFactoryV2LinkedService 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8495785Z Cmdlet Get-AzureRmDataFactoryV2Pipeline 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8502464Z Cmdlet Get-AzureRmDataFactoryV2PipelineRun 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8509148Z Cmdlet Get-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8516181Z Cmdlet Get-AzureRmDataFactoryV2TriggerRun 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8526255Z Cmdlet Invoke-AzureRmDataFactoryV2IntegrationRuntimeUp... 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8533032Z Cmdlet Invoke-AzureRmDataFactoryV2Pipeline 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8539003Z Cmdlet New-AzureRmDataFactoryV2IntegrationRuntimeKey 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8548932Z Cmdlet New-AzureRmDataFactoryV2LinkedServiceEncryptedC... 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8555456Z Cmdlet Remove-AzureRmDataFactoryV2 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8561858Z Cmdlet Remove-AzureRmDataFactoryV2Dataset 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8567773Z Cmdlet Remove-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8574874Z Cmdlet Remove-AzureRmDataFactoryV2IntegrationRuntimeNode 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8580435Z Cmdlet Remove-AzureRmDataFactoryV2LinkedService 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8586866Z Cmdlet Remove-AzureRmDataFactoryV2Pipeline 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8593953Z Cmdlet Remove-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8599823Z Cmdlet Set-AzureRmDataFactoryV2 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8606275Z Cmdlet Set-AzureRmDataFactoryV2Dataset 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8613179Z Cmdlet Set-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8619166Z Cmdlet Set-AzureRmDataFactoryV2LinkedService 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8625979Z Cmdlet Set-AzureRmDataFactoryV2Pipeline 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8632118Z Cmdlet Set-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8638204Z Cmdlet Start-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8644904Z Cmdlet Start-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8650342Z Cmdlet Stop-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8657341Z Cmdlet Stop-AzureRmDataFactoryV2PipelineRun 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8663937Z Cmdlet Stop-AzureRmDataFactoryV2Trigger 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8675202Z Cmdlet Sync-AzureRmDataFactoryV2IntegrationRuntimeCred... 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8682613Z Cmdlet Update-AzureRmDataFactoryV2 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8688537Z Cmdlet Update-AzureRmDataFactoryV2IntegrationRuntime 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8695150Z Cmdlet Update-AzureRmDataFactoryV2IntegrationRuntimeNode 0.5.6 AzureRM.DataFactoryV2
2018-08-06T17:32:54.8784954Z
2018-08-06T17:32:54.8789515Z

@liprec
Copy link
Owner

liprec commented Aug 6, 2018

For these tasks you don't have to install/update the AzureRM.profile and DataFactoryV2 modules as these are included with the tasks. And I am aware of some compability errors with different version combinations of those two. And that is the reason I included working modules with the task.

So you can try running the tasks with the inline powershell script disabled.

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

You mean my inline powershell script? It will give the same error that I posted 3 days ago.

@liprec
Copy link
Owner

liprec commented Aug 6, 2018

You can right click the Azure Powershell task and select disable task and try again.

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

Here is the output of the task:

2018-08-06T20:33:28.5738274Z ##[section]Starting: Deploy JSON files to alpha-rtrainer-df
2018-08-06T20:33:28.5984015Z ==============================================================================
2018-08-06T20:33:28.5984325Z Task : Azure Data Factory Deployment
2018-08-06T20:33:28.5984560Z Description : Deploy Azure Data Factory Datasets, Pipelines and/or Linked Services using JSON files
2018-08-06T20:33:28.5984792Z Version : 1.1.11
2018-08-06T20:33:28.5984965Z Author : Jan Pieter Posthuma
2018-08-06T20:33:28.5985196Z Help : More Information
2018-08-06T20:33:28.5985453Z ==============================================================================
2018-08-06T20:33:33.7259507Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.5.0\AzureRM.psd1 -Global
2018-08-06T20:33:34.4831149Z ##[error]The following error occurred while loading the extended type data file: Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occurs.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureContext": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureProfile": The member SerializationDepth is already present.

2018-08-06T20:33:34.5405927Z ##[section]Finishing: Deploy JSON files to alpha-rtrainer-df

@liprec
Copy link
Owner

liprec commented Aug 6, 2018

When I look at my releases the it starts with the statement Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\2.1.0\AzureRM.profile.psd1 -Global, and yours is starting with the 6.5.0 version.
Can you try a new release pipeline with the Hosted VS2017 agent and only the deploy task?

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

Better. Here is the latest output:

2018-08-06T20:59:28.1081501Z ##[section]Starting: Deploy JSON files to alpha-rtrainer-df
2018-08-06T20:59:28.1087390Z ==============================================================================
2018-08-06T20:59:28.1087740Z Task : Azure Data Factory Deployment
2018-08-06T20:59:28.1088010Z Description : Deploy Azure Data Factory Datasets, Pipelines and/or Linked Services using JSON files
2018-08-06T20:59:28.1088345Z Version : 1.1.11
2018-08-06T20:59:28.1088550Z Author : Jan Pieter Posthuma
2018-08-06T20:59:28.1088985Z Help : More Information
2018-08-06T20:59:28.1091206Z ==============================================================================
2018-08-06T20:59:51.7600556Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\2.1.0\AzureRM.psd1 -Global
2018-08-06T21:00:48.9685236Z ##[warning]The names of some imported commands from the module 'AzureRM.Websites' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2018-08-06T21:00:48.9883828Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2018-08-06T21:00:49.6988567Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\2.1.0\AzureRM.profile.psd1 -Global
2018-08-06T21:00:50.0210051Z ##[command]Add-AzureRMAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud
2018-08-06T21:00:52.7154390Z ##[command]Select-AzureRMSubscription -SubscriptionId xxxxxxxxxxx -TenantId ***
2018-08-06T21:00:54.6080444Z ##[error]HTTP Status Code: NotFound
Error Code: NotFound
Error Message: Operation returned an invalid status code 'NotFound'
Request Id: 6a2fbefd-3e26-46f0-b46e-47d9f49f59ef
Timestamp (Utc):08/06/2018 21:00:53
2018-08-06T21:00:54.9485560Z ##[section]Finishing: Deploy JSON files to alpha-rtrainer-df

@liprec
Copy link
Owner

liprec commented Aug 6, 2018

Looks to me like you have some configuration errors. To get some more insights you can add the variable system.debug and set it to true to have debug logging on.

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

Thank you. I was just looking to see if maybe it was an error on my side.

@rtrainer
Copy link

rtrainer commented Aug 6, 2018

Sorry for more noob questions but it is failing at a different place.

2018-08-06T21:27:05.0211090Z ##[debug]Error deploying 'brtBuzzStaging.json' (Json is not valid. Details: 'Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 7, position 182.
2018-08-06T21:27:05.0224812Z ##[debug] at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)

I have tried this using the cli with the same results.

The JSON was successfully run through a JSON validator.

@rtrainer
Copy link

Any ideas on the previous error?

@liprec
Copy link
Owner

liprec commented Sep 22, 2018

I have updated the extension to include previews of the V2 version of different tasks and feel free to test if these are working for you.
All V2 tasks are using NodeJS and not dependant on the version of PowerShell on your agent, but only support Azure Data Factory V2.

@Stormtek81
Copy link

I am facing the exact same error as rtrainer. I also checked the input JSON in the JSON validator and it was successfully validated.
Can you please describe which JSON it expects so it is successfully processed?
Thank you very much

@liprec
Copy link
Owner

liprec commented Dec 6, 2018

Can you try the V2 version of the extension?

@jwk6
Copy link
Author

jwk6 commented Dec 6, 2018 via email

@ptarepmone
Copy link

I'm also getting the same error, while deployment. I'm not using a Hosted agent, but an on prem one.
I tried on both agents: on Hosted - it works flawlessly and on-prem one gives this error.

The powershell and RM versions are also different in both cases:
Hosted AzureRM : 6.7
on-prem AzureRM : 6.13 (latest)

2019-05-09T09:46:10.8482799Z ==============================================================================
2019-05-09T09:46:10.8484062Z Task         : Azure Analysis Service Deployment
2019-05-09T09:46:10.8485798Z Description  : Deploy Azure Analysis Service databases
2019-05-09T09:46:10.8486908Z Version      : 1.2.5
2019-05-09T09:46:10.8487935Z Author       : Jan Pieter Posthuma
2019-05-09T09:46:10.8489300Z Help         : [More Information](https://github.com/liprec/vsts-deploy-aas)
2019-05-09T09:46:10.8490636Z ==============================================================================
2019-05-09T09:46:13.5487663Z Added TLS 1.2 in session.
2019-05-09T09:46:16.3942509Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.13.1\AzureRM.psd1 -Global
2019-05-09T09:46:16.8850452Z ##[error]The following error occurred while loading the extended type data file: Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occurs.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureContext": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureProfile": The member SerializationDepth is already present.

i'm not exactly sure, whats missing. As there are no multiple versions of AzureRM in on-prem agent. Did anyone figured out the reason behind this behavior?

Thanks

@ThinkFr33ly
Copy link

I'm having this same issue. On prem. AzureRM version 6.13.1.

@stale
Copy link

stale bot commented Feb 16, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 16, 2020
@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants