Azure 云服务的更新和创建&删除部署选项之间的区别

Difference between update and create&delete deployment option for Azure Cloud Service

为云服务更新部署与删除然后创建新部署之间有什么区别?

我们设置了一个云服务,在部署期间,首先删除暂存中的现有部署,然后创建新部署。因此,分期的 VIP 总是在变化。我们有一个要求,希望确保 PROD 和登台 VIP 始终保持不变。

在更改部署选项之前,我想知道真正的区别是什么以及需要这两个选项。

我试图搜索但没有找到任何关于此的内容。

编辑:在 Azure Pub XML 中,我们有一个名为 'AzureDeploymentReplacementMethod' 的节点,该字段的不同选项是 'createanddelete'、'automaticupgrade' 和 'blastupgrade'

现在我们正在使用 'createanddelete',我们有兴趣使用 blastupgrade。

如有任何帮助,我们将不胜感激。

谢谢, 贾韦德

当您使用创建和删除部署时,过程简单 deletes an existing deployment, then creates new one

另外两个选项做upgrade deployment. The difference between automaticupdate and blastupgrade are in the value of Mode element of the Upgrade Deployment operation. As their name suggests, automaticupdate sends Auto for that element. While blastupdate would send Simultaneous. As per documentation:

Mode Required. Specifies the type of update to initiate. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible values are:

  • Auto
  • Manual
  • Simultaneous

If not specified, the default value is Auto. If set to Manual, WalkUpgradeDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. The Simultaneous setting is only available in version 2012-12-01 or higher.

您可以在 Update Cloud Service here 上阅读更多内容。

虽然,如果你真的想在所有情况下都保持 VIP,我建议你:

  • 根本不要对云服务使用过渡 - 只需使用两个单独的云服务(一个用于生产,一个用于过渡)
  • 使用 Azure 平台的 Reserved IP Address 功能。