microsoft / microsoft/powerbi-powershell
New-PowerBI Report giving error code 401 (Unauthorized)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
While uploading new report using New-PowerBIReport command, I am getting error code 401 (Unauthorized).
-
Datasource settings are as follows.
-
Deployment of same report works fine if I use SSAS hosted onprem.
-
I am using a SP that has admin permission on the workspace and the admin API's are enabled
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 with the New-PowerBIReport command and reproduce the 401 using the stated service principal, workspace permissions, admin API settings, and datasource configuration. Compare the failing cloud deployment with the working on-premises SSAS deployment; done means identifying the authentication failure and documenting or correcting the required configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api, authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100