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

fix import-module / function call for UpdateVMSS/ UpdateVmss on cloud shell / linux #24

Closed jagilber closed 1 year ago

jagilber commented 1 year ago

from https://shell.azure.com / cloud shell, unable to run AzLoadBalancerMigration completely. There is an error calling 'UpdateVMSS' Function name is 'UpdateVmss'

Actual fix is on the import-module file name case mismatch:

-Import-Module ((Split-Path $PSScriptRoot -Parent) + "\UpdateVMSS\UpdateVMSS.psd1") +Import-Module ((Split-Path $PSScriptRoot -Parent) + "\UpdateVMSS\UpdateVMSS.psd1")

Error from log: UpdateVMSS: The term 'UpdateVMSS' is not recognized as a name of a cmdlet, function, script file, or executable program.

Verified fix resolves issue

mbrat2005 commented 1 year ago

I'd like to make casing consistent across the board as part of #25