ResourceGroup Constructor

Definition

Initializes a new instance of the ResourceGroup.

public ResourceGroup (Azure.Provisioning.IConstruct scope, string? name = "rg", string version = "2023-07-01", Azure.Core.AzureLocation? location = default, Azure.Provisioning.ResourceManager.Subscription? parent = default);
new Azure.Provisioning.ResourceManager.ResourceGroup : Azure.Provisioning.IConstruct * string * string * Nullable<Azure.Core.AzureLocation> * Azure.Provisioning.ResourceManager.Subscription -> Azure.Provisioning.ResourceManager.ResourceGroup
Public Sub New (scope As IConstruct, Optional name As String = "rg", Optional version As String = "2023-07-01", Optional location As Nullable(Of AzureLocation) = Nothing, Optional parent As Subscription = Nothing)

Parameters

scope
IConstruct

The scope the resourceGroup belongs to.

name
String

The name of the resourceGroup.

version
String

The version of the resourceGroup.

location
Nullable<AzureLocation>

The location of the resourceGroup.

parent
Subscription

The parent of the resourceGroup.

Applies to