liprec / vsts-release-aas

Repository for my Analysis Service Azure pipelines tasks related to Azure Analysis Service or Power BI Premium
Other
27 stars 28 forks source link

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

Closed hoffe86 closed 3 years ago

hoffe86 commented 5 years ago

we running into the same issue with the aas like in the the adf extension.

Is it possible to update also the aas extenion with that fix?

Greets Christoph

Error:

2019-03-28T08:12:29.4547930Z ##[section]Starting: Deploy model to Analysis Service
2019-03-28T08:12:29.4998897Z ==============================================================================
2019-03-28T08:12:29.4999846Z Task         : Azure Analysis Service Deployment
2019-03-28T08:12:29.5000448Z Description  : Deploy Azure Analysis Service databases
2019-03-28T08:12:29.5000988Z Version      : 1.2.5
2019-03-28T08:12:29.5001489Z Author       : Jan Pieter Posthuma
2019-03-28T08:12:29.5002069Z Help         : [More Information](https://github.com/liprec/vsts-deploy-aas)
2019-03-28T08:12:29.5002695Z ==============================================================================
2019-03-28T08:12:34.4750218Z Added TLS 1.2 in session.
2019-03-28T08:12:42.7285736Z ##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.13.1\AzureRM.psd1 -Global
2019-03-28T08:12:43.6547097Z ##[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.

2019-03-28T08:12:43.7243435Z ##[section]Finishing: Deploy model to Analysis Service
liprec commented 5 years ago

The long term fix will take a bit longer: the XMLA connection to Azure Analysis Service is not that NodeJS friendly so there is more work needed before the V2 version will be there. Another goal is that the V2 version can deploy models to Power BI. But the AAS tasks have an extra option to change the Azure PowerShell version under the 'Advanced' section.

hoffe86 commented 5 years ago

Okay I found the option but which Azure PS version will work?

liprec commented 5 years ago

What version is installed on your agent? I assumed that your are using your own hosted agent.

hoffe86 commented 5 years ago

I running an own build agent with the latest version of AzureRM and PS 5.1

hoffe86 commented 5 years ago

Okay seems working. I installed the version 2.1 of AzureRM.profile and specified Version in the task.

liprec commented 5 years ago

Good to hear that it is working again for you.

farfaro commented 3 years ago

Hi! I had the same error, and this solved it... Agent: on-prem

OKK

:)

stale[bot] commented 3 years ago

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.