concept

Azure schema and resource scope

Interpret ARM resource IDs and review Azure network ownership and schema.

Formal Syntax & Structure

terraform syntaxterraform
Azure schema and resource scope

Working Example

Example Snippetterraform
# Static AzureRM fragment; requires the provider configuration above.resource "azurerm_resource_group" "lab" {  name     = "rg-catalog-dev"  location = "westeurope"}resource "azurerm_virtual_network" "lab" {  name                = "vnet-catalog-dev"  resource_group_name = azurerm_resource_group.lab.name  location            = azurerm_resource_group.lab.location  address_space       = ["10.60.0.0/16"]}resource "azurerm_subnet" "app" {  name                 = "app"  resource_group_name  = azurerm_resource_group.lab.name  virtual_network_name = azurerm_virtual_network.lab.name  address_prefixes     = ["10.60.10.0/24"]}
Terraform Reference