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

DeploymentOperationsExtensions.BeginRebuildingRoleInstanceByDeploymentName 方法

定义

重新生成角色实例异步操作在 Web 角色或辅助角色的实例上重新安装操作系统,并初始化它们使用的存储资源。 如果不想初始化存储资源,可以在有关异步操作的详细信息中使用重置角色实例http://msdn.microsoft.com/en-us/library/azure/gg441292.aspx.For 映像,请参阅 上的 http://msdn.microsoft.com/en-us/library/windowsazure/ee460791.aspx跟踪异步服务管理请求。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/azure/dn627518.aspx)

public static Microsoft.Azure.AzureOperationResponse BeginRebuildingRoleInstanceByDeploymentName (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, string deploymentName, string roleInstanceName, string resources);
static member BeginRebuildingRoleInstanceByDeploymentName : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * string * string * string -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function BeginRebuildingRoleInstanceByDeploymentName (operations As IDeploymentOperations, serviceName As String, deploymentName As String, roleInstanceName As String, resources As String) As AzureOperationResponse

参数

operations
IDeploymentOperations

对 Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations 的引用。

serviceName
String

必需。 云服务的名称。

deploymentName
String

必需。 部署的名称。

roleInstanceName
String

必需。 角色实例的名称。

resources
String

必需。 指定必须重新生成的资源。 目前,唯一支持的值是“allLocalDrives”。

返回

Microsoft.Azure.AzureOperationResponse

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于