Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi!
I'm trying to refresh dataset using REST API (using this example: https://github.com/Azure-Samples/powerbi-powershell/blob/master/manageRefresh.ps1)
Howere I've got an error:
$uri = "https://api.powerbi.com/v1.0/$groupsPath/datasets/$datasetID/refreshes"
Invoke-RestMethod -Uri $uri -Headers $authHeader -Method POST -Verbose
Invoke-RestMethod : {"error":{"code":"UserNotLicensed","message":"User is not licensed for Power BI"}}
The user used for operation has trial Pro license. Is it limitations of Trial ?
Solved! Go to Solution.
Hi @v-jiascu-msft,
actually i've solved this problem. Had to use Python to use REST API, powershell example don't work for me.
Hi @Anonymous,
There isn't such a limitation to Pro Trail account. I would suggest you check these things below.
1. Use exactly the same user who can log in Power BI.
2. Register your app in the same tenant with Power BI, which couldn't be like this: onmicrosoft.com and yourdomain.com.
3. Did you grant the permission in the Azure? You need to click the "Grant Permission" button explicitly.
4. The user should have the Edit permission of the App workspace.
Best Regards,
Dale
Hi @v-jiascu-msft,
actually i've solved this problem. Had to use Python to use REST API, powershell example don't work for me.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |