I am not a developer. I am more of an infrastructure apps person with decent PowerShell. I do have history with .NET & Java but that was a lifetime ago.
Powershell is still experimental for http-triggered Azure Functions for example, but for cosmosDB-triggered, it is not even an option in the portal as of yet. I have been able to write an http-triggered function in powershell that runs AD cmdlets against an Active Directory instance in Azure. The cmdlets to AD read and write operations.
The goal is to achieve same with a CosmosDB-triggered function.
Q1. Is there a way to write a CosmosDB-triggered function in PowerShell?
Q2. If the only options available remain C#/JavaScript, how can I achieve AD read/write natively in those languages or better, call a PowerShell function that has been uploaded to the Azure function's directory using Kudu/FTP?