CloudShell icon indicating copy to clipboard operation
CloudShell copied to clipboard

[BUG] new-azapplicationgateway cmdlet doesn't work in Cloud Shell PS

Open vegazbabz opened this issue 2 years ago • 2 comments

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

image image

vegazbabz avatar May 17 '23 00:05 vegazbabz

@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.

lsuarez5280 avatar Jun 05 '23 22:06 lsuarez5280

Hi @vegazbabz - Was the information from @lsuarez5280 helpful? I was thinking the same :)

theJasonHelmick avatar Jun 22 '23 17:06 theJasonHelmick