I would like to deploy the same architecture pattern like this one using ARM templates. I have achieved almost the whole model, but I have a challenge connecting Event Hub with Event Grid. In the 4th point you can see how to create a subscription in Event Grid in a way, that Event Hub sends events to the specific Event Grid's topic.
To do it via Portal you just need to follow the steps. But how to do it automatically? For Example, using ARM templates. I have been able to find a reference how do create a regular topic, but I couldn't find any information how to create an Event Hub Namespace topic in ARM.