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
必須のパラメーター
通知ルールのアクション グループのリソース ID のスペース区切りリスト。
ロード テスト リソースの名前または ARM リソース ID。
通知ルールの識別子。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通知ルールのすべてのイベントを含める必要がある場合は、このフラグを指定します。 これにより、--event を使用して提供されるすべてのイベントがオーバーライドされます。
プロパティ | 値 |
---|---|
規定値: | False |
すべてのテストを通知ルールに含める必要がある場合は、このフラグを指定します。 これにより、--test-ids を使用して指定されたすべてのテストがオーバーライドされます。
プロパティ | 値 |
---|---|
規定値: | False |
通知ルールの表示名。
通知ルールで有効にするイベント。 予期される形式は --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' に対してのみ有効です。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
通知ルールのテスト ID のスペース区切りリスト。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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
必須のパラメーター
ロード テスト リソースの名前または ARM リソース ID。
通知ルールの識別子。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
確認を求めないでください。
プロパティ | 値 |
---|---|
規定値: | False |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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
必須のパラメーター
ロード テスト リソースの名前または ARM リソース ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
通知ルールのテスト ID のスペース区切りリスト。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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
必須のパラメーター
ロード テスト リソースの名前または ARM リソース ID。
通知ルールの識別子。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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
必須のパラメーター
ロード テスト リソースの名前または ARM リソース ID。
通知ルールの識別子。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通知ルールのアクション グループのリソース ID のスペース区切りリスト。
通知ルールで有効にするイベント。 予期される形式は --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' に対してのみ有効です。
すべてのテストを通知ルールに含める必要がある場合は、このフラグを指定します。 これにより、--test-ids を使用して指定されたすべてのテストがオーバーライドされます。
プロパティ | 値 |
---|---|
規定値: | False |
通知ルールの表示名。
通知ルールから削除するイベントのイベント ID を指定します。 形式は --remove-event event-id='event id' にする必要があります。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
通知ルールのテスト ID のスペース区切りリスト。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、「 http://jmespath.org/ 」を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |