az network application-gateway rule

プローブ情報を評価し、HTTP/HTTPS ルーティング規則を定義します。

詳細については、https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-customize-waf-rules-cli を参照してください。

コマンド

az network application-gateway rule create

規則を作成します。

az network application-gateway rule delete

Delete a rule.

az network application-gateway rule list

List rules.

az network application-gateway rule show

Get the details of a rule.

az network application-gateway rule update

Update a rule.

az network application-gateway rule wait

Place the CLI in a waiting state until a condition is met.

az network application-gateway rule create

規則を作成します。

Rules are executed in the order in which they are created.

az network application-gateway rule create --gateway-name
                                           --name
                                           --resource-group
                                           [--address-pool]
                                           [--http-listener]
                                           [--http-settings]
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--priority]
                                           [--redirect-config]
                                           [--rewrite-rule-set]
                                           [--rule-type {Basic, PathBasedRouting}]
                                           [--url-path-map]

基本的なルールを作成します。

az network application-gateway rule create -g MyResourceGroup --gateway-name MyAppGateway -n MyRule --http-listener MyBackendListener --rule-type Basic --address-pool MyAddressPool --http-settings MyHttpSettings

必須のパラメーター

--gateway-name

アプリケーション ゲートウェイの名前。

--name -n

要求ルーティング規則の名前。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

省略可能のパラメーター

--address-pool

バックエンド アドレス プールの名前または ID。 1 つだけ存在する場合は、 を省略して既定として使用します。

--http-listener

HTTP リスナーの名前または ID。 If only one exists, omit to use as default.

--http-settings

HTTP 設定の名前または ID。 If only one exists, omit to use as default.

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--priority

要求ルーティング規則の優先順位。 サポートされている SKU レベルは、WAF_v2 Standard_v2。

--redirect-config

作成されたルールで使用するリダイレクト構成の名前または ID。

--rewrite-rule-set

書き換え規則セットの名前または ID。

--rule-type

要求ルーティング規則の種類。

承認された値: Basic, PathBasedRouting
既定値: Basic
--url-path-map

URL パス マップの名前または ID。

az network application-gateway rule delete

Delete a rule.

az network application-gateway rule delete --gateway-name
                                           --name
                                           --resource-group
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

Delete a rule.

az network application-gateway rule delete -g MyResourceGroup --gateway-name MyAppGateway -n MyRule

必須のパラメーター

--gateway-name

Name of the application gateway.

--name -n

Name of the request routing rule.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

省略可能のパラメーター

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes

az network application-gateway rule list

List rules.

az network application-gateway rule list --gateway-name
                                         --resource-group

List rules.

az network application-gateway rule list -g MyResourceGroup --gateway-name MyAppGateway

必須のパラメーター

--gateway-name

Name of the application gateway.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

az network application-gateway rule show

Get the details of a rule.

az network application-gateway rule show --gateway-name
                                         --name
                                         --resource-group

Get the details of a rule.

az network application-gateway rule show -g MyResourceGroup --gateway-name MyAppGateway -n MyRule

必須のパラメーター

--gateway-name

Name of the application gateway.

--name -n

Name of the request routing rule.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

az network application-gateway rule update

Update a rule.

az network application-gateway rule update --gateway-name
                                           --name
                                           --resource-group
                                           [--add]
                                           [--address-pool]
                                           [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--http-listener]
                                           [--http-settings]
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--priority]
                                           [--redirect-config]
                                           [--remove]
                                           [--rewrite-rule-set]
                                           [--rule-type {Basic, PathBasedRouting}]
                                           [--set]
                                           [--url-path-map]

ルールを更新する場合は、新しい HTTP リスナーを使用します。

az network application-gateway rule update -g MyResourceGroup --gateway-name MyAppGateway -n MyRule --http-listener MyNewBackendListener

必須のパラメーター

--gateway-name

Name of the application gateway.

--name -n

Name of the request routing rule.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

省略可能のパラメーター

--add

パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value、string、または JSON 文字列>。

--address-pool

Name or ID of the backend address pool. If only one exists, omit to use as default.

--force-string

'set' または 'add' を使用する場合は、JSON への変換を試みるのではなく、文字列リテラルを保持します。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--http-listener

Name or ID of the HTTP listener. If only one exists, omit to use as default.

--http-settings

Name or ID of the HTTP settings. If only one exists, omit to use as default.

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--priority

Priority of the request routing rule. Supported SKU tiers are Standard_v2, WAF_v2.

--redirect-config

Name or ID of the redirect configuration to use with the created rule.

--remove

リストからプロパティまたは要素を削除します。 例: --remove property.list OR --remove propertyToRemove。

--rewrite-rule-set

Name or ID of the rewrite rule set.

--rule-type

Type of the request routing rule.

承認された値: Basic, PathBasedRouting
--set

設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=。

--url-path-map

Name or ID of the url path map.

az network application-gateway rule wait

条件が満たされるまで、CLI を待機状態にします。

az network application-gateway rule wait [--created]
                                         [--custom]
                                         [--deleted]
                                         [--exists]
                                         [--gateway-name]
                                         [--ids]
                                         [--interval]
                                         [--resource-group]
                                         [--subscription]
                                         [--timeout]
                                         [--updated]

省略可能のパラメーター

--created

'provisioningState' が 'Succeeded' で作成されるまで待ちます。

既定値: False
--custom

条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

削除されるまで待ちます。

既定値: False
--exists

リソースが存在するまで待ちます。

既定値: False
--gateway-name

Name of the application gateway.

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids またはその他の 'Resource Id' 引数を指定する必要があります。

--interval

ポーリング間隔 (秒単位)。

既定値: 30
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--timeout

最大待機時間 (秒単位)。

既定値: 3600
--updated

provisioningState が 'Succeeded' で更新されるまで待ちます。

既定値: False