microsoft / microsoft/powerbi-powershell
Issue getting the connection detail from PowerBI API for Get-PowerBIDatasource
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
When we use the command Get-PowerBIDatasource -datasetid XXXXXXX -Scope Organization
The connection details doesnt fetch the shared Api connection details
Name :
ConnectionString :
DatasourceType : Sql
ConnectionDetails : Microsoft.PowerBI.Common.Api.Shared.DatasourceConnectionDetails
GatewayId : XXXXX-XXX-XXXX-XXXX-XXXXXXXX
DatasourceId : XXXXX-XXX-XXXXX-XXXX-XXXXXXXX
The Connection details is working alternatively usingREST API
GET https://api.powerbi.com/v1.0/myorg/admin/datasets/{datasetId}/datasources
as admin.The Powershell Get unfortunatly returns Microsoft.PowerBI.Common.Api.Shared.DatasourceConnectionDetails for all types of sources
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing Get-PowerBIDatasource -DatasetId XXXXXXX -Scope Organization and compare its ConnectionDetails output with GET https://api.powerbi.com/v1.0/myorg/admin/datasets/{datasetId}/datasources as an administrator. Trace how the cmdlet maps the REST response for SQL and shared API connections; done means the cmdlet returns the actual connection details instead of Microsoft.PowerBI.Common.Api.Shared.DatasourceConnectionDetails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100