Azure Container Apps · Arazzo Workflow

Azure Container Apps Decommission App

Version 1.0.0

Delete a container app and confirm it no longer appears in the resource group listing.

1 workflow 1 source API 1 provider
View Spec View on GitHub AzureContainersDaprKubernetesMicroservicesServerlessArazzoWorkflows

Provider

azure-container-apps

Workflows

decommission-app
Delete a container app and verify it is removed from the resource group.
Reads the app, deletes it, then lists the resource group's container apps so a caller can confirm the deletion took effect.
3 steps inputs: apiVersion, containerAppName, resourceGroupName, subscriptionId outputs: deletedAppId, remainingApps
1
getApp
ContainerApps_Get
Read the container app to capture its id before deleting it.
2
deleteApp
ContainerApps_Delete
Delete the container app. A 200 indicates synchronous deletion while a 202 indicates the delete was accepted for asynchronous processing.
3
listApps
ContainerApps_ListByResourceGroup
List the container apps in the resource group so the caller can confirm the deleted app is no longer present.

Source API Descriptions

Arazzo Workflow Specification

azure-container-apps-decommission-app-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Azure Container Apps Decommission App
  summary: Delete a container app and confirm it no longer appears in the resource group listing.
  description: >-
    A clean teardown flow for a single container app. This workflow reads the app
    to capture its id, issues a delete, and then lists the container apps in the
    resource group to confirm the app is gone, branching on whether the delete
    returned a synchronous or accepted-for-processing status. 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: containerAppsApi
  url: ../openapi/azure-container-apps-openapi.yml
  type: openapi
workflows:
- workflowId: decommission-app
  summary: Delete a container app and verify it is removed from the resource group.
  description: >-
    Reads the app, deletes it, then lists the resource group's container apps so
    a caller can confirm the deletion took effect.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - containerAppName
    properties:
      subscriptionId:
        type: string
        description: The Azure subscription ID.
      resourceGroupName:
        type: string
        description: The name of the resource group.
      containerAppName:
        type: string
        description: The name of the container app to delete.
      apiVersion:
        type: string
        description: Client API version.
        default: '2023-05-01'
  steps:
  - stepId: getApp
    description: >-
      Read the container app to capture its id before deleting it.
    operationId: ContainerApps_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: containerAppName
      in: path
      value: $inputs.containerAppName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      containerAppId: $response.body#/id
  - stepId: deleteApp
    description: >-
      Delete the container app. A 200 indicates synchronous deletion while a 202
      indicates the delete was accepted for asynchronous processing.
    operationId: ContainerApps_Delete
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: containerAppName
      in: path
      value: $inputs.containerAppName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    - condition: $statusCode == 202
    outputs:
      statusCode: $statusCode
  - stepId: listApps
    description: >-
      List the container apps in the resource group so the caller can confirm
      the deleted app is no longer present.
    operationId: ContainerApps_ListByResourceGroup
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      remainingApps: $response.body#/value
  outputs:
    deletedAppId: $steps.getApp.outputs.containerAppId
    remainingApps: $steps.listApps.outputs.remainingApps