Hands-On Cloud Solutions with Azure
上QQ阅读APP看书,第一时间看更新

Creating resources in the Azure Portal

Before we look at using ARM templates, let’s review how we create our resources within the portal and we will also see how we can get the automation scripts to help with our ARM templates and PowerShell script. We will walk through creating a VM in Azure with the following steps:

  1. Log into the Azure portal (https://portal.azure.com/)
  2. Once logged in, you can click + Create a resource, select the resource you would like to create, and then fill in the required information.
  1. Once it has been created, head over to the resource and scroll down to Automation script. There you will find your PowerShell and JSON template files that you can download and include in a Visual Studio project. You will need to modify the parameters and such, but it’s really a great starting place: 

This was helpful to me, as I was able to visualize the code to better understand it. Now let’s move on to the JSON and PowerShell ARM templates.