B
Beacon Globe News

Class ResourceGroup | Azure SDK for Net

Author

Christopher Ramos

Published Feb 16, 2026

Resource group information.

Inheritance

ResourceGroup

Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.ResourceManager.dll
Syntax
public class ResourceGroup : Microsoft.Rest.Azure.IResource

Constructors

ResourceGroup()

Initializes a new instance of the ResourceGroup class.

Declaration
public ResourceGroup ();

ResourceGroup(String, String, String, String, ResourceGroupProperties, String, IDictionary<String,String>)

Initializes a new instance of the ResourceGroup class.

Declaration
public ResourceGroup (string location, string id = null, string name = null, string type = null, Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupProperties properties = null, string managedBy = null, System.Collections.Generic.IDictionary<string,string> tags = null);
Parameters
String location

The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations.

String id

The ID of the resource group.

String name

The name of the resource group.

String type

The type of the resource group.

ResourceGroupProperties properties

The resource group properties.

String managedBy

The ID of the resource that manages this resource group.

IDictionary<String,String> tags

The tags attached to the resource group.

Properties

Id

Gets the ID of the resource group.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="id")]
public string Id { get; }
Property Value

Location

Gets or sets the location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="location")]
public string Location { get; set; }
Property Value

ManagedBy

Gets or sets the ID of the resource that manages this resource group.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="managedBy")]
public string ManagedBy { get; set; }
Property Value

Name

Gets the name of the resource group.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="name")]
public string Name { get; }
Property Value

Properties

Gets or sets the resource group properties.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties")]
public Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupProperties Properties { get; set; }
Property Value

Tags

Type

Gets the type of the resource group.

Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="type")]
public string Type { get; }
Property Value

Methods

Validate()

Validate the object.

Declaration
public virtual void Validate ();
Exceptions