Azure / AzLoadBalancerMigration

This repo contains a PowerShell module to support Azure Load Balancer migration from Basic to Standard SKU
MIT License
10 stars 8 forks source link

🪲 Bug Report - VMSS being reassociated with NAT Pools during migration #94

Closed mbrat2005 closed 10 months ago

mbrat2005 commented 10 months ago

Describe the bug

When migrating a VMSS with NAT Pools, the VMSS is not being added back to the NAT Pool

To Reproduce

Steps to reproduce the behavior:

  1. AzureBasicLoadBalancerUpgrade\testEnvs\scenarios\027-service-fabric-basic-lb-mr-silver.json

2023-11-07T07:58:20-07 [Information] - [InboundNatPoolsMigration] Adding Inbound NAT Pool LoadBalancerBEAddressNatPool to Standard Load Balancer 2023-11-07T07:58:20-07 [Information] - [InboundNatPoolsMigration] Saving Standard Load Balancer lb-basic-01 2023-11-07T07:58:35-07 [Information] - [InboundNatPoolsMigration] Waiting for saving standard load balancer lb-basic-01 job to complete... 2023-11-07T07:58:35-07 [Information] - [GetVmssFromBasicLoadBalancer] Initiating GetVmssFromBasicLoadBalancer 2023-11-07T07:58:35-07 [Information] - [GetVmssFromBasicLoadBalancer] Getting VMSS object '/subscriptions/.../resourcegroups/rg-027a-service-fabric-basic-lb-mr-silver/providers/microsoft.compute/virtualmachinescalesets/nt1vm' from Azure 2023-11-07T07:58:36-07 [Information] - [GetVmssFromBasicLoadBalancer] VMSS loaded Name nt1vm from RG rg-027a-service-fabric-basic-lb-mr-silver 2023-11-07T07:58:36-07 [Information] - [_MigrateNetworkInterfaceConfigurations] Adding InboundNATPool to VMSS nt1vm 2023-11-07T07:58:36-07 [Information] - [_MigrateNetworkInterfaceConfigurations] Checking if VMSS 'nt1vm' NIC 'NIC-0' IPConfig 'NIC-0' should be associated with NAT Pool 'LoadBalancerBEAddressNatPool' 2023-11-07T07:58:36-07 [Information] - [_MigrateNetworkInterfaceConfigurations] Migrate NetworkInterface Configurations completed 2023-11-07T07:58:36-07 [Information] - [InboundNatPoolsMigration] Saving VMSS nt1vm .... 2023-11-07T08:30:21-07 [Error] - [ValidateMigration] Standard Load Balancer does not have the same number of inbound NAT rules ('0') as the Basic Load Balancer ('5')