az monitor action-group test-notifications

アクション グループのテスト通知を管理します。

コマンド

名前 説明 Status
az monitor action-group test-notifications create

アクション グループのテスト通知を作成します。

コア GA

az monitor action-group test-notifications create

アクション グループのテスト通知を作成します。

az monitor action-group test-notifications create --action-group
                                                  --alert-type
                                                  --resource-group
                                                  [--add-action]
                                                  [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

アクション グループを使用してアクション グループのテスト通知を作成する

az monitor action-group test-notifications create --action-group MyActionGroup \ --resource-group MyResourceGroup -a email alice alice@example.com usecommonalertsChema --alert-type budget

必須のパラメーター

--action-group --action-group-name

アクション グループの名前。

--alert-type

サポートされているアラートの種類の値。 サポートされているアラートの種類の値は、servicehealth、metricstaticthreshold、metricsdynamicthreshold、logalertv2、smartalert、webtestalert、logalertv1numresult、logalertv1metricmeasurement、resourcehealth、activitylog、budget です。

--resource-group -g

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

省略可能のパラメーター

--add-action --add-actions -a

受信者をアクション グループに追加します。 使用法: --add-action TYPE NAME [ARG ...]Email: Format: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema] Example: --add-action email bob bob@contoso.com SMS: Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMB (メガバイト)ER Example: --add-action sms charli 1 5551234567 Webhook: 形式: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] 例: --add-action https://www.contoso.com/alert useaadauth testobj http://identifierusecommonalertschema Arm Role: Format: --add-action armrole NAME ROLE_ID [usecommonalertschema] Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe 8c4bcb635 Azure アプリ プッシュ: 形式: --add-action azureapppush NAME EMAIL_ADDRESS 例: --add-action azureapppush test_apppush bob@contoso.com ITSM: Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION 例: --add-action itsm test_itsm test_workspace test_conn ticket_blob useast Automation Runbook: Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID Standard EditionRVICE_URI [isglobalrunbook] [usecommonalertschema] Example: --add-action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema Voice: Format: --add-action voice NAME COUNTRY_CODE PHONE_NUMB (メガバイト)ER の例: --add-action voice charli 1 4441234567 Logic App: Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Example: --add-action logicapp test_logicapp test_rsrc http://callback Azure Function: Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] Example: --add-action azurefunction test_function test_rsrc test_func http://triggerusecommonalertschema Event Hub: Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] 例: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema 複数のアクションは、--add-action複数の引数を使用して指定できます。 'useaadauth'、'isglobalrunbook' および 'usecommonalertschema' は省略可能な引数であり、それぞれのパラメーターを True に設定するためにのみ渡す必要があります。 'useaadauth' 引数が渡された場合は、OBJECT_ID値とIDENTIFIER_URI値も必要です。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

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

--only-show-errors

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

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

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

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。