I have a requirement to kill the active sessions currently running on Azure Analysis Services which are consuming high QPU and are running for more than 5 minutes.
I came across below article : which does similar thing and it's a manual process but I need help in understanding how can I setup an automated process which can proactively identify and kill such connections.
Appreciate any leads.
To make it work automatically, you can use either PowerShell or log analytics Kql query which is detailed below.
Disconnect sessions MS Doc.
PowerShell:
KQL: (Log analytics workspace)
Sample query for your requirement looks like below: