
Explanation
1) Create RG , and then deploy a web app to the RG
2) From the Automation script blade of the RG , click "Add to Library"
3) From the Templates service, select the template, and then share the template to the web admins Scenario: Web administrators will deploy Azure web apps for the marketing department. Each web app will be added to a separate resource group. The initial configuration of the web apps will be identical. The web administrators have permission to deploy web apps to resource groups.
References:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-quickstart-create-templates-us