Edit

Share via


New-AzContainerAppIPSecurityRestrictionRuleObject

Create an in-memory object for IPSecurityRestrictionRule.

Syntax

Default (Default)

New-AzContainerAppIPSecurityRestrictionRuleObject
    -Action <String>
    -IPAddressRange <String>
    -Name <String>
    [-Description <String>]
    [<CommonParameters>]

Description

Create an in-memory object for IPSecurityRestrictionRule.

Examples

Example 1: Create an in-memory object for IPSecurityRestrictionRule.

New-AzContainerAppIPSecurityRestrictionRuleObject -Action "Allow" -IPAddressRange "192.168.1.1/32" -Name "Allow work IP A subnet"
Action Description IPAddressRange Name
------ ----------- -------------- ----
Allow              192.168.1.1/32 Allow work IP A subnet

Create an in-memory object for IPSecurityRestrictionRule.

Parameters

-Action

Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Description

Describe the IP restriction rule that is being sent to the container-app. This is an optional field.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IPAddressRange

CIDR notation to match incoming IP address.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name for the IP restriction rule.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

IPSecurityRestrictionRule