Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureNetworkSecurityRuleConfig

Set-AzureNetworkSecurityRuleConfig

microsoft.azure.commands.network.dll

Synopsis

Sets the goal state for an Network Security Rule

Syntax

Set-AzureNetworkSecurityRuleConfig [-Name] [-NetworkSecurityGroup] [-Description] [-Protocol] [-SourcePortRange] [-DestinationPortRange] [-SourceAddressPrefix] [-DestinationAddressPrefix] [-Access] [-Priority] [-Direction] [-Profile] [<CommonParameters>]

Detailed Description

Sets the goal state for an Network Security Rule

Parameters

-Name <String>

The name of the Network Security Rule.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-NetworkSecurityGroup <PSNetworkSecurityGroup>

The Network Security Group object containing the Network Security Rule.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Description <String>

A description for this rule. Restricted to 140 characters.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Protocol <String>

Network protocol this rule applies to. Can be Tcp, Udp or * to match both.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SourcePortRange <String>

Source Port or Range. Integer or range between 0 and 65535 or * to match any.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DestinationPortRange <String>

Destination Port or Range. Integer or range between 0 and 65535 or * to match any.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SourceAddressPrefix <String>

CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DestinationAddressPrefix <String>

CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Access <String>

Specifies whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Priority <Int32>

Specifies the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Direction <String>

The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are “Inbound” and “Outbound”.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples