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

DeploymentOperationsExtensions.BeginSwapping 方法

定义

“开始交换部署”操作启动服务的过渡部署环境和生产部署环境之间的虚拟 IP 地址交换。 如果该服务当前在临时环境中运行,则此操作将其切换至生产环境。 如果该服务在生产环境中运行,则此操作将其切换至临时环境。 有关此类升级的详细信息,请参阅 在 http://msdn.microsoft.com/en-us/library/windowsazure/ee517253.aspx执行虚拟 IP 交换升级。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/ee460814.aspx)

public static Microsoft.Azure.AzureOperationResponse BeginSwapping (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters parameters);
static member BeginSwapping : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSwapParameters -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function BeginSwapping (operations As IDeploymentOperations, serviceName As String, parameters As DeploymentSwapParameters) As AzureOperationResponse

参数

operations
IDeploymentOperations

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

serviceName
String

必需。 要交换部署的云服务。

parameters
DeploymentSwapParameters

必需。 提供给“开始交换部署”操作的参数。

返回

Microsoft.Azure.AzureOperationResponse

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

适用于