How to connect with multiple kusto cluster and add users with reader permission?

Microsoft

I have to add appid and tenant id to grant permission to the application and we have almost 38 public kusto clusters.

I would like to automate this process so i don't have connect the cluster each time and run the below command everytime:

.add database [db_name] viewers('aadapp=APP_GUID_HERE;tenant_id here') "TEAM_NAME_HERE"

is there a way, i can write a script which connect to all 38 clusters one by one and run the above command?

0 Replies