diff --git a/Commands/monitor/action-group/test-notifications/_create.md b/Commands/monitor/action-group/test-notifications/_create.md index 84b5803cf..161074b44 100644 --- a/Commands/monitor/action-group/test-notifications/_create.md +++ b/Commands/monitor/action-group/test-notifications/_create.md @@ -12,5 +12,5 @@ Create an action group test-notifications. - Create an action group test-notifications with action group ```bash - monitor action-group test-notifications create --action-group MyActionGroup \ --resource-group MyResourceGroup -a email alice alice@example.com usecommonalertsChema --alert-type budget + monitor action-group test-notifications create --action-group MyActionGroup --resource-group MyResourceGroup -a email alice alice@example.com usecommonalertsChema --alert-type budget ``` diff --git a/Commands/monitor/activity-log/alert/_create.md b/Commands/monitor/activity-log/alert/_create.md index c23a40e5a..a062114f8 100644 --- a/Commands/monitor/activity-log/alert/_create.md +++ b/Commands/monitor/activity-log/alert/_create.md @@ -45,12 +45,12 @@ This command will create a default activity log with one condition which compare - Create an alert rule with condition about error level service health log. ```bash - monitor activity-log alert create -n AlertName -g ResourceGroup \ --condition category=ServiceHealth and level=Error + monitor activity-log alert create -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error ``` - Create an alert rule with an action group and specify webhook properties. ```bash - monitor activity-log alert create -n AlertName -g ResourceGroup \ -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/acti onGroups/{ActionGroup} \ -w usage=test owner=jane + monitor activity-log alert create -n AlertName -g ResourceGroup -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/actionGroups/{ActionGroup} -w usage=test owner=jane ``` - Create an alert rule which is initially disabled. diff --git a/Commands/monitor/activity-log/alert/_update.md b/Commands/monitor/activity-log/alert/_update.md index d14244b56..d4941a85b 100644 --- a/Commands/monitor/activity-log/alert/_update.md +++ b/Commands/monitor/activity-log/alert/_update.md @@ -38,7 +38,7 @@ Update a new activity log alert or update an existing one. - Update the condition ```bash - monitor activity-log alert update -n AlertName -g ResourceGroup \ --condition category=ServiceHealth and level=Error + monitor activity-log alert update -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error ``` - Disable an alert rule. diff --git a/Commands/monitor/autoscale/_create.md b/Commands/monitor/autoscale/_create.md index 90c0f51f4..4247ce5ae 100644 --- a/Commands/monitor/autoscale/_create.md +++ b/Commands/monitor/autoscale/_create.md @@ -14,9 +14,9 @@ For more information on autoscaling, visit: https://docs.microsoft.com/azure/mon - Create autoscale settings to scale between 2 and 5 instances (3 as default). Email the administrator when scaling occurs. ```bash - monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 \ --count 3 --email-administrator - monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 \ --condition "Percentage CPU > 75 avg 5m" - monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 \ --condition "Percentage CPU < 25 avg 5m" + monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 --count 3 --email-administrator + monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 --condition "Percentage CPU > 75 avg 5m" + monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 --condition "Percentage CPU < 25 avg 5m" ``` - Create autoscale settings for exactly 4 instances. diff --git a/Commands/monitor/autoscale/_update.md b/Commands/monitor/autoscale/_update.md index a8355c976..81759c664 100644 --- a/Commands/monitor/autoscale/_update.md +++ b/Commands/monitor/autoscale/_update.md @@ -19,7 +19,7 @@ For more information on autoscaling, visit: https://docs.microsoft.com/azure/mon - Update autoscale settings to remove an email notification. ```bash - monitor autoscale update -g myrg -n autoscale-name \ --remove-action email bob@contoso.com + monitor autoscale update -g myrg -n autoscale-name --remove-action email bob@contoso.com ``` - Update autoscale settings. diff --git a/Commands/tree.json b/Commands/tree.json index 2fed4759a..9243d6c1f 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -56738,7 +56738,7 @@ "examples": [ { "commands": [ - "monitor action-group test-notifications create --action-group MyActionGroup \\ --resource-group MyResourceGroup -a email alice alice@example.com usecommonalertsChema --alert-type budget" + "monitor action-group test-notifications create --action-group MyActionGroup --resource-group MyResourceGroup -a email alice alice@example.com usecommonalertsChema --alert-type budget" ], "name": "Create an action group test-notifications with action group" } @@ -57003,13 +57003,13 @@ }, { "commands": [ - "monitor activity-log alert create -n AlertName -g ResourceGroup \\ --condition category=ServiceHealth and level=Error" + "monitor activity-log alert create -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error" ], "name": "Create an alert rule with condition about error level service health log." }, { "commands": [ - "monitor activity-log alert create -n AlertName -g ResourceGroup \\ -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/acti onGroups/{ActionGroup} \\ -w usage=test owner=jane" + "monitor activity-log alert create -n AlertName -g ResourceGroup -a /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/microsoft.insights/actionGroups/{ActionGroup} -w usage=test owner=jane" ], "name": "Create an alert rule with an action group and specify webhook properties." }, @@ -57191,7 +57191,7 @@ "examples": [ { "commands": [ - "monitor activity-log alert update -n AlertName -g ResourceGroup \\ --condition category=ServiceHealth and level=Error" + "monitor activity-log alert update -n AlertName -g ResourceGroup --condition category=ServiceHealth and level=Error" ], "name": "Update the condition" }, @@ -58626,9 +58626,9 @@ "examples": [ { "commands": [ - "monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 \\ --count 3 --email-administrator", - "monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 \\ --condition \"Percentage CPU > 75 avg 5m\"", - "monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 \\ --condition \"Percentage CPU < 25 avg 5m\"" + "monitor autoscale create -g myrg --resource resource-id --min-count 2 --max-count 5 --count 3 --email-administrator", + "monitor autoscale rule create -g myrg --autoscale-name resource-name --scale out 1 --condition \"Percentage CPU > 75 avg 5m\"", + "monitor autoscale rule create -g myrg --autoscale-name resource-name --scale in 1 --condition \"Percentage CPU < 25 avg 5m\"" ], "name": "Create autoscale settings to scale between 2 and 5 instances (3 as default). Email the administrator when scaling occurs." }, @@ -58775,7 +58775,7 @@ }, { "commands": [ - "monitor autoscale update -g myrg -n autoscale-name \\ --remove-action email bob@contoso.com" + "monitor autoscale update -g myrg -n autoscale-name --remove-action email bob@contoso.com" ], "name": "Update autoscale settings to remove an email notification." }, diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.json index aa6d0ac84..c518f5634 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "version": "2022-06-01", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvYWN0aW9uR3JvdXBzL3thY3Rpb25Hcm91cE5hbWV9L2NyZWF0ZU5vdGlmaWNhdGlvbnM=/V/MjAyMi0wNi0wMQ=="}], "commandGroups": [{"name": "monitor action-group test-notifications", "commands": [{"name": "create", "version": "2022-06-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "version": "2022-06-01", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvYWN0aW9uR3JvdXBzL3thY3Rpb25Hcm91cE5hbWV9L2NyZWF0ZU5vdGlmaWNhdGlvbnM=/V/MjAyMi0wNi0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.actionGroupName", "options": ["action-group", "action-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the action group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$notificationRequest.alertType", "options": ["alert-type"], "required": true, "group": "", "help": {"short": "The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget"}, "format": {"maxLength": 30}}]}, {"name": "NotificationRequest", "args": [{"type": "array", "var": "$notificationRequest.armRoleReceivers", "options": ["arm-role-receivers"], "group": "NotificationRequest", "help": {"short": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.armRoleReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the arm role receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.armRoleReceivers[].roleId", "options": ["role-id"], "required": true, "help": {"short": "The arm role id."}}, {"type": "boolean", "var": "$notificationRequest.armRoleReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.automationRunbookReceivers", "options": ["automation-runbook-receivers"], "group": "NotificationRequest", "help": {"short": "The list of AutomationRunbook receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].automationAccountId", "options": ["automation-account-id"], "required": true, "help": {"short": "The Azure automation account Id which holds this runbook and authenticate to Azure resource."}}, {"type": "boolean", "var": "$notificationRequest.automationRunbookReceivers[].isGlobalRunbook", "options": ["is-global-runbook"], "required": true, "help": {"short": "Indicates whether this instance is global runbook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].name", "options": ["name"], "help": {"short": "Indicates name of the webhook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].runbookName", "options": ["runbook-name"], "required": true, "help": {"short": "The name for this runbook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].serviceUri", "options": ["service-uri"], "help": {"short": "The URI where webhooks should be sent."}}, {"type": "boolean", "var": "$notificationRequest.automationRunbookReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].webhookResourceId", "options": ["webhook-resource-id"], "required": true, "help": {"short": "The resource id for webhook linked to this runbook."}}]}}, {"type": "array", "var": "$notificationRequest.azureAppPushReceivers", "options": ["azure-app-push-receivers"], "group": "NotificationRequest", "help": {"short": "The list of AzureAppPush receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.azureAppPushReceivers[].emailAddress", "options": ["email-address"], "required": true, "help": {"short": "The email address registered for the Azure mobile app."}}, {"type": "string", "var": "$notificationRequest.azureAppPushReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group."}}]}}, {"type": "array", "var": "$notificationRequest.azureFunctionReceivers", "options": ["azure-function-receivers"], "group": "NotificationRequest", "help": {"short": "The list of azure function receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].functionAppResourceId", "options": ["function-app-resource-id"], "required": true, "help": {"short": "The azure resource id of the function app."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].functionName", "options": ["function-name"], "required": true, "help": {"short": "The function name in the function app."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].httpTriggerUrl", "options": ["http-trigger-url"], "required": true, "help": {"short": "The http trigger url where http request sent to."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the azure function receiver. Names must be unique across all receivers within an action group."}}, {"type": "boolean", "var": "$notificationRequest.azureFunctionReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.emailReceivers", "options": ["email-receivers"], "group": "NotificationRequest", "help": {"short": "The list of email receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.emailReceivers[].emailAddress", "options": ["email-address"], "required": true, "help": {"short": "The email address of this receiver."}}, {"type": "string", "var": "$notificationRequest.emailReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the email receiver. Names must be unique across all receivers within an action group."}}, {"type": "boolean", "var": "$notificationRequest.emailReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.eventHubReceivers", "options": ["event-hub-receivers"], "group": "NotificationRequest", "help": {"short": "The list of event hub receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.eventHubReceivers[].eventHubName", "options": ["event-hub-name"], "required": true, "help": {"short": "The name of the specific Event Hub queue"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].eventHubNameSpace", "options": ["event-hub-name-space"], "required": true, "help": {"short": "The Event Hub namespace"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Event hub receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].subscriptionId", "options": ["subscription-id"], "required": true, "help": {"short": "The Id for the subscription containing this event hub"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].tenantId", "options": ["tenant-id"], "help": {"short": "The tenant Id for the subscription containing this event hub"}}, {"type": "boolean", "var": "$notificationRequest.eventHubReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.itsmReceivers", "options": ["itsm-receivers"], "group": "NotificationRequest", "help": {"short": "The list of ITSM receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.itsmReceivers[].connectionId", "options": ["connection-id"], "required": true, "help": {"short": "Unique identification of ITSM connection among multiple defined in above workspace."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Itsm receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].region", "options": ["region"], "required": true, "help": {"short": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'"}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].ticketConfiguration", "options": ["ticket-configuration"], "required": true, "help": {"short": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].workspaceId", "options": ["workspace-id"], "required": true, "help": {"short": "OMS LA instance identifier."}}]}}, {"type": "array", "var": "$notificationRequest.logicAppReceivers", "options": ["logic-app-receivers"], "group": "NotificationRequest", "help": {"short": "The list of logic app receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.logicAppReceivers[].callbackUrl", "options": ["callback-url"], "required": true, "help": {"short": "The callback url where http request sent to."}}, {"type": "string", "var": "$notificationRequest.logicAppReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the logic app receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.logicAppReceivers[].resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The azure resource id of the logic app receiver."}}, {"type": "boolean", "var": "$notificationRequest.logicAppReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.smsReceivers", "options": ["sms-receivers"], "group": "NotificationRequest", "help": {"short": "The list of SMS receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.smsReceivers[].countryCode", "options": ["country-code"], "required": true, "help": {"short": "The country code of the SMS receiver."}}, {"type": "string", "var": "$notificationRequest.smsReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the SMS receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.smsReceivers[].phoneNumber", "options": ["phone-number"], "required": true, "help": {"short": "The phone number of the SMS receiver."}}]}}, {"type": "array", "var": "$notificationRequest.voiceReceivers", "options": ["voice-receivers"], "group": "NotificationRequest", "help": {"short": "The list of voice receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.voiceReceivers[].countryCode", "options": ["country-code"], "required": true, "help": {"short": "The country code of the voice receiver."}}, {"type": "string", "var": "$notificationRequest.voiceReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the voice receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.voiceReceivers[].phoneNumber", "options": ["phone-number"], "required": true, "help": {"short": "The phone number of the voice receiver."}}]}}, {"type": "array", "var": "$notificationRequest.webhookReceivers", "options": ["webhook-receivers"], "group": "NotificationRequest", "help": {"short": "The list of webhook receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.webhookReceivers[].identifierUri", "options": ["identifier-uri"], "help": {"short": "Indicates the identifier uri for aad auth."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the webhook receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].objectId", "options": ["object-id"], "help": {"short": "Indicates the webhook app object Id for aad auth."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].serviceUri", "options": ["service-uri"], "required": true, "help": {"short": "The URI where webhooks should be sent."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].tenantId", "options": ["tenant-id"], "help": {"short": "Indicates the tenant id for aad auth."}}, {"type": "boolean", "var": "$notificationRequest.webhookReceivers[].useAadAuth", "options": ["use-aad-auth"], "help": {"short": "Indicates whether or not use AAD authentication."}, "default": {"value": false}}, {"type": "boolean", "var": "$notificationRequest.webhookReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ActionGroups_CreateNotificationsAtActionGroupResourceLevel", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/createNotifications", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "actionGroupName", "arg": "$Path.actionGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-06-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "notificationRequest", "required": true, "props": [{"type": "string", "name": "alertType", "arg": "$notificationRequest.alertType", "required": true, "format": {"maxLength": 30}}, {"type": "array", "name": "armRoleReceivers", "arg": "$notificationRequest.armRoleReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$notificationRequest.armRoleReceivers[].name", "required": true}, {"type": "string", "name": "roleId", "arg": "$notificationRequest.armRoleReceivers[].roleId", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.armRoleReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "automationRunbookReceivers", "arg": "$notificationRequest.automationRunbookReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "automationAccountId", "arg": "$notificationRequest.automationRunbookReceivers[].automationAccountId", "required": true}, {"type": "boolean", "name": "isGlobalRunbook", "arg": "$notificationRequest.automationRunbookReceivers[].isGlobalRunbook", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.automationRunbookReceivers[].name"}, {"type": "string", "name": "runbookName", "arg": "$notificationRequest.automationRunbookReceivers[].runbookName", "required": true}, {"type": "string", "name": "serviceUri", "arg": "$notificationRequest.automationRunbookReceivers[].serviceUri"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.automationRunbookReceivers[].useCommonAlertSchema"}, {"type": "string", "name": "webhookResourceId", "arg": "$notificationRequest.automationRunbookReceivers[].webhookResourceId", "required": true}]}}, {"type": "array", "name": "azureAppPushReceivers", "arg": "$notificationRequest.azureAppPushReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "emailAddress", "arg": "$notificationRequest.azureAppPushReceivers[].emailAddress", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.azureAppPushReceivers[].name", "required": true}]}}, {"type": "array", "name": "azureFunctionReceivers", "arg": "$notificationRequest.azureFunctionReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "functionAppResourceId", "arg": "$notificationRequest.azureFunctionReceivers[].functionAppResourceId", "required": true}, {"type": "string", "name": "functionName", "arg": "$notificationRequest.azureFunctionReceivers[].functionName", "required": true}, {"type": "string", "name": "httpTriggerUrl", "arg": "$notificationRequest.azureFunctionReceivers[].httpTriggerUrl", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.azureFunctionReceivers[].name", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.azureFunctionReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "emailReceivers", "arg": "$notificationRequest.emailReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "emailAddress", "arg": "$notificationRequest.emailReceivers[].emailAddress", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.emailReceivers[].name", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.emailReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "eventHubReceivers", "arg": "$notificationRequest.eventHubReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "eventHubName", "arg": "$notificationRequest.eventHubReceivers[].eventHubName", "required": true}, {"type": "string", "name": "eventHubNameSpace", "arg": "$notificationRequest.eventHubReceivers[].eventHubNameSpace", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.eventHubReceivers[].name", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$notificationRequest.eventHubReceivers[].subscriptionId", "required": true}, {"type": "string", "name": "tenantId", "arg": "$notificationRequest.eventHubReceivers[].tenantId"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.eventHubReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "itsmReceivers", "arg": "$notificationRequest.itsmReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "connectionId", "arg": "$notificationRequest.itsmReceivers[].connectionId", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.itsmReceivers[].name", "required": true}, {"type": "string", "name": "region", "arg": "$notificationRequest.itsmReceivers[].region", "required": true}, {"type": "string", "name": "ticketConfiguration", "arg": "$notificationRequest.itsmReceivers[].ticketConfiguration", "required": true}, {"type": "string", "name": "workspaceId", "arg": "$notificationRequest.itsmReceivers[].workspaceId", "required": true}]}}, {"type": "array", "name": "logicAppReceivers", "arg": "$notificationRequest.logicAppReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "callbackUrl", "arg": "$notificationRequest.logicAppReceivers[].callbackUrl", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.logicAppReceivers[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$notificationRequest.logicAppReceivers[].resourceId", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.logicAppReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "smsReceivers", "arg": "$notificationRequest.smsReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "countryCode", "arg": "$notificationRequest.smsReceivers[].countryCode", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.smsReceivers[].name", "required": true}, {"type": "string", "name": "phoneNumber", "arg": "$notificationRequest.smsReceivers[].phoneNumber", "required": true}]}}, {"type": "array", "name": "voiceReceivers", "arg": "$notificationRequest.voiceReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "countryCode", "arg": "$notificationRequest.voiceReceivers[].countryCode", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.voiceReceivers[].name", "required": true}, {"type": "string", "name": "phoneNumber", "arg": "$notificationRequest.voiceReceivers[].phoneNumber", "required": true}]}}, {"type": "array", "name": "webhookReceivers", "arg": "$notificationRequest.webhookReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "identifierUri", "arg": "$notificationRequest.webhookReceivers[].identifierUri"}, {"type": "string", "name": "name", "arg": "$notificationRequest.webhookReceivers[].name", "required": true}, {"type": "string", "name": "objectId", "arg": "$notificationRequest.webhookReceivers[].objectId"}, {"type": "string", "name": "serviceUri", "arg": "$notificationRequest.webhookReceivers[].serviceUri", "required": true}, {"type": "string", "name": "tenantId", "arg": "$notificationRequest.webhookReceivers[].tenantId"}, {"default": {"value": false}, "type": "boolean", "name": "useAadAuth", "arg": "$notificationRequest.webhookReceivers[].useAadAuth"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.webhookReceivers[].useCommonAlertSchema"}]}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "actionDetails", "item": {"type": "object", "props": [{"type": "string", "name": "Detail"}, {"type": "string", "name": "MechanismType"}, {"type": "string", "name": "Name"}, {"type": "string", "name": "SendTime"}, {"type": "string", "name": "Status"}, {"type": "string", "name": "SubState"}]}}, {"type": "string", "name": "completedTime"}, {"type": "object", "name": "context", "props": [{"type": "string", "name": "contextType"}, {"type": "string", "name": "notificationSource"}]}, {"type": "string", "name": "createdTime"}, {"type": "string", "name": "state", "required": true}]}}}}, {"statusCode": [202], "header": {"items": [{"name": "location"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "version": "2022-06-01", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvYWN0aW9uR3JvdXBzL3thY3Rpb25Hcm91cE5hbWV9L2NyZWF0ZU5vdGlmaWNhdGlvbnM=/V/MjAyMi0wNi0wMQ=="}], "commandGroups": [{"name": "monitor action-group test-notifications", "commands": [{"name": "create", "version": "2022-06-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "version": "2022-06-01", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvYWN0aW9uR3JvdXBzL3thY3Rpb25Hcm91cE5hbWV9L2NyZWF0ZU5vdGlmaWNhdGlvbnM=/V/MjAyMi0wNi0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.actionGroupName", "options": ["action-group", "action-group-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the action group."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$notificationRequest.alertType", "options": ["alert-type"], "required": true, "group": "", "help": {"short": "The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, budget"}, "format": {"maxLength": 30}}]}, {"name": "NotificationRequest", "args": [{"type": "array", "var": "$notificationRequest.armRoleReceivers", "options": ["arm-role-receivers"], "group": "NotificationRequest", "help": {"short": "The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.armRoleReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the arm role receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.armRoleReceivers[].roleId", "options": ["role-id"], "required": true, "help": {"short": "The arm role id."}}, {"type": "boolean", "var": "$notificationRequest.armRoleReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.automationRunbookReceivers", "options": ["automation-runbook-receivers"], "group": "NotificationRequest", "help": {"short": "The list of AutomationRunbook receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].automationAccountId", "options": ["automation-account-id"], "required": true, "help": {"short": "The Azure automation account Id which holds this runbook and authenticate to Azure resource."}}, {"type": "boolean", "var": "$notificationRequest.automationRunbookReceivers[].isGlobalRunbook", "options": ["is-global-runbook"], "required": true, "help": {"short": "Indicates whether this instance is global runbook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].name", "options": ["name"], "help": {"short": "Indicates name of the webhook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].runbookName", "options": ["runbook-name"], "required": true, "help": {"short": "The name for this runbook."}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].serviceUri", "options": ["service-uri"], "help": {"short": "The URI where webhooks should be sent."}}, {"type": "boolean", "var": "$notificationRequest.automationRunbookReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}, {"type": "string", "var": "$notificationRequest.automationRunbookReceivers[].webhookResourceId", "options": ["webhook-resource-id"], "required": true, "help": {"short": "The resource id for webhook linked to this runbook."}}]}}, {"type": "array", "var": "$notificationRequest.azureAppPushReceivers", "options": ["azure-app-push-receivers"], "group": "NotificationRequest", "help": {"short": "The list of AzureAppPush receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.azureAppPushReceivers[].emailAddress", "options": ["email-address"], "required": true, "help": {"short": "The email address registered for the Azure mobile app."}}, {"type": "string", "var": "$notificationRequest.azureAppPushReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group."}}]}}, {"type": "array", "var": "$notificationRequest.azureFunctionReceivers", "options": ["azure-function-receivers"], "group": "NotificationRequest", "help": {"short": "The list of azure function receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].functionAppResourceId", "options": ["function-app-resource-id"], "required": true, "help": {"short": "The azure resource id of the function app."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].functionName", "options": ["function-name"], "required": true, "help": {"short": "The function name in the function app."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].httpTriggerUrl", "options": ["http-trigger-url"], "required": true, "help": {"short": "The http trigger url where http request sent to."}}, {"type": "string", "var": "$notificationRequest.azureFunctionReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the azure function receiver. Names must be unique across all receivers within an action group."}}, {"type": "boolean", "var": "$notificationRequest.azureFunctionReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.emailReceivers", "options": ["email-receivers"], "group": "NotificationRequest", "help": {"short": "The list of email receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.emailReceivers[].emailAddress", "options": ["email-address"], "required": true, "help": {"short": "The email address of this receiver."}}, {"type": "string", "var": "$notificationRequest.emailReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the email receiver. Names must be unique across all receivers within an action group."}}, {"type": "boolean", "var": "$notificationRequest.emailReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.eventHubReceivers", "options": ["event-hub-receivers"], "group": "NotificationRequest", "help": {"short": "The list of event hub receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.eventHubReceivers[].eventHubName", "options": ["event-hub-name"], "required": true, "help": {"short": "The name of the specific Event Hub queue"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].eventHubNameSpace", "options": ["event-hub-name-space"], "required": true, "help": {"short": "The Event Hub namespace"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Event hub receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].subscriptionId", "options": ["subscription-id"], "required": true, "help": {"short": "The Id for the subscription containing this event hub"}}, {"type": "string", "var": "$notificationRequest.eventHubReceivers[].tenantId", "options": ["tenant-id"], "help": {"short": "The tenant Id for the subscription containing this event hub"}}, {"type": "boolean", "var": "$notificationRequest.eventHubReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.itsmReceivers", "options": ["itsm-receivers"], "group": "NotificationRequest", "help": {"short": "The list of ITSM receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.itsmReceivers[].connectionId", "options": ["connection-id"], "required": true, "help": {"short": "Unique identification of ITSM connection among multiple defined in above workspace."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the Itsm receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].region", "options": ["region"], "required": true, "help": {"short": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'"}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].ticketConfiguration", "options": ["ticket-configuration"], "required": true, "help": {"short": "JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well."}}, {"type": "string", "var": "$notificationRequest.itsmReceivers[].workspaceId", "options": ["workspace-id"], "required": true, "help": {"short": "OMS LA instance identifier."}}]}}, {"type": "array", "var": "$notificationRequest.logicAppReceivers", "options": ["logic-app-receivers"], "group": "NotificationRequest", "help": {"short": "The list of logic app receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.logicAppReceivers[].callbackUrl", "options": ["callback-url"], "required": true, "help": {"short": "The callback url where http request sent to."}}, {"type": "string", "var": "$notificationRequest.logicAppReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the logic app receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.logicAppReceivers[].resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The azure resource id of the logic app receiver."}}, {"type": "boolean", "var": "$notificationRequest.logicAppReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}, {"type": "array", "var": "$notificationRequest.smsReceivers", "options": ["sms-receivers"], "group": "NotificationRequest", "help": {"short": "The list of SMS receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.smsReceivers[].countryCode", "options": ["country-code"], "required": true, "help": {"short": "The country code of the SMS receiver."}}, {"type": "string", "var": "$notificationRequest.smsReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the SMS receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.smsReceivers[].phoneNumber", "options": ["phone-number"], "required": true, "help": {"short": "The phone number of the SMS receiver."}}]}}, {"type": "array", "var": "$notificationRequest.voiceReceivers", "options": ["voice-receivers"], "group": "NotificationRequest", "help": {"short": "The list of voice receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.voiceReceivers[].countryCode", "options": ["country-code"], "required": true, "help": {"short": "The country code of the voice receiver."}}, {"type": "string", "var": "$notificationRequest.voiceReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the voice receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.voiceReceivers[].phoneNumber", "options": ["phone-number"], "required": true, "help": {"short": "The phone number of the voice receiver."}}]}}, {"type": "array", "var": "$notificationRequest.webhookReceivers", "options": ["webhook-receivers"], "group": "NotificationRequest", "help": {"short": "The list of webhook receivers that are part of this action group."}, "item": {"type": "object", "args": [{"type": "string", "var": "$notificationRequest.webhookReceivers[].identifierUri", "options": ["identifier-uri"], "help": {"short": "Indicates the identifier uri for aad auth."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].name", "options": ["name"], "required": true, "help": {"short": "The name of the webhook receiver. Names must be unique across all receivers within an action group."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].objectId", "options": ["object-id"], "help": {"short": "Indicates the webhook app object Id for aad auth."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].serviceUri", "options": ["service-uri"], "required": true, "help": {"short": "The URI where webhooks should be sent."}}, {"type": "string", "var": "$notificationRequest.webhookReceivers[].tenantId", "options": ["tenant-id"], "help": {"short": "Indicates the tenant id for aad auth."}}, {"type": "boolean", "var": "$notificationRequest.webhookReceivers[].useAadAuth", "options": ["use-aad-auth"], "help": {"short": "Indicates whether or not use AAD authentication."}, "default": {"value": false}}, {"type": "boolean", "var": "$notificationRequest.webhookReceivers[].useCommonAlertSchema", "options": ["use-common-alert-schema"], "help": {"short": "Indicates whether to use common alert schema."}, "default": {"value": false}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ActionGroups_CreateNotificationsAtActionGroupResourceLevel", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/createNotifications", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "actionGroupName", "arg": "$Path.actionGroupName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-06-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "notificationRequest", "required": true, "props": [{"type": "string", "name": "alertType", "arg": "$notificationRequest.alertType", "required": true, "format": {"maxLength": 30}}, {"type": "array", "name": "armRoleReceivers", "arg": "$notificationRequest.armRoleReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$notificationRequest.armRoleReceivers[].name", "required": true}, {"type": "string", "name": "roleId", "arg": "$notificationRequest.armRoleReceivers[].roleId", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.armRoleReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "automationRunbookReceivers", "arg": "$notificationRequest.automationRunbookReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "automationAccountId", "arg": "$notificationRequest.automationRunbookReceivers[].automationAccountId", "required": true}, {"type": "boolean", "name": "isGlobalRunbook", "arg": "$notificationRequest.automationRunbookReceivers[].isGlobalRunbook", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.automationRunbookReceivers[].name"}, {"type": "string", "name": "runbookName", "arg": "$notificationRequest.automationRunbookReceivers[].runbookName", "required": true}, {"type": "string", "name": "serviceUri", "arg": "$notificationRequest.automationRunbookReceivers[].serviceUri"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.automationRunbookReceivers[].useCommonAlertSchema"}, {"type": "string", "name": "webhookResourceId", "arg": "$notificationRequest.automationRunbookReceivers[].webhookResourceId", "required": true}]}}, {"type": "array", "name": "azureAppPushReceivers", "arg": "$notificationRequest.azureAppPushReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "emailAddress", "arg": "$notificationRequest.azureAppPushReceivers[].emailAddress", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.azureAppPushReceivers[].name", "required": true}]}}, {"type": "array", "name": "azureFunctionReceivers", "arg": "$notificationRequest.azureFunctionReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "functionAppResourceId", "arg": "$notificationRequest.azureFunctionReceivers[].functionAppResourceId", "required": true}, {"type": "string", "name": "functionName", "arg": "$notificationRequest.azureFunctionReceivers[].functionName", "required": true}, {"type": "string", "name": "httpTriggerUrl", "arg": "$notificationRequest.azureFunctionReceivers[].httpTriggerUrl", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.azureFunctionReceivers[].name", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.azureFunctionReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "emailReceivers", "arg": "$notificationRequest.emailReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "emailAddress", "arg": "$notificationRequest.emailReceivers[].emailAddress", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.emailReceivers[].name", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.emailReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "eventHubReceivers", "arg": "$notificationRequest.eventHubReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "eventHubName", "arg": "$notificationRequest.eventHubReceivers[].eventHubName", "required": true}, {"type": "string", "name": "eventHubNameSpace", "arg": "$notificationRequest.eventHubReceivers[].eventHubNameSpace", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.eventHubReceivers[].name", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$notificationRequest.eventHubReceivers[].subscriptionId", "required": true}, {"type": "string", "name": "tenantId", "arg": "$notificationRequest.eventHubReceivers[].tenantId"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.eventHubReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "itsmReceivers", "arg": "$notificationRequest.itsmReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "connectionId", "arg": "$notificationRequest.itsmReceivers[].connectionId", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.itsmReceivers[].name", "required": true}, {"type": "string", "name": "region", "arg": "$notificationRequest.itsmReceivers[].region", "required": true}, {"type": "string", "name": "ticketConfiguration", "arg": "$notificationRequest.itsmReceivers[].ticketConfiguration", "required": true}, {"type": "string", "name": "workspaceId", "arg": "$notificationRequest.itsmReceivers[].workspaceId", "required": true}]}}, {"type": "array", "name": "logicAppReceivers", "arg": "$notificationRequest.logicAppReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "callbackUrl", "arg": "$notificationRequest.logicAppReceivers[].callbackUrl", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.logicAppReceivers[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$notificationRequest.logicAppReceivers[].resourceId", "required": true}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.logicAppReceivers[].useCommonAlertSchema"}]}}, {"type": "array", "name": "smsReceivers", "arg": "$notificationRequest.smsReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "countryCode", "arg": "$notificationRequest.smsReceivers[].countryCode", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.smsReceivers[].name", "required": true}, {"type": "string", "name": "phoneNumber", "arg": "$notificationRequest.smsReceivers[].phoneNumber", "required": true}]}}, {"type": "array", "name": "voiceReceivers", "arg": "$notificationRequest.voiceReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "countryCode", "arg": "$notificationRequest.voiceReceivers[].countryCode", "required": true}, {"type": "string", "name": "name", "arg": "$notificationRequest.voiceReceivers[].name", "required": true}, {"type": "string", "name": "phoneNumber", "arg": "$notificationRequest.voiceReceivers[].phoneNumber", "required": true}]}}, {"type": "array", "name": "webhookReceivers", "arg": "$notificationRequest.webhookReceivers", "item": {"type": "object", "props": [{"type": "string", "name": "identifierUri", "arg": "$notificationRequest.webhookReceivers[].identifierUri"}, {"type": "string", "name": "name", "arg": "$notificationRequest.webhookReceivers[].name", "required": true}, {"type": "string", "name": "objectId", "arg": "$notificationRequest.webhookReceivers[].objectId"}, {"type": "string", "name": "serviceUri", "arg": "$notificationRequest.webhookReceivers[].serviceUri", "required": true}, {"type": "string", "name": "tenantId", "arg": "$notificationRequest.webhookReceivers[].tenantId"}, {"default": {"value": false}, "type": "boolean", "name": "useAadAuth", "arg": "$notificationRequest.webhookReceivers[].useAadAuth"}, {"default": {"value": false}, "type": "boolean", "name": "useCommonAlertSchema", "arg": "$notificationRequest.webhookReceivers[].useCommonAlertSchema"}]}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "actionDetails", "item": {"type": "object", "props": [{"type": "string", "name": "Detail"}, {"type": "string", "name": "MechanismType"}, {"type": "string", "name": "Name"}, {"type": "string", "name": "SendTime"}, {"type": "string", "name": "Status"}, {"type": "string", "name": "SubState"}]}}, {"type": "string", "name": "completedTime"}, {"type": "object", "name": "context", "props": [{"type": "string", "name": "contextType"}, {"type": "string", "name": "notificationSource"}]}, {"type": "string", "name": "createdTime"}, {"type": "string", "name": "state", "required": true}]}}}}, {"statusCode": [202], "header": {"items": [{"name": "location"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.xml index 0607d68be..57aa3e62d 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9hY3Rpb25ncm91cHMve30vY3JlYXRlbm90aWZpY2F0aW9ucw==/2022-06-01.xml @@ -8,9 +8,7 @@ - - - +