New-AzVirtualApplianceInboundSecurityRulesProperty
Define Inbound Security Rules Property
Syntax
New-AzVirtualApplianceInboundSecurityRulesProperty
-Name <String>
-Protocol <String>
-SourceAddressPrefix <String>
[-DestinationPortRange <Int32>]
[-DestinationPortRangeList <String[]>]
-AppliesOn <String[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzVirtualApplianceInboundSecurityRulesProperty command defines a specific rule configuration for the the Inbound Security Rule on a Network Virtual Appliance resource.
Examples
Example 1
New-AzVirtualApplianceInboundSecurityRulesProperty -Name InboundRule1 -Protocol TCP -SourceAddressPrefix * -DestinationPortRangeList "80-120","121-124" -AppliesOn "publicip1"
The above command defines the rule configuration having values as below:
Name: InboundRule1 Protocol: TCP Source Address Prefix: * Destination Port Range List: "80-120" & "121-124" Applies on: publicip1
The rule with above property will configure a corresponding NSG rule and a Load Balancing rule on the SLB attached to the NVA, the LB rule will have the Frontned IP as publicip1
Parameters
-AppliesOn
The Applies On value of the rule for the SLP IP/Interface
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationPortRange
Destination Port Range of the rule
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationPortRangeList
Destination Port Ranges of the rule
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of the Inbound Security Rules Property
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Protocol
Rule protocol
Type: | String |
Accepted values: | Tcp, Udp |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SourceAddressPrefix
The Source Address Prefix of the rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.Azure.Commands.Network.Models.PSInboundSecurityPropertyRules
Azure PowerShell