Closed o-l-a-v closed 4 years ago
Hi @o-l-a-v thanks for your contribution. Could you please offer us more info? You can use the command:
Set-AzNetworkSecurityRuleConfig -Protocol 'ICMP' -Debug
Hi @o-l-a-v thanks for your contribution. Could you please offer us more info? You can use the command:
Set-AzNetworkSecurityRuleConfig -Protocol 'ICMP' -Debug
Then I'll have to fire up some demo resources in Azure, which should not be necessary IMHO.
Just look at the documentation: https://docs.microsoft.com/en-us/powershell/module/az.network/set-aznetworksecurityruleconfig?view=azps-2.8.0#parameters
Or "Get-Help -Name 'Set-AzNetworkSecurityRuleConfig' -Detailed"
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @karenhammons @sfiguemsft
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @karenhammons @sfiguemsft
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc
Any update on this?
@allegradomel can you help with this one?
@KarenHammons, I'm taking a look
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc
How are you using more than three months without doing anything? Still not being able to specify ICMP in PowerShell is limiting and incosistant.
Hi @o-l-a-v, we recognize this is inconvenient. I have added this item to our list of planning items for the coming semester.
@allegradomel Why is it closed? Is it fixed now?
@allegradomel @KarenHammons
With latest Az modules as of 2020-02-14 I can add other protocols than just UDP, TCP and wildcard. Great. Would have been nice to say so when closing this issue.
Using:
# Get NSG
$NSGObject = Get-AzNetworkSecurityGroup -Name $NSGName
# Add rule
Add-AzNetworkSecurityRuleConfig -Protocol 'Icmp' -Name 'in-allow-icmp-vnet' -NetworkSecurityGroup $NSGObject `
-Access 'Allow' -Direction 'Inbound' -Priority '1234' `
-SourcePortRange '*' -SourceAddressPrefix 'VirtualNetwork' `
-DestinationPortRange '*' -DestinationAddressPrefix 'VirtualNetwork'
# Set NSG
Set-AzNetworkSecurityGroup -NetworkSecurityGroup $NSGObject
Documentation is not up to date though.
This is also true for Get-Help
PS C:\Users\Olav> Get-Help -Name 'Add-AzNetworkSecurityRuleConfig' -Parameter 'Protocol'
-Protocol <System.String>
Specifies the network protocol that a rule configuration applies to. The acceptable values for this parameter are: - Tcp
- Udp
- Wildcard character (*) to match both
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
Where do I open an issue about that?
@allegradomel @KarenHammons
Any word on this?
@allegradomel @KarenHammons
Documentation is still not updated with v3.5.0
You can open a new issue in the same repo, specifying the requested doc fix. I'll keep this issue closed since the initial issue has been resolved
Description
Can't specify ICMP for cmdlets creating NSGs. Like "Set-AzNetworkSecurityRuleConfig". ICMP has been available for months, about time the Az module catches up.
Steps to reproduce
Set-AzNetworkSecurityRuleConfig
with-Protocol 'ICMP'
fails.Environment data
Module versions
Debug output
Error output