Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
campelliann
Post Patron
Post Patron

PowerBI Embedded - start/stop Capacity Script

Hi there,


I am not  a developer, knowing only the very basics of python. How complex is it to write a script in order to automatically start/stop Power BI embedded capacity, based on User activity on the dashboards?
Are there any examples?

Many thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @campelliann,

I'm not so clear about your description, can you please share some more detail about your requirement?

How to Get Your Question Answered Quickly  

If you mean dynamic turn on/off the embed content usages, you only need to control the access token and not renew it, then this content should not able to be viewed after the token expired.

If you mean to do some operations with capacity, I'd like to suggest you take a look at the capacity APIs which list all supported operations on capacity :

Capacities - REST API (Azure Power BI Embedded) | Microsoft Docs

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
campelliann
Post Patron
Post Patron

@Anonymous one quick question which no one seems to know about licensing. Is it possible to create a shared account like finance@enterprise.com and have several people accessing the same PRO account. 

Many thanks

Anonymous
Not applicable

HI @campelliann,

I'm not so clear about your description, can you please share some more detail about your requirement?

How to Get Your Question Answered Quickly  

If you mean dynamic turn on/off the embed content usages, you only need to control the access token and not renew it, then this content should not able to be viewed after the token expired.

If you mean to do some operations with capacity, I'd like to suggest you take a look at the capacity APIs which list all supported operations on capacity :

Capacities - REST API (Azure Power BI Embedded) | Microsoft Docs

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.