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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
RichCross
Regular Visitor

Disable multiple eventstreams

Hello

 

Is there a way to disable multiple evenstreams in one go rather than having to go into each one and deactivate manually?

 

I'm basically looking to get some code to run if at all possible.

 

Thanks

1 ACCEPTED SOLUTION
svelde
Super User
Super User

Hello @RichCross 

 

Welcome to this Microsoft Fabric community forum.

 

The Fabric UX does not offer a solution for pausing all Eventstreams at once.

 

If you want to do it by hand, you need to open each eventstream yourself and deactivate all sources and destinations.

 

An alternative is pausing the capacity. Then, all eventstreams are paused. You need to activate each event stream sources and destinations by hand when you start the capacity again.

 

Fabric offers automation via the Rest API, including a call to pause eventstreams.   

 

I wrote this powershell script to execute this command. See this GitHub Repo for the script and how to call it.

 

You can call it for one workspace or multiple.

 

It is tested on this workspace via the command line:

 

svelde_0-1782936282934.png

 

It iterated through all eventstream in the workspace and paused each one.

 

Notice that you need to sign in to Fabric first.

 

---

 

If this answer helps you, marking it as the accepted answer is appreciated. All community members with similar questions will benefit by doing so. Your contribution is highly appreciated.
 

 

-------------------------
Ask me about IoT&RTI

View solution in original post

2 REPLIES 2
svelde
Super User
Super User

Hello @RichCross 

 

Welcome to this Microsoft Fabric community forum.

 

The Fabric UX does not offer a solution for pausing all Eventstreams at once.

 

If you want to do it by hand, you need to open each eventstream yourself and deactivate all sources and destinations.

 

An alternative is pausing the capacity. Then, all eventstreams are paused. You need to activate each event stream sources and destinations by hand when you start the capacity again.

 

Fabric offers automation via the Rest API, including a call to pause eventstreams.   

 

I wrote this powershell script to execute this command. See this GitHub Repo for the script and how to call it.

 

You can call it for one workspace or multiple.

 

It is tested on this workspace via the command line:

 

svelde_0-1782936282934.png

 

It iterated through all eventstream in the workspace and paused each one.

 

Notice that you need to sign in to Fabric first.

 

---

 

If this answer helps you, marking it as the accepted answer is appreciated. All community members with similar questions will benefit by doing so. Your contribution is highly appreciated.
 

 

-------------------------
Ask me about IoT&RTI

Hi @svelde 

 

The Fabric API to pause eventstreams was exactly what I was after. 

 

Thanks you so much!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Fabric Update Carousel

Fabric Monthly Update - July 2026

Check out the July 2026 Fabric update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Top Solution Authors