gpt4 book ai didi

azure-web-roles - Windows Azure 无法在端点数量不同的部署之间执行 VIP 交换

转载 作者:行者123 更新时间:2023-12-04 07:06:42 24 4
gpt4 key购买 nike

我正在尝试通过 azure 门户执行 VIP 交换,但出现错误:

Windows Azure 无法在端点数量不同的部署之间执行 VIP 交换。

我仔细看了看,确实看到了端点数量的差异(生产中为 2,暂存中为 3)。

生产:

Input Endpoints
OUR.API:168.62.21.50:80
OUR.API:168.62.21.50:3389

分期:
Input Endpoints
OUR.API:168.62.22.55:80
OUR.API:168.62.22.55:3389
OUR.API:168.62.22.55:8172

端口 80 是 Web,3389 是远程桌面。到现在为止还挺好。那个额外的端口 8172 来自哪里?应用程序中除了端口 80 之外没有任何东西可以监听。此外,暂存和生产区域中的应用程序几乎相同 - 所以它必须是框架。有什么缩小范围的步骤吗?

[编辑]
此外,我的角色的 ServiceDefinition.csdef 只定义了一个端点:
 <Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
</Endpoints>

最佳答案

“那个额外的端口 8172 是从哪里来的?”

It is from WebDeploy being enabled in the publishing settings



长答案:

我在暂存和生产之间一一解析了整个配置,这是我发现的:

您的发布设置已保存到
<azurerole>\Profiles\<yourprofilename>.azurePubxml
我的生产部署有 <AzureEnableWebDeploy>True</AzureEnableWebDeploy>而我的暂存部署有 <AzureEnableWebDeploy>False</AzureEnableWebDeploy>
然后,Azure 基础结构查找并打开端口 8172 以在暂存角色上启用 WebDeploy。这就是为什么尽管 ServiceDefinition.csdef 文件中没有定义新的端点,但端点是不同的。

我不确定为什么拥有不同数量的端点会阻止 Azure 发布本身。

关于azure-web-roles - Windows Azure 无法在端点数量不同的部署之间执行 VIP 交换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12170176/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com