你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagementGroupAssignmentsExtentions.CreateOrUpdateInManagementGroupAsync 方法

定义

在管理组中创建或更新蓝图分配。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment> CreateOrUpdateInManagementGroupAsync (this Microsoft.Azure.Management.Blueprint.IAssignmentsOperations operations, string managementGroupName, string assignmentName, Microsoft.Azure.Management.Blueprint.Models.Assignment assignment, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateInManagementGroupAsync : Microsoft.Azure.Management.Blueprint.IAssignmentsOperations * string * string * Microsoft.Azure.Management.Blueprint.Models.Assignment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment>
<Extension()>
Public Function CreateOrUpdateInManagementGroupAsync (operations As IAssignmentsOperations, managementGroupName As String, assignmentName As String, assignment As Assignment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Assignment)

参数

operations
IAssignmentsOperations

此扩展方法的操作组。

managementGroupName
String

将保存分配的管理组的名称。

assignmentName
String

工作分配的名称。

assignment
Assignment

要保存的赋值对象。

cancellationToken
CancellationToken

取消标记。

返回

适用于