There are several ways to create Azure Resource Manager (ARM) templates:
- Manual authoring: This involves writing the template in a text editor or integrated development environment (IDE) using JSON or YAML. This method allows for full control over the template and is best suited for complex deployments or custom scenarios.
- Visual Studio: Visual Studio provides a rich development environment for creating, editing, and debugging ARM templates. It also has built-in JSON and YAML support, and you can use it to author and deploy templates directly to Azure.
- Azure Resource Manager Tools for Visual Studio Code: This is a lightweight option that allows you to create and deploy templates using Visual Studio Code, a free and open-source code editor.
- Azure Resource Manager Template (ARM) Visual Studio Extension: This is a visual studio extension that allows you to create, edit and deploy ARM templates. It also provides intellisense and validation for the templates.
- Azure Quickstart Templates: This is a collection of templates provided by Microsoft and the community that can be used as a starting point for your deployments. They can be found on GitHub https://github.com/Azure/azure-quickstart-templates.
- ARM Template generator: There are few websites that have an online template generator tool, where you can select the resources and provide the parameter details, the generator will generate the template for you.
You can choose the method that best suits your needs, depending on your experience level, the complexity of the deployment, and the tools you are already using.
You can quickly deploy them using following options:
- Azure Portal: The Azure Portal provides a visual interface for creating and deploying templates. You can use the “Deploy a custom template” feature to create a template by specifying the resources and their settings, and then deploying it to Azure.
- Azure CLI: The Azure CLI is a command-line tool that allows you to create and deploy templates by running commands.
- Azure PowerShell: Azure PowerShell is a PowerShell module that allows you to create and deploy templates by running PowerShell commands.