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 6.6.0 was used:
If the latest Azure module is not installed, it can be installed using the command as follows:
install-module -Name Azurerm -Force
Now, it's time to create an ARM template that will create multiple Resource groups within same subscription. The code for ...