| ms.service | azure-container-apps |
|---|---|
| ms.topic | include |
| ms.date | 02/03/2025 |
| author | craigshoemaker |
| ms.author | cshoe |
To sign in to Azure from the CLI, run the following command and follow the prompts to complete the authentication process.
az login
Connect-AzAccount
To ensure you're running the latest version of the CLI, run the upgrade command.
az upgrade
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Ignore any warnings about modules currently in use.
Next, install or update the Azure Container Apps extension for the CLI.
If you receive errors about missing parameters when you run az containerapp commands in Azure CLI or cmdlets from the Az.App module in PowerShell, be sure you have the latest version of the Azure Container Apps extension installed.
az extension add --name containerapp --upgrade
Note
Starting in May 2024, Azure CLI extensions no longer enable preview features by default. To access Container Apps preview features, install the Container Apps extension with --allow-preview true.
az extension add --name containerapp --upgrade --allow-preview true
Install-Module -Name Az.App
Make sure to update the Az.App module to the latest version.
Update-Module -Name Az.App
Now that the current extension or module is installed, register the Microsoft.App and Microsoft.OperationalInsights namespaces.
az provider register --namespace Microsoft.App
az provider register --namespace Microsoft.OperationalInsights
Register-AzResourceProvider -ProviderNamespace Microsoft.App
Register-AzResourceProvider -ProviderNamespace Microsoft.OperationalInsights