az monitor action-group test-notifications

Gestire le notifiche di test dei gruppi di azioni.

Comandi

Nome Descrizione Tipo Stato
az monitor action-group test-notifications create

Creare un gruppo di azioni test-notifications.

Memoria centrale Disponibilità generale

az monitor action-group test-notifications create

Creare un gruppo di azioni test-notifications.

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

Esempio

Creare un gruppo di azioni per testare le notifiche con un gruppo di azioni

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

Parametri necessari

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

Nome del gruppo di azioni.

--alert-type

Valore del tipo di avviso supportato. I valori dei tipi di avviso supportati sono: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.

--resource-group -g

Nome del gruppo di risorse. È possibile configurare il gruppo predefinito con az configure --defaults group=<name>.

Parametri facoltativi

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

Aggiungere ricevitori al gruppo di azioni. Utilizzo: --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_NUMBER Example: --add-action sms charli 1 5551234567 Webhook: Formato: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] Esempio: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier Usecommonalertschema Arm Role: Format: --add-action armrole NAME ROLE_ID [usecommonalertschema] Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4 push di app Azure bcb635: formato: --add-action azureapppush NAME EMAIL_ADDRESS Esempio: --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_ runbook di automazione blob useast: Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID edizione StandardRVICE_URI [isglobalrunbook] [usecommonalertschema] Esempio: --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 Example: --add-action voice charli 1 4441234567 App per la logica: Formato: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Esempio: --add-action logicapp test_logicapp test_rsrc http://callback funzione di Azure: Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] Esempio: --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] Example: --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' e 'usecommonalertschema' sono argomenti facoltativi che devono essere passati solo per impostare il rispettivo parametro su True. Se viene passato l'argomento 'useaadauth', sono necessari anche i valori OBJECT_ID e IDENTIFIER_URI. Supportare la sintassi abbreviata, json-file e yaml-file. Prova "??" per mostrare di più.

--no-wait

Indica che non è necessario attendere il termine dell'operazione a esecuzione prolungata.

valori accettati: 0, 1, f, false, n, no, t, true, y, yes
Parametri globali
--debug

Aumenta il livello di dettaglio della registrazione per mostrare tutti i log di debug.

--help -h

Visualizza questo messaggio della guida ed esce.

--only-show-errors

Mostra solo gli errori, eliminando gli avvisi.

--output -o

Formato di output.

valori accettati: json, jsonc, none, table, tsv, yaml, yamlc
valore predefinito: json
--query

Stringa di query JMESPath. Per altre informazioni ed esempi, vedere http://jmespath.org/.

--subscription

Nome o ID della sottoscrizione. È possibile configurare la sottoscrizione predefinita usando az account set -s NAME_OR_ID.

--verbose

Aumenta il livello di dettaglio della registrazione. Usare --debug per log di debug completi.