terraform-azure/quickstart/101-create-resource-group
2021-07-27 18:25:12 -07:00
..
2021-07-27 18:25:12 -07:00
2021-07-27 18:25:12 -07:00
2021-07-27 18:25:12 -07:00

Create Azure resource group

This template deploys an Azure resource group.

Resources

Terraform Resource Type Description
azurerm_resource_group The resource group all resources are deployed into

Variables

Name Description
name Name of the deployment
environment The depolyment environment name (used for postfixing resource names)
location The Azure Region to deploy these resources in

Example

terraform plan -out main.tfplan

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # azurerm_resource_group.rg will be created
  + resource "azurerm_resource_group" "rg" {
      + id       = (known after apply)
      + location = "eastus"
      + name     = "sample-dev-rg"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Saved the plan to: main.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "main.tfplan"