- Learn Azure Administration
- Kamil Mrzyg?ód
- 456字
- 2021-06-11 18:14:31
Other tools
ARM templates are not the only way to manage resources via ARM. There are external tools that you can consider if you find this particular feature cumbersome or counterproductive. These tools are as follows:
- Azure Fluent: A set of helpful SDKs that enable you to programmatically call ARM APIs to provision resources. They are written for multiple different platforms (.NET, Java, Python, or Node.js).
- Terraform: A tool by HashiCorp where you use a YAML file to describe your infrastructure.
- Pulumi: A new project where you can use TypeScript, Go, or Python to write scripts that describe your infrastructure.
Once you have your template prepared, you probably want to deploy it. The easiest way to do so is to use the CLI. The following is an example of the command required to deploy the template we created earlier:
az group deployment create --name <name-of-a-deployment> --resource-group <name-of-rg> --template-file <name-of-your-file>.json
The preceding command will create a new deployment with a specific name and use a particular template file. Of course, if your template accepts parameters, you can pass them using the --parameters switch:
az group deployment create --name <name-of-a-deployment>--resource-group <name-of-rg> --template-file <name-of-your-file>.json --parameters storageAccountType=Standard_GRS
Once the deployment is finished, you should see a JSON file that represents the serialized output of the operation. Each deployment can be found in the Deployments blade of your resource group:

With ARM templates, you can quickly provision your infrastructure in any region available in Azure. As it is a native way of deploying resources in Azure, it is important to understand at least the basic features of this functionality so that you can quickly multiply required services. To better understand the advanced topics (such as conditional statements, functions, and linked templates), take a look at the following link: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax. It contains a full description of the syntax and its structure.
Although JSON templates are often a recommended way of managing resources in Azure, do not forget about alternatives. Azure Fluent, Terraform, and Pulumi can be really interesting propositions, especially if you are working with IaaS architectures.
Deciding which tool is the best for you relies solely on your actual requirements. In many setups, a mix of available tools will give the best results. The next section will help you enhance your deployments by introducing locks, which help in preventing accidental deletion of resources or changes in their configuration.
- 汪博士詳解PMP?模擬題(第4版)
- Magento 2 Cookbook
- 基于價值增值的治理導向型內部審計研究
- Metabase Up and Running
- 企業能源審計與節能規劃
- 審計實務案例與實訓教程
- Microsoft System Center Data Protection Manager 2012 SP1
- 振蕩指標MACD:波段操作精解(升級版)
- IBM SPSS Modeler Cookbook
- 陜西國家統計調查市、縣優秀報告集萃(2006—2015)(上下)
- Programming Microsoft Dynamics NAV(Fifth Edition)
- 行政單位經濟責任審計實務指南
- Implementing VMware Horizon 7.7
- 內部控制審計功能與質量
- 統計學視角下的金融高頻數據挖掘理論與方法研究