Azure Monitor · Arazzo Workflow

Azure Monitor Action Group Receiver Recovery

Version 1.0.0

Read an action group, then re-enable a receiver that had been unsubscribed.

1 workflow 1 source API 1 provider
View Spec View on GitHub Application InsightsCloudLogsMetricsMonitoringObservabilityArazzoWorkflows

Provider

microsoft-azure-monitor

Workflows

recover-action-group-receiver
Confirm an action group, then re-enable an unsubscribed receiver in it.
Reads an action group to confirm it exists and surface its receivers, then re-enables the named receiver so it resumes receiving notifications.
2 steps inputs: actionGroupName, receiverName, resourceGroupName, subscriptionId outputs: actionGroupId, enabledReceiverStatus
1
getActionGroup
ActionGroups_Get
Read the action group to confirm it exists and surface its current receivers before re-enabling one.
2
enableReceiver
ActionGroups_EnableReceiver
Re-enable the named receiver in the action group so it resumes getting alert notifications.

Source API Descriptions

Arazzo Workflow Specification

microsoft-azure-monitor-action-group-receiver-recovery-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Azure Monitor Action Group Receiver Recovery
  summary: Read an action group, then re-enable a receiver that had been unsubscribed.
  description: >-
    The receiver recovery flow. The workflow reads an action group to confirm it
    exists and to surface its receivers, then re-enables a named receiver that
    had previously unsubscribed itself so that it resumes getting alert
    notifications. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: actionGroupsApi
  url: ../openapi/azure-monitor-action-groups-openapi.yml
  type: openapi
workflows:
- workflowId: recover-action-group-receiver
  summary: Confirm an action group, then re-enable an unsubscribed receiver in it.
  description: >-
    Reads an action group to confirm it exists and surface its receivers, then
    re-enables the named receiver so it resumes receiving notifications.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - actionGroupName
    - receiverName
    properties:
      subscriptionId:
        type: string
        description: The ID of the target subscription.
      resourceGroupName:
        type: string
        description: The name of the resource group.
      actionGroupName:
        type: string
        description: The name of the action group containing the receiver.
      receiverName:
        type: string
        description: The name of the receiver to re-enable.
  steps:
  - stepId: getActionGroup
    description: >-
      Read the action group to confirm it exists and surface its current
      receivers before re-enabling one.
    operationId: ActionGroups_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: actionGroupName
      in: path
      value: $inputs.actionGroupName
    - name: api-version
      in: query
      value: '2022-06-01'
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      actionGroupId: $response.body#/id
      emailReceivers: $response.body#/properties/emailReceivers
  - stepId: enableReceiver
    description: >-
      Re-enable the named receiver in the action group so it resumes getting
      alert notifications.
    operationId: ActionGroups_EnableReceiver
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: actionGroupName
      in: path
      value: $inputs.actionGroupName
    - name: api-version
      in: query
      value: '2022-06-01'
    requestBody:
      contentType: application/json
      payload:
        receiverName: $inputs.receiverName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      enabledReceiverStatus: $statusCode
  outputs:
    actionGroupId: $steps.getActionGroup.outputs.actionGroupId
    enabledReceiverStatus: $steps.enableReceiver.outputs.enabledReceiverStatus