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

EncryptConnection is required #50

Closed ValekMal closed 3 years ago

ValekMal commented 3 years ago

The credentials we have in source control is OAuth2. When deploying this model this code "carries on" the encrypt connection flag and authentication kind from the source code.

$credential.credential.EncryptConnection = $dataSource.credential.EncryptConnection $credential.credential.AuthenticationKind = $dataSource.credential.AuthenticationKind

But we need it to be changed to:

"AuthenticationKind": "UsernamePassword" "EncryptConnection": true

Without this processing of the AAS model fails with the message

"message": "An error occurred during On-Premise Gateway related activity. Additional error details: DM_GWPipeline_Gateway_MashupDataAccessError\r\nReceived error payload from gateway service with ID *: MashupException encountered while accessing the target data source..\r\nMashupException encountered while accessing the target data source.\r\nThe given credential contains a property with a null value. Data source kind: SQL. Property name: EncryptConnection**. \r\n.",

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.