Partager via


az monitor action-group test-notifications

Gérer les notifications de test des groupes d’actions.

Commandes

Nom Description Type Statut
az monitor action-group test-notifications create

Créez des notifications de test de groupe d’actions.

Core GA

az monitor action-group test-notifications create

Créez des notifications de test de groupe d’actions.

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

Exemples

Créer des notifications de test de groupe d’actions avec un groupe d’actions

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

Paramètres obligatoires

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

Nom du groupe d’actions.

--alert-type

Valeur du type d’alerte pris en charge. Les valeurs de type d’alerte prises en charge sont les suivantes : servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.

--resource-group -g

Nom du groupe de ressources. Vous pouvez configurer le groupe par défaut en utilisant az configure --defaults group=<name>.

Paramètres facultatifs

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

Ajoutez des récepteurs au groupe d’actions. Utilisation : --add-action TYPE NAME [ARG ...] E-mail : 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_NUMo ER Example : --add-action sms charli 1 5551234567 Webhook : Format : --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFICATEUR URI] [usecommonalertschema] Exemple : --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema Arm Role : Format : --add-action armrole NAME ROLE_ID [usecommonalertschema] Exemple : --add-action armole owner_role 8e3af657-a8ff-443c-a75c-a75c-2fe8c4bc Push d’application Azureb635 : Format : --add-action azureapppush NAME EMAIL_ADDRESS Exemple : --add-action azureapppush test_apppush bob@contoso.com ITSM : Format : --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION Example : --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 SERVICE_URI [isglobalrunbook] [usecommonalertschema] Exemple : --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_NUMoExemple ER : --add-action voice charli 1 4441234567 Logic App : Format : --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Exemple : --add-action logicapp test_logicapp test_rsrc Azure Function : Format : --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] Exemple : --add-action azurefunction test_function test_rsrc test_func http://callbackhttp://trigger usecommonalertschema Event Hub : Format : --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] Exemple : --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec5333819a3 eventhubNameSpace testEventHubName usecommonalertschema actions multiples peuvent être spécifiées à l’aide de plusieurs --add-action arguments. 'useaadauth', 'isglobalrunbook' et 'usecommonalertschema' sont des arguments facultatifs qui doivent uniquement être passés pour définir le paramètre respectif sur True. Si l’argument « useaadauth » est passé, les valeurs OBJECT_ID et IDENTIFIER_URI sont également requises. Prendre en charge la syntaxe abrégée, json-file et yaml-file. Essayez « ?? » pour en montrer plus.

--no-wait

Ne pas attendre la fin de l’opération de longue durée.

valeurs acceptées: 0, 1, f, false, n, no, t, true, y, yes
Paramètres globaux
--debug

Augmentez le niveau de détail de la journalisation pour afficher tous les journaux de débogage.

--help -h

Affichez ce message d’aide et quittez.

--only-show-errors

Afficher uniquement les erreurs, en supprimant les avertissements.

--output -o

Format de sortie.

valeurs acceptées: json, jsonc, none, table, tsv, yaml, yamlc
valeur par défaut: json
--query

Chaîne de requêtes JMESPath. Pour plus d’informations et d’exemples, consultez http://jmespath.org/.

--subscription

Nom ou ID de l’abonnement. Vous pouvez configurer l’abonnement par défaut en utilisant az account set -s NAME_OR_ID.

--verbose

Augmentez le niveau de détail de la journalisation. Utilisez --debug pour des journaux de débogage complets.