PowerShell - Writing data directly to Azure Data Explorer with REST
The following script provides an example of directly writing to an Azure Data Explorer table using Powershell. For resiliency, the preference for ADX data ingest remains a data connection against an Event Hub (Kafka) but there can be situations where ad-hoc writing is needed.
Prerequisites
Streaming ingestion must be enabled on the cluster level of ADX. This may be done through the portal under Settings -> Configurations.