共用方式為


IWithGroup.WithNewResourceGroup Method

Definition

Overloads

WithNewResourceGroup(ICreatable<IResourceGroup>)

Creates a new resource group to put the resource in, based on the definition specified.

WithNewResourceGroup(String, Region)

Creates a new resource group to put the deployment in.

WithNewResourceGroup(ICreatable<IResourceGroup>)

Creates a new resource group to put the resource in, based on the definition specified.

public Microsoft.Azure.Management.ResourceManager.Fluent.Deployment.Definition.IWithTemplate WithNewResourceGroup (Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup> groupDefinition);
abstract member WithNewResourceGroup : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup> -> Microsoft.Azure.Management.ResourceManager.Fluent.Deployment.Definition.IWithTemplate
Public Function WithNewResourceGroup (groupDefinition As ICreatable(Of IResourceGroup)) As IWithTemplate

Parameters

groupDefinition
ICreatable<IResourceGroup>

groupDefinition a creatable definition for a new resource group

Returns

the next stage of the deployment definition

Applies to

WithNewResourceGroup(String, Region)

Creates a new resource group to put the deployment in.

public Microsoft.Azure.Management.ResourceManager.Fluent.Deployment.Definition.IWithTemplate WithNewResourceGroup (string name, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region region);
abstract member WithNewResourceGroup : string * Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region -> Microsoft.Azure.Management.ResourceManager.Fluent.Deployment.Definition.IWithTemplate
Public Function WithNewResourceGroup (name As String, region As Region) As IWithTemplate

Parameters

name
String

name the name of the new group

region
Region

region the region to create the resource group in

Returns

the next stage of the deployment definition

Applies to