79202816

Date: 2024-11-19 09:29:40
Score: 3
Natty:
Report link

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.

enter image description here

Below is the other cluster clusterpb04 where no data has stored in it.

enter image description here

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: enter image description here

For more information, please refer to this link by @Sander van de Velde.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Sander
  • Starts with a question (0.5): Is there a
Posted by: Balaji