ResourceGroup Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET