简体   繁体   English

Azure VMSS 无公共 ip

[英]Azure VMSS without a public ip

I am trying to create a azure virtual machine scale set (VMSS) without a public ip for rolling upgrade policy (zero downtime).我正在尝试创建一个没有公共 ip 的 azure 虚拟机规模集 (VMSS) 用于滚动升级策略(零停机时间)。 All the examples I find requires a configuration with a public IP.我找到的所有示例都需要使用公共 IP 进行配置。 Even the wizard on azure forces to create a public ip.甚至 azure 上的向导也会强制创建一个公共 ip。 Can a VMSS with rolling upgrade be created without a public ip?可以在没有公共 ip 的情况下创建具有滚动升级的 VMSS 吗?

I can create a manual upgrade_policy VMSS without a loadbalancer or healthprobe without public ips.我可以在没有负载均衡器的情况下创建手动 upgrade_policy VMSS,或者在没有公共 IP 的情况下创建 healthprobe。 But I am unable to create a 'Rolling' upgrade_policy vmss without public ip.但是我无法在没有公共 ip 的情况下创建“滚动”upgrade_policy vmss。

Q: Can a VMSS be created without a public ip?问:是否可以在没有公共 ip 的情况下创建 VMSS? if so how?如果是这样怎么办?

Why not?为什么不? When you create the VMSS in the Azure portal like the screenshot below, you do not need to select to use a load balancer, then it will create a VMSS without any public IP.当您在 Azure 门户中创建 VMSS 时,如下面的屏幕截图所示,您不需要 select 来使用负载均衡器,那么它将创建一个没有任何公共 ZA12A3079E14CED46E69BA52B89 的 VMSS。

在此处输入图像描述

Update:更新:

Take a look at the screenshot below:看看下面的截图:

Rolling upgrade policy滚动升级政策

在此处输入图像描述

VMSS configuration VMSS 配置

在此处输入图像描述

As you see, the VMSS still does not have the public IP, but the rolling upgrade policy is set as you want.如您所见,VMSS 仍然没有公共的 IP,但滚动升级策略已根据需要设置。 You just need to set the monitor application health extension:您只需要设置监控应用程序健康扩展:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM