Forum Discussion
AlexHolmeset
8 years agoHelper III
Client id?
Im trying to use the Power BI module in PowerShell: https://www.powershellgallery.com/packages/Microsoft.PowerBI.PowerShell/1.2/Content/Microsoft.PowerBI.PowerShell.psm1 But as far as i can unde...
- 8 years ago
found this one, it helped.
Eric_Zhang
8 years agoMicrosoft Employee
AlexHolmeset wrote:
Im trying to use the Power BI module in PowerShell:
But as far as i can understand, i need a onprem webap to register an app in azure and get a client ID? Im on a cloud only environment.
//Client ID is used by the application to identify themselves to the users that they are requesting permissions from. //You get the client id when you register your Azure app. {"client_id", Properties.Settings.Default.ClientID}, //Resource uri to the Power BI resource to be authorized // https://analysis.windows.net/powerbi/api {"resource", Properties.Settings.Default.PowerBiAPI}, //After user authenticates, Azure AD will redirect back to the web app {"redirect_uri", "http://localhost:13526/Redirect"}
You don't have to create any app. Just follow Register with the Power BI App Registration Tool. Do note not forgetting the step Apply permissions to your application within Azure AD
- AlexHolmeset8 years agoHelper III
Thanks, il check it out.
- AlexHolmeset8 years agoHelper III
What do i set as redirect URL and Homepage?
- AlexHolmeset8 years agoHelper III
found this one, it helped.