Skip to main content
Providers

ResourceGroup

A resource of the Azure provider, version 0.3.0, in its Core group. Import it with:

import ResourceGroup from "azure/core"

Example

resource ResourceGroup example {
    name     = "example-value"
    location = "example-value"
    tags     = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoThe name of the resource group. Must be unique within the subscription
locationstring—NoThe Azure region/location (e.g., eastus, westeurope)
tagsobject—NoTags to apply to the resource group

Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
idstringYesThe Azure resource ID of the resource group
provisioningStatestringNoThe provisioning state of the resource group

On this page