Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
While running below command in PowerShell:
Invoke-PowerBIRestMethod -Url "/admin/groups?$filter=state eq 'Deleted'&$top=10" -Method Get
I am recieving below error:
Invoke-PowerBIRestMethod : One or more errors occurred.
At line:1 char:1
+ Invoke-PowerBIRestMethod -Url "/admin/groups?$filter=state eq 'Delete ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMe
thod], AggregateException
+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod
I am not entirely sure why this error is coming up? Any Ideas?
Thanks in advance!
Regards,
Max
Solved! Go to Solution.
I was able to find a solution:
$URI = '/admin/groups?$top=50&' + '$filter=type ne' + " 'Workspace'" + ' and state eq' + " 'Deleted'"
Invoke-PowerBIRestMethod -Url $URI -Method Get
Regards,
Max
I was able to find a solution:
$URI = '/admin/groups?$top=50&' + '$filter=type ne' + " 'Workspace'" + ' and state eq' + " 'Deleted'"
Invoke-PowerBIRestMethod -Url $URI -Method Get
Regards,
Max
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.