Is there a way to call a Kusto function when connected to a different cluster from the one where the function resides?
Yes, you can call Kusto function which is present in another cluster. Try with the below code, it successfully connects with the other cluster and retrieves data stored from the other cluster.
Below is the function GetStaticData() stored in clusterpb03
.
Below is the other cluster clusterpb04
where no data has stored in it.
Try with the below code to retrieve data from clusterpb03.
cluster('https://clusterpb03.eastus.kusto.windows.net').database('db1').GetStaticData
| project CustomerId, CustomerName, Region
Output:
For more information, please refer to this link by @Sander van de Velde.