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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
AlexHolmeset
Helper III
Helper III

The request body must contain the following parameter: 'client_secret or client_assertion'.

Any idea whats wronge here?

pweorbi.png

 

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee


@AlexHolmeset wrote:

Any idea whats wronge here?

pweorbi.png

 


@AlexHolmeset

What type is the AAD registered Application in your case? If the clientId is from a "Server-side Web app", then specify an extra option -clientsercet. Otherwise register a "Native app" and use the clientid alone.

 

See Register with the Power BI App Registration Tool

View solution in original post

4 REPLIES 4
Eric_Zhang
Employee
Employee


@AlexHolmeset wrote:

Any idea whats wronge here?

pweorbi.png

 


@AlexHolmeset

What type is the AAD registered Application in your case? If the clientId is from a "Server-side Web app", then specify an extra option -clientsercet. Otherwise register a "Native app" and use the clientid alone.

 

See Register with the Power BI App Registration Tool

I have registered it as a server-side web app. -Clientsecret is not a availible paramter for the Connect-powerbi commandlet. Il see if i can register as a native app.

What im trying to achieve is to connect/work with PowerBi trough powershell.

 

https://www.powershellgallery.com/packages/Microsoft.PowerBI.PowerShell/1.2

Worked when using using Native app. Thanks.

As the Azure App Registration UI is changed from legacy.

So you need to enable the addition setting called Default Client Type to Yes 

 

Capture2.JPG

 

to make sure your native app will works.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.