microsoft / microsoft/powerbi-powershell

Get-PowerBIReport -Workspace vs -WorkspaceId parameters

Open
#327 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

What's the difference? I can use -WorkspaceId with the guid no problem, but if I use -Workspace with a named workspace like 'MyWorkspace' then I get an error:

Get-PowerBIReport : Cannot bind parameter 'Workspace'. Cannot convert the "MyWorkspace" value of type "System.String" to type
"Microsoft.PowerBI.Common.Api.Workspaces.Workspace".

It obviously doesn't like the datatype as string, do I strongly type it as 'Workspace' ?

TIA

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Get-PowerBIReport command entry point and compare the -Workspace and -WorkspaceId parameters, reproducing the reported conversion error with a named workspace. Done means the expected distinction and accepted input types are established, with the command behavior or its documentation clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.