This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
We get an error in powershell with "invoke-RestMethod" on "https://api.powerbi.com/v1.0/myorg/admin/groups."
$groups = Invoke-RestMethod -Uri $urigroups –Headers $authHeader –Method GET –Verbose
VERBOSE: GET https://api.powerbi.com/v1.0/myorg/admin/groups with 0-byte payload
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At line:2 char:11
+ $groups = Invoke-RestMethod -Uri $urigroups –Headers $authHeader –Method GET –Ve ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
On "https://api.powerbi.com/v1.0/myorg/admin/datasets" we do not receive an error:
VERBOSE: GET https://api.powerbi.com/v1.0/myorg/admin/datasets with 0-byte payload
VERBOSE: received -1-byte response of content type application/json; odata.metadata=minimal; odata.streaming=true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.