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

PublishedBlueprintsOperationsExtensions.CreateAsync 方法

定义

使用最新项目发布新版本的蓝图定义。 已发布的蓝图定义是不可变的。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.PublishedBlueprint> CreateAsync (this Microsoft.Azure.Management.Blueprint.IPublishedBlueprintsOperations operations, string resourceScope, string blueprintName, string versionId, Microsoft.Azure.Management.Blueprint.Models.PublishedBlueprint publishedBlueprint = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Blueprint.IPublishedBlueprintsOperations * string * string * string * Microsoft.Azure.Management.Blueprint.Models.PublishedBlueprint * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.PublishedBlueprint>
<Extension()>
Public Function CreateAsync (operations As IPublishedBlueprintsOperations, resourceScope As String, blueprintName As String, versionId As String, Optional publishedBlueprint As PublishedBlueprint = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PublishedBlueprint)

参数

operations
IPublishedBlueprintsOperations

此扩展方法的操作组。

resourceScope
String

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

blueprintName
String

蓝图定义的名称。

versionId
String

已发布蓝图定义的版本。

publishedBlueprint
PublishedBlueprint

已发布要创建或更新的蓝图。

cancellationToken
CancellationToken

取消标记。

返回

适用于