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

FabricClient.ClusterManagementClient.ProvisionFabricAsync 方法

定义

重载

ProvisionFabricAsync(String, String)

预配 Service Fabric。

ProvisionFabricAsync(String, String, TimeSpan, CancellationToken)

使用指定的超时和取消令牌预配 Service Fabric。

ProvisionFabricAsync(String, String)

预配 Service Fabric。

public System.Threading.Tasks.Task ProvisionFabricAsync (string patchFilePath, string clusterManifestFilePath);
member this.ProvisionFabricAsync : string * string -> System.Threading.Tasks.Task
Public Function ProvisionFabricAsync (patchFilePath As String, clusterManifestFilePath As String) As Task

参数

patchFilePath
String

更新修补程序文件的路径。

clusterManifestFilePath
String

群集清单的路径。

返回

预配的 Service Fabric。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

注解

null参数或 clusterManifestFilePath 参数允许patchFilePath使用值。 值 null 不能用于这两个参数。

这会将修补程序文件和/或群集清单文件上传到映像存储位置。 映像存储位置指定为创建群集时提供的群集清单中的配置设置。

群集清单验证将在此调用的上下文中进行。

适用于

ProvisionFabricAsync(String, String, TimeSpan, CancellationToken)

使用指定的超时和取消令牌预配 Service Fabric。

public System.Threading.Tasks.Task ProvisionFabricAsync (string patchFilePath, string clusterManifestFilePath, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ProvisionFabricAsync : string * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProvisionFabricAsync (patchFilePath As String, clusterManifestFilePath As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

参数

patchFilePath
String

更新修补程序文件的路径。

clusterManifestFilePath
String

群集清单的路径。

timeout
TimeSpan

Service Fabric 在返回 TimeoutException之前允许此操作继续的最长时间。

cancellationToken
CancellationToken

操作正在观察的取消标记。 它可用于发送应取消操作的通知。 请注意,取消是通知性的,即使操作被取消,操作仍可能完成。

返回

预配的 Service Fabric。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

注解

null参数或 clusterManifestFilePath 参数允许patchFilePath使用值。 值 null 不能用于这两个参数。

这会将修补程序文件和/或群集清单文件上传到映像存储位置。 映像存储位置指定为创建群集时提供的群集清单中的配置设置。

群集清单验证将在此调用的上下文中进行。

适用于