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,
I'm trying to figure out how many embed trial tokens there's left on our shared capacity.
I use Postman to call the GET https://api.powerbi.com/v1.0/myorg/availableFeatures(featureName='embedTrial') API, passing the bearer token in the Authorization header. but get an error message saying the server isn't responding.
Here's the request as intercepted in the Postman Console :
I'm assuming you need to pass other parameters like a client_id or the AD Tenant ID but cannot find anything in the documentation nor any examples of the correct syntax.
Any help would be greatly appreciated.
Franck
@franck_axires - This is not exactly what you are asking, but I used the PowerShell cmdlets to avoid the authentication questions with PostMan. After getting PowerShell set up, you install the cmdlets with:
Install-Module -Name MicrosoftPowerBIMgmt
Then you can do an interactive login with the command. You have to follow a URL in the browser to do a device login.
Login-PowerBI
Then I ran this command to pull the available features value:
Invoke-PowerBIRestMethod -Url 'availableFeatures' -Method Get
My result looks like this:
{
"@odata.context":"http://wabi-us-east2-redirect.analysis.windows.net/v1.0/myorg/$metadata#Microsoft.PowerBI.ServiceContracts.Api.AvailableFeatures","features":[
{
"name":"cdsa","state":"Enabled","extendedState":"Enabled"
},{
"name":"embedTrial","state":"Enabled","extendedState":"Enabled","additionalInfo":{
"usage":75
}
},{
"name":"automaticallyPushAppToEndUsers","state":"Enabled","extendedState":"Enabled"
},{
"name":"publishAppToEntireOrganization","state":"Enabled","extendedState":"Enabled"
}
]
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.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |