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 - Outbound Rule fails to create if backend pool contains more than 6 IPs #114

Closed hevcy closed 5 months ago

hevcy commented 6 months ago

Describe the bug

When running AzurePublicLBUpgrade.ps1 against a load balancer with a single backend pool, with, for example, 10 endpoints, you recieve an error:

Outboundrule exceeds total number of available ports per backend instance of 6392 based upon desired pool size. Reduce allocated ports or increase number of IP addresses for outbound rule.

This is because in the script the outbound rule is hard-coded to use 10000 ports per instance. This should probably be calculated based upon how many ip configurations exist within a backend pool.

To Reproduce

Steps to reproduce the behavior:

  1. Create Basic LB with a single backend pool with >=7 Ip configurations
  2. Run Script

Expected behavior

Outbound rule is correctly created

Screenshots 📷

n/a

Additional context - please include:

Version 7.0

mbrat2005 commented 5 months ago

This is a known limitation of this legacy script. Use https://www.powershellgallery.com/packages/AzureBasicLoadBalancerUpgrade instead