Forum Discussion
The request body must contain the following parameter: 'client_secret or client_assertion'.
Any idea whats wronge here?
AlexHolmeset wrote:
Any idea whats wronge here?
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.
5 Replies
- Eric_Zhang
Microsoft Employee
AlexHolmeset wrote:
Any idea whats wronge here?
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.
- AlexHolmeset
Helper III
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
- AlexHolmeset
Helper III
Worked when using using Native app. Thanks.