Share via


DeploymentOperationsExtensions.WalkUpgradeDomainByDeploymentSlot 方法

Upgrades role instances in upgrade domains based on where the application is deployed.

命名空间: Microsoft.WindowsAzure.Management.Compute
程序集: Microsoft.WindowsAzure.Management.Compute(在 Microsoft.WindowsAzure.Management.Compute.dll 中)

使用

用法
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim deploymentSlot As DeploymentSlot
Dim parameters As DeploymentWalkUpgradeDomainParameters
Dim returnValue As OperationStatusResponse

returnValue = DeploymentOperationsExtensions.WalkUpgradeDomainByDeploymentSlot(operations, serviceName, deploymentSlot, parameters)

语法

声明
<ExtensionAttribute> _
Public Shared Function WalkUpgradeDomainByDeploymentSlot ( _
    operations As IDeploymentOperations, _
    serviceName As String, _
    deploymentSlot As DeploymentSlot, _
    parameters As DeploymentWalkUpgradeDomainParameters _
) As OperationStatusResponse
[ExtensionAttribute] 
public static OperationStatusResponse WalkUpgradeDomainByDeploymentSlot (
    IDeploymentOperations operations,
    string serviceName,
    DeploymentSlot deploymentSlot,
    DeploymentWalkUpgradeDomainParameters parameters
)
[ExtensionAttribute] 
public:
static OperationStatusResponse^ WalkUpgradeDomainByDeploymentSlot (
    IDeploymentOperations^ operations, 
    String^ serviceName, 
    DeploymentSlot deploymentSlot, 
    DeploymentWalkUpgradeDomainParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static OperationStatusResponse WalkUpgradeDomainByDeploymentSlot (
    IDeploymentOperations operations, 
    String serviceName, 
    DeploymentSlot deploymentSlot, 
    DeploymentWalkUpgradeDomainParameters parameters
)
ExtensionAttribute 
public static function WalkUpgradeDomainByDeploymentSlot (
    operations : IDeploymentOperations, 
    serviceName : String, 
    deploymentSlot : DeploymentSlot, 
    parameters : DeploymentWalkUpgradeDomainParameters
) : OperationStatusResponse

参数

  • serviceName
    The name of cloud service that contains the deployment.
  • deploymentSlot
    The name of the environment in which the application is deployed.

    Possible values are:

返回值

The ComputeOperationStatusResponse object that contains the status of the operation.

备注

If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.

By default, a service is deployed with five update domains, which are updated one at a time during an in-place update. For information on modifying the number of update domains in the service definition file, see Azure Service Definition Schema (.csdef File).

For more information about upgrading a deployment, see Walk Upgrade Domain.

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

DeploymentOperationsExtensions 类
DeploymentOperationsExtensions 成员
Microsoft.WindowsAzure.Management.Compute 命名空间