Hi,
Can you provide what is the Onpremise AD Template you are using? If you are looking to replicate that Template to Azure, directly it is not possible you will have to manually create in the Portal as per the link.
However there are third party software and tools you can use such as Quest Active Roles that assist but that is a Licensed product.
============
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.