Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 2.18 KB

File metadata and controls

73 lines (53 loc) · 2.18 KB
author craigshoemaker
ms.service azure-container-apps
ms.topic include
ms.date 05/04/2023
ms.author cshoe
ms.custom references_regions

Prerequisites

For information about features that Container Apps jobs don't support, see Jobs restrictions.

Prepare the environment

  1. To sign in to Azure from the Azure CLI, run the following command and follow the prompts to complete the authentication process.

    az login
    
  2. Ensure you're running the latest version of the Azure CLI via the az upgrade command.

    az upgrade
    
  3. Install the latest version of the Container Apps CLI extension.

    az extension add --name containerapp --upgrade
    
  4. Register the Microsoft.App, Microsoft.OperationalInsights, and Microsoft.Storage namespaces if they aren't already registered in your Azure subscription.

    az provider register --namespace Microsoft.App
    az provider register --namespace Microsoft.OperationalInsights
    az provider register --namespace Microsoft.Storage
    
  5. Define the environment variables that are used throughout this article.

    RESOURCE_GROUP="jobs-quickstart"
    LOCATION="northcentralus"
    ENVIRONMENT="env-jobs-quickstart"
    JOB_NAME="my-job"
    

Create a Container Apps environment

The Container Apps environment acts as an isolation boundary around container apps and jobs so they can share the same network and communicate with each other.

  1. Create a resource group by using the following command.

    az group create \
        --name "$RESOURCE_GROUP" \
        --location "$LOCATION"
    
  2. Create the Container Apps environment by using the following command.

    az containerapp env create \
        --name "$ENVIRONMENT" \
        --resource-group "$RESOURCE_GROUP" \
        --location "$LOCATION"