This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is now in read-only for platform upgrade. Learn more
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
Solved! Go to Solution.
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:
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.
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:
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.