Update VMSS + LB to use NATv2
See original GitHub issueRelated command
az vmss
Resource Provider
Microsoft.compute
Description of Feature or Work Requested
With VMSS create there is currently client logic like:
- If VMSS Uniform, configure NAT Pool,
- If VMSS Flex, do not configure NAT pool
LB has recently launched an update to NAT rules that work for both VMSS Uniform and Flex. We would like to revise the VMSS create to always set up NAT rules via the new API:
{
"name": "[concat(variables('lbName'), '/', 'natRule')]",
"type": "Microsoft.Network/loadBalancers/inboundNatRules",
"apiVersion": "2021-05-01",
"location":"[parameters('location')]",
"dependsOn":[
"[concat('Microsoft.Network/loadBalancers/', variables('lbName'))]"
],
"properties": {
"frontendIPConfiguration": {
"id": "[variables('frontendIPConfigID')]"
},
"protocol": "TCP",
"frontendPortRangeStart": 50000,
"frontendPortRangeEnd": 50100,
"backendPort": 3389,
"idleTimeoutInMinutes": 4,
"backendAddressPool": {
"id": "[variables('backendaddressPoolID')]"
}
}
Minimum API Version Required
2022-03-01 compute 2021-05-01 network
Swagger Link
Normal CRP swagger Normal NRP swagger
Target Date
7/30/2022
Issue Analytics
- State:
- Created a year ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Modify an Azure Virtual Machine Scale Set - Microsoft Learn
Learn how to modify and update an Azure Virtual Machine Scale Set with the REST APIs, Azure PowerShell, and Azure CLI.
Read more >How to update the VMSS to use the existing LB in Azure
You can associate an existing LB with a scaleset however it cannot be done via the portal. Rather you need to use CLI...
Read more >azure-docs/update-load-balancer-with-vm-scale-set.md at main
Create a new set of inbound NAT rules by using the newly created front-end IP configurations if needed. An example is found in...
Read more >Updating Azure VM Scale Set without downtime with Rolling ...
This article will explain how you configure your VM Scale Set (or just VMSS for brevity) and the peripheral components required for this...
Read more >A Guide for Configuring Infrastructure of VMSS using Azure ...
Go back to LB and refresh, the instances should be displayed in the backend pool. The above instruction is part of the main...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes both are the same functionality. We can replace with nat rules v2
For VMSS Uniform it is @fitzgeraldsteele’s call.
@mahipdeora @anavinahar @fitzgeraldsteele These two points have been implemented in draft PR. Do you have any ideas or suggestions on the third question?
In addition, can we hide the
--nat-pool-name
parameter in the help information? Users can continue to use it to avoid breaking change, but they will get the following prompt when using it: Does this meet your expectations?