Open SamLue opened 1 year ago
Hi @SamLue,
Thank you for logging an issue!
Can you please try to explicitly import the module with the command: Import-Module AzureBasicLoadBalancerUpgrade
? This will usually show you why the module is not loading.
Hi @mbrat2005,
thanks for your fast response.
OK, I also tried wir another Windows 10 Maschine where no Az-Module was installed. Then I installed it with: Install-Module Az ... Import-Module -Name AzureBasicLoadBalancerUpgrade missed the Module Az.ResourceGraph So, I installed the Sub-Module Az.ResourceGraph explicitly. Strange.
I can Execute the command, now. But still an error:
`log : 2023-04-20T17:30:37+02 [Error]:[BackupVmss] An error occured while exporting the VMSS '' for backup purposes. Error: Ausnahme beim Aufrufen von "Serialize" mit 3 Argument(en):"The collection type 'System.Object' on 'Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSetExtension.Settings' is not supported." In C:\Program Files\WindowsPowerShell\Modules\AzureBasicLoadBalancerUpgrade\2.0.4\modules\BackupBasicLoadBalancer\BackupBasicLoadBalancer.psm1:119 Zeichen:13
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,log`
It is an AKS VMSS? Is this a Problem?
This is an error we have run into on PowerShell 5.1. As a workaround, either install PowerShell Core (PowerShell/PowerShell: PowerShell for every system! (github.com)https://github.com/PowerShell/PowerShell) or running in the Azure Cloud Shell.
The backend can be an AKS VMSS, as long as the VMSS does not have both an internal and an external load balancer.
From: Sam @.> Sent: Thursday, April 20, 2023 09:41 To: Azure/AzLoadBalancerMigration @.> Cc: Matthew Bratschun @.>; Mention @.> Subject: Re: [Azure/AzLoadBalancerMigration] Command Start-AzBasicLoadBalancerUpgrade not Found (Issue #46)
It is an AKS VMSS? Is this a Problem?
— Reply to this email directly, view it on GitHubhttps://github.com/Azure/AzLoadBalancerMigration/issues/46#issuecomment-1516553736, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBW6WGCW7DSO3ZNXKXVOJDXCFKJLANCNFSM6AAAAAAXFETDHU. You are receiving this because you were mentioned.Message ID: @.***>
I was irritated by the PSEdition in the CloudShell, where only Desk and not Core was listed. Therefore I assumed that the module only works with PowerShell 5.1 and not with Core (> v6).
PS /home/samuel> Get-Module -ListAvailable AzureBasicLoadBalancerUpgrade
Directory: /home/samuel/.local/share/powershell/Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands Manifest 2.0.4 AzureBasicLoadBalancerUpgrade Desk Start-AzBasicLoadBalancerUpgrade
I have now been able to run it successfully with Powershell 7.
The Load Balancer Ressource SKU itself is now "Standard".
But my aks didn't update these Information:
"loadBalancerProfile": null, "loadBalancerSku": "Basic",
Is there a way to update my aks cluster also?
@Welasco any ideas on this AKS cluster LB?
I have installed this Module with Command:
Install-Module -Name AzureBasicLoadBalancerUpgrade -Scope CurrentUser -Repository PSGallery -Force
Here some commands with some information: PS W:\config> Get-Module -ListAvailable AzureBasicLoadBalancerUpgrade
Verzeichnis: C:\Users\slueckoff\Documents\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands Manifest 2.0.4 AzureBasicLoadBalancerUpgrade Start-AzBasicLoadBalancerUpgrade
PS W:\config> Get-ExecutionPolicy RemoteSigned PS W:\config> Start-AzBasicLoadBalancerUpgrade Start-AzBasicLoadBalancerUpgrade : Die Benennung "Start-AzBasicLoadBalancerUpgrade" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang. In Zeile:1 Zeichen:1
PS W:\config> $PSVersionTable
Name Value PSVersion 5.1.17763.3770 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.3770 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1