az monitor action-group test-notifications
Gestire le notifiche di test dei gruppi di azioni.
Comandi
Nome | Descrizione | Tipo | Status |
---|---|---|---|
az monitor action-group test-notifications create |
Creare un gruppo di azioni test-notifications. |
Nucleo | GA |
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
Nome del gruppo di azioni.
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.
Nome del gruppo di risorse. È possibile configurare il gruppo predefinito usando az configure --defaults group=<name>
.
Parametri facoltativi
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: Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] Example: --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-2fe8c4bcb635 Azure App Push: Format: --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_blob useast Automation runbook: Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_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 Logic App: Formato: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Esempio: --add-action logicapp test_logicapp test_rsrc http://callback Funzione di Azure: Formato: --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] Esempio: --action eventhub test_eventhub 5def È possibile specificare più azioni usando più azioni --add-action
usando più azioni di --add-action
92a-3ed4-49c1-49c1-b9fd-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema Multiple actions.
'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ù.
Non attendere il completamento dell'operazione a esecuzione prolungata.
Parametri globali
Aumentare la verbosità dei log per visualizzare tutti i log di debug.
Mostra questo messaggio Guida, esci.
Mostra solo gli errori, eliminando gli avvisi.
Formato dell'output.
Stringa di query JMESPath. Per altre informazioni ed esempi, vedere http://jmespath.org/.
Nome o ID della sottoscrizione. È possibile configurare la posizione predefinito usando az account set -s NAME_OR_ID
.
Aumentare il livello di dettaglio della registrazione. Usare --debug per log di debug completi.