次の方法で共有


New-AzContainerAppIPSecurityRestrictionRuleObject

IPSecurityRestrictionRule のメモリ内オブジェクトを作成します。

構文

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

説明

IPSecurityRestrictionRule のメモリ内オブジェクトを作成します。

例 1: 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

IPSecurityRestrictionRule のメモリ内オブジェクトを作成します。

パラメーター

-Action

受信 IP を決定する規則を許可または拒否します。 注: ルールは、ALL Allow または ALL Deny のみで構成できます。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-Description

コンテナー アプリに送信される IP 制限規則について説明します。 これは省略可能なフィールドです。

型:String
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-IPAddressRange

受信 IP アドレスと一致する CIDR 表記。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-Name

IP 制限規則の名前。

型:String
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

出力

IPSecurityRestrictionRule