@Deepika Thanks for posting your query on Microsoft Q&A.
I followed the same steps to create a custom template on Azure Portal. I see the following:
Comparing this to what you have shared and also based on the error message, the schema version you’re using (2019-0401
) is not among the supported versions for Azure Resource Manager (ARM) templates. Please use 2014-04-01
instead and let me know the results.
If you have questions, please let me know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
Please don’t forget to "Accept Answer" and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.