| author | craigshoemaker |
|---|---|
| ms.service | azure-container-apps |
| ms.topic | include |
| ms.date | 05/04/2023 |
| ms.author | cshoe |
| ms.custom | references_regions |
- An Azure account with an active subscription. If you don't have one, you can create one for free.
- The Azure CLI.
For information about features that Container Apps jobs don't support, see Jobs restrictions.
-
To sign in to Azure from the Azure CLI, run the following command and follow the prompts to complete the authentication process.
az login -
Ensure you're running the latest version of the Azure CLI via the
az upgradecommand.az upgrade -
Install the latest version of the Container Apps CLI extension.
az extension add --name containerapp --upgrade -
Register the
Microsoft.App,Microsoft.OperationalInsights, andMicrosoft.Storagenamespaces 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 -
Define the environment variables that are used throughout this article.
RESOURCE_GROUP="jobs-quickstart" LOCATION="northcentralus" ENVIRONMENT="env-jobs-quickstart" JOB_NAME="my-job"
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.
-
Create a resource group by using the following command.
az group create \ --name "$RESOURCE_GROUP" \ --location "$LOCATION" -
Create the Container Apps environment by using the following command.
az containerapp env create \ --name "$ENVIRONMENT" \ --resource-group "$RESOURCE_GROUP" \ --location "$LOCATION"