Skip to content

Latest commit

 

History

History
107 lines (75 loc) · 3.02 KB

File metadata and controls

107 lines (75 loc) · 3.02 KB

Create an environment

containerapp/create-environment/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group

Setup the CLI extensions

Ensure you are running the latest Azure CLI and install the Azure Container Apps extensions for the CLI using the command lines below:

  az extension add --name containerapp --upgrade
  az provider register --namespace Microsoft.App
  az provider register --namespace Microsoft.OperationalInsights

Create an environment

Setup the environment variables for the Azure Container Apps environment and its region using the command lines below:

  export ACA_ENVIRONMENT_NAME=joazaca$RANDOM
  export ACA_REGION=westus

To create the Azure Container Apps environment use the following command line:

  az containerapp env create \
    --name $ACA_ENVIRONMENT_NAME \
    --resource-group $RESOURCE_GROUP \
    --location "$ACA_REGION"

Cleanup

Do NOT forget to remove the resources once you are done running the example.

Next steps

Reference documentation

1m