Hi Devesh,
Gratitude for your understanding.
We've reached out to the content author and received confirmation that they have revised the script.
Please feel free to contact us if you have any additional questions.
I will probably just remove the content and add a pointer to this learning path - Analyze monitoring data with Kusto Query Language - Training | Microsoft Learn. This monitoring module was not intended to provide in-depth coverage of KQL. This was just supposed to be a simple example, so I'll likely remove it.
If you've found the provided answer helpful, please click the "Accept Answer/Upvote" button. This will be beneficial to other members of the Microsoft Q&A forum community.
Thank you.