Deploying resource groups with ARM templates
In this section, an ARM template will be authored and deployed, which will create a couple of resource groups within the same subscription.
To use PowerShell to deploy templates that contain resource groups and cross-subscription resources, the latest version of PowerShell should be used. At the time of writing, Azure module version 3.3.0 is being used:
Figure 15.2: Verifying the latest Azure module version
If the latest Azure module is not installed, it can be installed using the following command:
install-module  -Name az  -Force
It's time to create an ARM template that will create multiple resource groups within the same subscription. The code for the ARM template is as follows:
{  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",  "contentVersion": "1.0.0.0", ...