[BUG] new-azapplicationgateway cmdlet doesn't work in Cloud Shell PS
To Reproduce
https://learn.microsoft.com/en-us/powershell/module/az.network/new-azapplicationgateway?view=azps-9.7.1 Ran with and without "-priority 123".
Observed Behavior
Run this command in Cloud Shell PS and it will throw an error due to the lack of the priority parameter. If you add the -Priority then it will also fail because it cannot be recognized... although it is recognized via VSCode.
Expected behavior
Deploy without any errors.
Is this specific to Cloud Shell?
Yes
Interface information
How are you accessing Cloud Shell - https://shell.azure.com, https://portal.azure.com, via Windows Terminal, or some other method? If a browser, which Operating System and browser are you using? (ex. Edge on Windows 10) Via Browser. Chrome, latest version.
Additional context
@vegazbabz The error is instructing you that the value passed for the -HttpListeners parameter has at least one item in the collection with Name = 'EAG230516232759-HttpRule' missing a value on its Priority property. I don't think is related to cloud shell or the PowerShell module.
Hi @vegazbabz - Was the information from @lsuarez5280 helpful? I was thinking the same :)