共用方式為


ManagementGroupsOperationsExtensions.BeginCreateOrUpdateAsync Method

Definition

Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.

public static System.Threading.Tasks.Task<object> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations operations, string groupId, Microsoft.Azure.Management.ManagementGroups.Models.CreateManagementGroupRequest createManagementGroupRequest, string cacheControl = "no-cache", System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.ManagementGroups.IManagementGroupsOperations * string * Microsoft.Azure.Management.ManagementGroups.Models.CreateManagementGroupRequest * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IManagementGroupsOperations, groupId As String, createManagementGroupRequest As CreateManagementGroupRequest, Optional cacheControl As String = "no-cache", Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

operations
IManagementGroupsOperations

The operations group for this extension method.

groupId
String

Management Group ID.

createManagementGroupRequest
CreateManagementGroupRequest

Management group creation parameters.

cacheControl
String

Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to