It's free to use the Azure CLI, but the Event Hub will cost as soon as it is provisioned, regardless of whether it is deployed by CLI or the Azure Portal.
https://azure.microsoft.com/pricing/details/event-hubs/?WT.mc_id=AZ-MVP-5004796
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
If I create the Event hub and Event namespace by using the Azure CLI , Is the cost will be consumed?
It's free to use the Azure CLI, but the Event Hub will cost as soon as it is provisioned, regardless of whether it is deployed by CLI or the Azure Portal.
https://azure.microsoft.com/pricing/details/event-hubs/?WT.mc_id=AZ-MVP-5004796