gpt4 book ai didi

Azure VMSS 灵活编排 - 自定义资源名称

转载 作者:行者123 更新时间:2023-12-03 02:09:19 30 4
gpt4 key购买 nike

我已经使用编排模式和正确的名称创建了 VMSSFlexible,但虚拟机、网卡、IP 的后缀是随机生成的。 enter image description here

通过VMSS添加实例时是否可以自动创建虚拟机和相应的资源?我想要这样的资源名称:

TST-WebServer1-VM
TST-WebServer2-VM
TST-WebServer1-VM-IP
TST-WebServer2-VM-IP
TST-WebServer1-VM-NIC
TST-WebServer2-VM-NIC

等等。

最佳答案

https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes#instance-naming

When you create a VM and add it to a Flexible scale set, you have full control over instance names within the Azure Naming convention rules. When VMs are automatically added to the scale set via autoscaling, you provide a prefix and Azure appends a unique number to the end of the name.

显然,当名称自动添加时,它实际上并不能完全控制它们。

关于Azure VMSS 灵活编排 - 自定义资源名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73815582/

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