Azure / AzLoadBalancerMigration

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

🪲 Bug Report - Backend Pool Migration Fails on Single VM Backend when using PowerShell 5.1 #124

Closed mbrat2005 closed 4 months ago

mbrat2005 commented 4 months ago

Describe the bug

When migrating an LB with a single VM backend using PowerShell 5.1, the BackendAddressPool list object is incorrectly typed as System.Object[], causing the migration to fail to populate the backend pool.

Exception setting "LoadBalancerBackendAddressPools": "Cannot convert the "System.Object[]" value of type "System.Object[]" to type "Microsoft.Azure.Commands.Network.Models.PSBackendAddressPool"."

To Reproduce

Steps to reproduce the behavior:

  1. Using PowerShell 5.1
  2. Migrate an LB with a single backend VM

Expected behavior

A clear and concise description of what you expected to happen without this bug 🙂

Screenshots 📷

2024-06-13T10:26:05-06 [Information] - ############################## Initializing Start-AzBasicLoadBalancerUpgrade ############################## 2024-06-13T10:26:05-06 [Information] - [Start-AzBasicLoadBalancerUpgrade] PowerShell Version: 5.1.22621.3672 2024-06-13T10:26:05-06 [Information] - [Start-AzBasicLoadBalancerUpgrade] AzureBasicLoadBalancerUpgrade Version: 2.4.10

WORKAROUND: