RMFR3 - Resource Groups

ID: RMFR3 - Category: Composition - Resource Groups

A resource module MUST NOT create a Resource Group for resources that require them.

In the case that a Resource Group is required, a module MUST have an input (scope or variable):

  • In Bicep the targetScope MUST be set to resourceGroup or not specified (which means default to resourceGroup scope).
  • For Terraform, the resource group is supplied via the parent_id variable defined by TFRMFR1. Terraform resource modules MUST NOT expose a resource_group_name (or resource_group_resource_id) variable.

Scopes will be covered further in the respective language specific specifications.