---
title: "ARM - Create Resource Group"
canonical: "https://www.virtcloudrocks.com/space/azure/557070/ARM%20-%20Create%20Resource%20Group"
format: markdown
---
## ARM Template

```json
{
  "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "rgName": {
      "type": "string"
    },
    "rgLocation": {
      "type": "string"
    }
  },
  "variables": {},
  "resources": [
    {
      "type": "Microsoft.Resources/resourceGroups",
      "apiVersion": "2018-05-01",
      "name": "[parameters('rgName')]",
      "location": "[parameters('rgLocation')]",
      "properties": {}
    }
  ],
  "outputs": {}
}
```

##   
Create Resource Group

```powershell
$location = 'EAST US'

New-AzSubscriptionDeployment `
 -Location $location `
  -Name az30308subaDeployment `
   -TemplateFile $HOME/azuredeploy30308suba.json `
    -rgLocation $location `
     -rgName 'az30308a-labRG'
```