@Quirin, Antoine - Thanks for the question and using MS Q&A platform.
Unfortunately, you can't create Azure Data Explorer dashboards programatically.
For more details, refer to Visualize data with Azure Data Explorer dashboards and Create dashboards in Azure Data Explorer
Appreciate if you could share the feedback on our feedback channel. Which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.