Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JulienRouleau
Regular Visitor

PowerShell module for PowerBi : Is it possible to use it in write mode with a service principal ?

Hi all,

After unsuccessull tests, i'd like to know if a service principal can use the powershell module 

MicrosoftPowerBIMgmt in write mode ? I didn't find any doc.

Indeed, i try to rename workspaces but i always get an "unauthorized" message in powerShell authenticated via my service principal. The same command with my personnal account is ok. Both my account and my service principal are PowerBi Admin. Read-only api option is activated in PowerBi service.

 

 

 

Set-PowerBIWorkspace -Scope Organization -Id 1efe3ca9-62dd-4b63-bca4-8eb433f8f0ff -Name NewName -Description "Test" -ErrorAction Stop
WARNING: Only preview workspaces are supported when -Scope Organization is specified
Set-PowerBIWorkspace: Operation returned an invalid status code 'Unauthorized'

 

 

 

Read data is possible and works fine for my service principal.

 

Any idea ?

 

Thanks 😉

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.