Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have Power BI administrator role in my organization. I want to view how many workspaces have been created, therefore I was running the simple below Powershell script :
Login-PowerBIServiceAccount
$groups = Get-PowerBIGroup -Scope Organization -All
$groups
While running the script I am getting error below error:
Am I missing any other admin rights to extract the information of Power BI Service ?
Hi @Anonymous,
I think Watsky means the general organization and gov/national organization. The gov/national should be different from the common organization.
In addition, the rest API is required to enable the permissions. Have you checked the account include the corresponding permissions and scopes that API required?
Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Docs
Microsoft identity platform scopes, permissions, & consent | Microsoft Docs
Regards,
Xiaoxin Sheng
Hi @Watsky ,
Thank you for the reply. Can you explain what is "regular commercial environment" ? And how do I know what are options we have for -Environment similar to "USGov" ?
Regards,
ankbaner
When you log into the Power BI service what is the url that you're connecting to? Is it app.powerbi.com or is it something else? These are the options as show via Power Shell:
Proud to be a Super User!
Hi @Watsky ,
Yes I am connecting to app.powerbi.com from Finland. I tried 3 options from "-Environment" i.e. Custom, Germany and Public but neither of the options worked.
Hey @Anonymous ,
One (1) thought, do you work in the regular commerical environment? If your tenant is not in the regular commerical Power BI environment then you would need to set your environment. For instance, I work in GCC so I have to set my environment as such:
Login-PowerBIServiceAccount -Environment USGov
Proud to be a Super User!
User | Count |
---|---|
14 | |
6 | |
2 | |
2 | |
2 |
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |