Azure Powershell Function - Windows AD

Hi All,

I am looking for some resources to troubleshoot the Az Powershell Function which I have created to communicate with Windows AD using Azure Hybrid Connection Manager. I have posted my q on Microsoft Q&A and here is the link.

I would appreciate if someone could provide some insight on where I am doing wrong.

Thank you!