microsoft / microsoft/powerbi-powershell
Get-PowerBIReport -Workspace vs -WorkspaceId parameters
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
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 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