Error while adding DataSource in powerbi gateway using power shell

365 Views Asked by At

I am using powershell for .pbix to deployment in workspaces. As part of that i need to create SQL datasource under gateway for further use. I am using powerbI rest API with service principle : https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/create-datasource

Here is link for sample we can use in powershell: https://community.powerbi.com/t5/Developer/Power-BI-REST-API-via-Powershell-Create-Datasource/m-p/511934

I hope someone can help me here. Thanks in advance.

I am getting thiserror: | Encountered errors when invoking the command: {   "code": "DM_GWPipeline_UnknownError",   "pbi.error": {     "code": "DM_GWPipeline_UnknownError",        | "parameters": {},     "details": [       {         "code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",         "detail": {           "type": 1,     | "value": "The parameter is incorrect.\r\n"         }       },       {         "code": "DM_ErrorDetailNameCode_UnderlyingHResult",         "detail": {     | "type": 1,           "value": "-2146893785"         }       }     ],     "exceptionCulprit": 1   } }

0

There are 0 best solutions below