az monitor action-group test-notifications

Verwalten von Testbenachrichtigungen für Aktionsgruppen.

Befehle

Name Beschreibung Typ Status
az monitor action-group test-notifications create

Erstellen Sie testbenachrichtigungen für Aktionsgruppen.

Kernspeicher Allgemein verfügbar

az monitor action-group test-notifications create

Erstellen Sie testbenachrichtigungen für Aktionsgruppen.

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}]

Beispiele

Erstellen einer Aktionsgruppe mit Testbenachrichtigungen mit Aktionsgruppe

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

Erforderliche Parameter

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

Der Name der Aktionsgruppe.

--alert-type

Der Wert des unterstützten Warnungstyps. Unterstützte Warnungstypwerte sind: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.

--resource-group -g

Name der Ressourcengruppe Sie können die Standardgruppe mit az configure --defaults group=<name> konfigurieren.

Optionale Parameter

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

Fügen Sie der Aktionsgruppe Empfänger hinzu. Verwendung: --add-action TYPE NAME [ARG ...] E-Mail: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema] Beispiel: --add-action email bob bob@contoso.com SMS: Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER Beispiel: --add-action sms charli 1 5551234567 Webhook: Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] Beispiel: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema Arm Role: Format: --add-action armrole NAME ROLE_ID [usecommonalertschema] Beispiel: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 Azure-App Push: Format: --add-action azureapppush NAME EMAIL_ADDRESS Beispiel: --add-action azureapppush test_apppush bob@contoso.com ITSM: Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION Beispiel: --add-action itsm test_itsm test_workspace test_conn ticket_ Runbook für blob useast Automation: Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema] Beispiel: --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_NUMBER Beispiel: --add-action voice charli 1 4441234567 Logic App: Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Beispiel: --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] Beispiel: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema Event Hub: Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] Beispiel: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema Multiple actions can be specified by using more than one --add-action argument. 'useaadauth', 'isglobalrunbook' und 'usecommonalertschema' sind optionale Argumente, die nur übergeben werden müssen, um den jeweiligen Parameter auf True festzulegen. Wenn das Argument "useaadauth" übergeben wird, sind auch die werte OBJECT_ID und IDENTIFIER_URI erforderlich. Unterstützung von Shorthand-Syntax, JSON-Datei und Yaml-Datei. Probieren Sie "??" aus, um mehr anzuzeigen.

--no-wait

Nicht auf den Abschluss lang andauernder Vorgänge warten

Zulässige Werte: 0, 1, f, false, n, no, t, true, y, yes
Globale Parameter
--debug

Ausführlichkeit der Protokollierung erhöhen, um alle Debugprotokolle anzuzeigen.

--help -h

Zeigen Sie diese Hilfemeldung an, und schließen Sie sie.

--only-show-errors

Nur Fehler anzeigen und Warnungen unterdrücken.

--output -o

Ausgabeformat.

Zulässige Werte: json, jsonc, none, table, tsv, yaml, yamlc
Standardwert: json
--query

JMESPath-Abfragezeichenfolge. Weitere Informationen und Beispiele finden Sie unter http://jmespath.org/.

--subscription

Der Name oder die ID des Abonnements. Sie können das standardmäßig verwendete Abonnement mittels az account set -s NAME_OR_ID konfigurieren.

--verbose

Ausführlichkeit der Protokollierung erhöhen. „--debug“ für vollständige Debugprotokolle verwenden.