次の方法で共有


az load notification-rule

Note

This reference is part of the load extension for the Azure CLI (version 2.66.0 or higher). 拡張機能は、 az load notification-rule コマンドを初めて実行するときに自動的にインストールされます。 Learn more about extensions.

このコマンド グループはプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

通知ルールを管理するコマンド グループ。

コマンド

名前 説明 状態
az load notification-rule create

ロード テスト リソースの新しい通知ルールを作成します。

Extension Preview
az load notification-rule delete

ロード テスト リソースの指定された通知ルールを削除します。

Extension Preview
az load notification-rule list

ロード テスト リソースのすべての通知規則を一覧表示します。

Extension Preview
az load notification-rule show

ロード テスト リソースの指定された通知規則を取得します。

Extension Preview
az load notification-rule update

ロード テスト リソースの既存の通知ルールを更新します。

Extension Preview

az load notification-rule create

プレビュー

コマンド グループ 'load notification-rule' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ロード テスト リソースの新しい通知ルールを作成します。

az load notification-rule create --action-groups
                                 --load-test-resource --name
                                 --notification-rule-id
                                 [--all-events]
                                 [--all-tests]
                                 [--display-name]
                                 [--event]
                                 [--resource-group]
                                 [--test-ids]

すべてのイベントの通知ルールを作成します。

az load notification-rule create --load-test-resource sample-alt-resource --resource-group sample-rg --action-groups /subscriptions/000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.insights/actiongroups/sample-ag --notification-rule-id notification-sample-id --all-events

すべてのテストと TestRunEnded イベントの通知ルールを作成します。

az load notification-rule create --load-test-resource sample-alt-resource --resource-group sample-rg --action-groups /subscriptions/000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.insights/actiongroups/sample-ag --notification-rule-id notification-sample-id --all-tests --event event-id=event1 type=TestRunEnded status=DONE,FAILED result=PASSED

必須のパラメーター

--action-groups

通知ルールのアクション グループのリソース ID のスペース区切りリスト。

--load-test-resource --name -n

ロード テスト リソースの名前または ARM リソース ID。

--notification-rule-id -i

通知ルールの識別子。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--all-events

通知ルールのすべてのイベントを含める必要がある場合は、このフラグを指定します。 これにより、--event を使用して提供されるすべてのイベントがオーバーライドされます。

プロパティ
規定値: False
--all-tests

すべてのテストを通知ルールに含める必要がある場合は、このフラグを指定します。 これにより、--test-ids を使用して指定されたすべてのテストがオーバーライドされます。

プロパティ
規定値: False
--display-name

通知ルールの表示名。

--event

通知ルールで有効にするイベント。 予期される形式は --event event-id='event id' type='event type' status='a list of statuses in comma-separated format' result='a list of results in comma-separated format' です。 状態フィールドと結果フィールドは、イベントの種類 'TestRunEnded' に対してのみ有効です。

--resource-group -g

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

--test-ids

通知ルールのテスト ID のスペース区切りリスト。

グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az load notification-rule delete

プレビュー

コマンド グループ 'load notification-rule' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ロード テスト リソースの指定された通知ルールを削除します。

az load notification-rule delete --load-test-resource --name
                                 --notification-rule-id
                                 [--resource-group]
                                 [--yes]

通知ルールを削除します。

az load notification-rule delete --load-test-resource sample-alt-resource --resource-group sample-rg --notification-rule-id notification-sample-id --yes

必須のパラメーター

--load-test-resource --name -n

ロード テスト リソースの名前または ARM リソース ID。

--notification-rule-id -i

通知ルールの識別子。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

--yes -y

確認を求めないでください。

プロパティ
規定値: False
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az load notification-rule list

プレビュー

コマンド グループ 'load notification-rule' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ロード テスト リソースのすべての通知規則を一覧表示します。

az load notification-rule list --load-test-resource --name
                               [--resource-group]
                               [--test-ids]

すべての通知ルールを一覧表示します。

az load notification-rule list --load-test-resource sample-alt-resource --resource-group sample-rg

指定したテスト ID のすべての通知ルールを一覧表示します。

az load notification-rule list --load-test-resource sample-alt-resource --resource-group sample-rg --test-ids sample-test-id

必須のパラメーター

--load-test-resource --name -n

ロード テスト リソースの名前または ARM リソース ID。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

--test-ids

通知ルールのテスト ID のスペース区切りリスト。

グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az load notification-rule show

プレビュー

コマンド グループ 'load notification-rule' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ロード テスト リソースの指定された通知規則を取得します。

az load notification-rule show --load-test-resource --name
                               --notification-rule-id
                               [--resource-group]

通知ルールを取得します。

az load notification-rule show --load-test-resource sample-alt-resource --resource-group sample-rg --notification-rule-id notification-sample-id

必須のパラメーター

--load-test-resource --name -n

ロード テスト リソースの名前または ARM リソース ID。

--notification-rule-id -i

通知ルールの識別子。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--resource-group -g

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

グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az load notification-rule update

プレビュー

コマンド グループ 'load notification-rule' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ロード テスト リソースの既存の通知ルールを更新します。

az load notification-rule update --load-test-resource --name
                                 --notification-rule-id
                                 [--action-groups]
                                 [--add-event]
                                 [--all-tests]
                                 [--display-name]
                                 [--remove-event]
                                 [--resource-group]
                                 [--test-ids]

すべてのテストで有効になっている通知ルールを更新します。

az load notification-rule update --load-test-resource sample-alt-resource --resource-group sample-rg --notification-rule-id notification-sample-id --all-tests

TestRunStarted イベントを既存の通知ルールに追加します。

az load notification-rule update --load-test-resource sample-alt-resource --resource-group sample-rg --notification-rule-id notification-sample-id --add-event event-id=event1 type=TestRunStarted

既存の通知ルールからイベントを削除し、アクション グループの一覧を更新します。

az load notification-rule update --load-test-resource sample-alt-resource --resource-group sample-rg --notification-rule-id notification-sample-id --remove-event event-id=event1 --action-groups /subscriptions/000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.insights/actiongroups/sample-ag

必須のパラメーター

--load-test-resource --name -n

ロード テスト リソースの名前または ARM リソース ID。

--notification-rule-id -i

通知ルールの識別子。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--action-groups

通知ルールのアクション グループのリソース ID のスペース区切りリスト。

--add-event

通知ルールで有効にするイベント。 予期される形式は --event event-id='event id' type='event type' status='a list of statuses in comma-separated format' result='a list of results in comma-separated format' です。 状態フィールドと結果フィールドは、イベントの種類 'TestRunEnded' に対してのみ有効です。

--all-tests

すべてのテストを通知ルールに含める必要がある場合は、このフラグを指定します。 これにより、--test-ids を使用して指定されたすべてのテストがオーバーライドされます。

プロパティ
規定値: False
--display-name

通知ルールの表示名。

--remove-event

通知ルールから削除するイベントのイベント ID を指定します。 形式は --remove-event event-id='event id' にする必要があります。

--resource-group -g

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

--test-ids

通知ルールのテスト ID のスペース区切りリスト。

グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False