Hello, thank you in advance.
My customer and I are trying to get a rules set but no matter how we change the range, parameter order, etc we still get the error "Set-AzureNetworkSecurityRule : BadRequest: The Destination Port provided is outside of allowed range"
Get-AzureNetworkSecurityGroup -Name "NetworkWideNetSecGroup" `| Set-AzureNetworkSecurityRule -Name "EXTERNAL INBOUND ALLOW DYNAMIC" -Type Inbound -Priority $Priority `
-Action Deny -SourceAddressPrefix 'INTERNET' -SourcePortRange '*' `
-DestinationAddressPrefix '*' -Protocol '*' -DestinationPortRange '49152–65535'
Kenny