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

ArtifactsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新蓝图项目。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Artifact> CreateOrUpdateAsync (this Microsoft.Azure.Management.Blueprint.IArtifactsOperations operations, string resourceScope, string blueprintName, string artifactName, Microsoft.Azure.Management.Blueprint.Models.Artifact artifact, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Blueprint.IArtifactsOperations * string * string * string * Microsoft.Azure.Management.Blueprint.Models.Artifact * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Artifact>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IArtifactsOperations, resourceScope As String, blueprintName As String, artifactName As String, artifact As Artifact, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Artifact)

参数

operations
IArtifactsOperations

此扩展方法的操作组。

resourceScope
String

资源的范围。 有效作用域为:管理组 (格式:'/providers/Microsoft.Management/managementGroups/{managementGroup}') ,订阅 (格式:'/subscriptions/{subscriptionId}') 。

blueprintName
String

蓝图定义的名称。

artifactName
String

蓝图项目的名称。

artifact
Artifact

要创建或更新的蓝图项目。

cancellationToken
CancellationToken

取消标记。

返回

适用于