Azure Container Apps · Arazzo Workflow

Azure Container Apps Activate Latest Revision

Version 1.0.0

Find the most recent revision of an app, inspect it, and activate it if it is inactive.

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

Provider

azure-container-apps

Workflows

activate-latest-revision
Activate a container app revision only when it is currently inactive.
Lists the app's revisions, reads the target revision, and activates it when its active flag is false, skipping the activation when it is already active.
3 steps inputs: apiVersion, containerAppName, resourceGroupName, revisionName, subscriptionId outputs: active, revisions
1
listRevisions
List the revisions of the container app to confirm the target revision exists before reading it.
2
getRevision
Read the target revision and inspect its active flag to decide whether an activation call is needed.
3
activateRevision
Activate the inactive revision so it returns to service.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Container Apps Activate Latest Revision
  summary: Find the most recent revision of an app, inspect it, and activate it if it is inactive.
  description: >-
    In multiple-revision mode a revision can be deactivated to remove it from
    service. This workflow lists an app's revisions, reads the chosen revision
    to inspect its active flag, and branches: when the revision is inactive it
    activates it, and when it is already active it ends without a redundant call.
    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: revisionsApi
  url: ../openapi/azure-container-apps-revisions-api-openapi.yml
  type: openapi
workflows:
- workflowId: activate-latest-revision
  summary: Activate a container app revision only when it is currently inactive.
  description: >-
    Lists the app's revisions, reads the target revision, and activates it when
    its active flag is false, skipping the activation when it is already active.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - containerAppName
    - revisionName
    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.
      revisionName:
        type: string
        description: The name of the revision to activate.
      apiVersion:
        type: string
        description: Client API version.
        default: '2023-05-01'
  steps:
  - stepId: listRevisions
    description: >-
      List the revisions of the container app to confirm the target revision
      exists before reading it.
    operationId: ContainerAppsRevisions_ListRevisions
    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:
      revisions: $response.body#/value
  - stepId: getRevision
    description: >-
      Read the target revision and inspect its active flag to decide whether an
      activation call is needed.
    operationId: ContainerAppsRevisions_GetRevision
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: containerAppName
      in: path
      value: $inputs.containerAppName
    - name: revisionName
      in: path
      value: $inputs.revisionName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      active: $response.body#/properties/active
    onSuccess:
    - name: alreadyActive
      type: end
      criteria:
      - context: $response.body
        condition: $.properties.active == true
        type: jsonpath
    - name: needsActivation
      type: goto
      stepId: activateRevision
      criteria:
      - context: $response.body
        condition: $.properties.active == false
        type: jsonpath
  - stepId: activateRevision
    description: >-
      Activate the inactive revision so it returns to service.
    operationId: ContainerAppsRevisions_ActivateRevision
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: containerAppName
      in: path
      value: $inputs.containerAppName
    - name: revisionName
      in: path
      value: $inputs.revisionName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      statusCode: $statusCode
  outputs:
    revisions: $steps.listRevisions.outputs.revisions
    active: $steps.getRevision.outputs.active

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/azure-container-apps-activate-latest-revision-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.