在vmss loadbalancer中编辑入站NAT池 [英] Edit inbound NAT pool in vmss loadbalancer
问题描述
我正在尝试通过Azure cli将端口8172的NAT池添加到现有的负载均衡器.我发现我认为是正确的命令:
I'm trying to add a NAT pool for port 8172 to an existing loadbalancer via Azure cli. I found what I believe is the correct command:
az network lb inbound-nat-pool update --lb-name
--name
--resource-group
[--add]
[--backend-port]
[--frontend-ip-name]
[--frontend-port-range-end]
[--frontend-port-range-start]
[--protocol {All, Tcp, Udp}]
[--remove]
[--set]
,我想我需要使用-add
选项.但是接下来呢?如何在add命令中指定前端和后端设置?
and I suppose I need to use the --add
option.
But what's next? How do I specify the frontend and backend settings in the add command?
推荐答案
我正在尝试将端口8172的NAT池添加到现有的负载均衡器中通过Azure cli.
I'm trying to add a NAT pool for port 8172 to an existing loadbalancer via Azure cli.
不幸的是,当前已禁用负载平衡器和规模设置虚拟机之间的添加
或编辑
引用,这些负载平衡器包含与之的现有关联比例尺集.
Unfortunately, adding
or editing
references between load balancers and scale set virtual machines is currently disabled for load balancers that contain an existing association with a scale set.
如果要为VMSS添加NAT规则,也许我们应该重新创建.
If you want to add NAT rules for VMSS, maybe we should re-create it.
如果我们使用CLI 2.0添加或更新入站规则,则会收到此错误消息:
If we use CLI 2.0 to add or update inbound rules, we will get this error message:
C:\Users>az network lb inbound-nat-rule create -g jasonvmss --lb-name jasonvmsslb --protocol TCP --frontend-port 8172 --backend-port 8172 -n nat1
Adding or updating NAT Rules when NAT pool is present on loadbalancer /subscriptions/5384xxxx-xxxx-xxxx-xxxx-xxxxe29a7b15/resourceGroups/jasonvmss/providers/Microsoft.Network/loadBalancers/jasonvmsslb is not supported. To modify the load balancer, pass in all NAT rules unchanged or remove the LoadBalancerInboundNatRules property from your PUT request.
更新:
我们可以使用 az network lb inbound-nat-pool create
创建入站nat池,它工作正常.这样的命令:
We can use az network lb inbound-nat-pool create
to create inbound nat pool, it works fine. command like this:
az network lb inbound-nat-pool create --backend-port
--frontend-port-range-end
--frontend-port-range-start
--lb-name
--name
--protocol {All, Tcp, Udp}
--resource-group
这篇关于在vmss loadbalancer中编辑入站NAT池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!