Aracılığıyla paylaş


az monitor action-group test-notifications

Eylem gruplarının test bildirimlerini yönetme.

Komutlar

Name Description Tür Durum
az monitor action-group test-notifications create

Eylem grubu test bildirimleri oluşturun.

Temel GA

az monitor action-group test-notifications create

Eylem grubu test bildirimleri oluşturun.

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

Örnekler

Eylem grubuyla eylem grubu test bildirimleri oluşturma

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

Gerekli Parametreler

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

Eylem grubunun adı.

--alert-type

Desteklenen uyarı türünün değeri. Desteklenen uyarı türü değerleri şunlardır: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget.

--resource-group -g

Kaynak grubunun adı. kullanarak varsayılan grubu az configure --defaults group=<name>yapılandırabilirsiniz.

İsteğe Bağlı Parametreler

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

Eylem grubuna alıcılar ekleyin. Kullanım: --add-action TYPE NAME [ARG ...] E-posta: Biçim: --add-action e-posta AD EMAIL_ADDRESS [usecommonalertschema] Örnek: --add-action email bob bob@contoso.com SMS: Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER Örnek: --add-action sms charli 2 1 5551234567 Web Kancası: Biçim: --add-action web kancası AD URI'si [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] Örnek: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema Arm Rolü: Biçim: --add-action armrole NAME ROLE_ID [usecommonalertschema] Örnek: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 Azure Uygulaması Gönderme: Biçim: --add-action azureapppush NAME EMAIL_ADDRESS Örnek: --add-action azureapppush test_apppush bob@contoso.com ITSM: Biçim: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION Örnek: --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] Örnek: --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 Örnek: --add-action voice charli 1 4441234567 Logic App: Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] Örnek: --add-action logicapp test_logicapp test_rsrc http://callback Azure İşlevi: Biçim: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] Örnek: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema Olay Hub'ı: Biçim: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] Örnek: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema Birden fazla bağımsız değişken kullanılarak birden çok --add-action eylem belirtilebilir. 'useaadauth', 'isglobalrunbook' ve 'usecommonalertschema' yalnızca ilgili parametreyi True olarak ayarlamak için geçirilmesi gereken isteğe bağlı bağımsız değişkenlerdir. 'useaadauth' bağımsız değişkeni geçirilirse, OBJECT_ID ve IDENTIFIER_URI değerleri de gerekir. Kısa söz dizimi, json-file ve yaml-file desteği. Daha fazla göstermek için "??" seçeneğini deneyin.

--no-wait

Uzun süre çalışan işlemin bitmesini beklemeyin.

kabul edilen değerler: 0, 1, f, false, n, no, t, true, y, yes
Global Parametreler
--debug

Tüm hata ayıklama günlüklerini göstermek için günlük ayrıntı düzeyini artırın.

--help -h

Bu yardım iletisini göster ve çık.

--only-show-errors

Yalnızca hataları gösterir ve uyarıları gizler.

--output -o

Çıkış biçimi.

kabul edilen değerler: json, jsonc, none, table, tsv, yaml, yamlc
varsayılan değer: json
--query

JMESPath sorgu dizesi. Daha fazla bilgi ve örnek için bkz http://jmespath.org/ .

--subscription

Aboneliğin adı veya kimliği. kullanarak az account set -s NAME_OR_IDvarsayılan aboneliği yapılandırabilirsiniz.

--verbose

Günlük ayrıntı düzeyini artırın. Tam hata ayıklama günlükleri için --debug komutunu kullanın.