The `azure-mgmt-appcontainers` library is the Microsoft Azure Appcontainers Management Client Library for Python, enabling developers to programmatically manage Azure Container Apps resources. It provides a rich set of functionalities for interacting with Container Apps, Managed Environments, and related components. The current stable version is 4.0.0, and it is actively maintained as part of the Azure SDK for Python, with regular updates and releases.
pip install azure-mgmt-appcontainers azure-identityVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to authenticate with Azure using `DefaultAzureCredential` and initialize the `ContainerAppsAPIClient`. It then shows a basic operation: listing all managed environments within the specified Azure subscription. Ensure `AZURE_SUBSCRIPTION_ID` and appropriate Azure AD environment variables (if using a service principal) are set.
Review the official changelog for `azure-mgmt-appcontainers` 4.0.0 and update your code to reflect the removed parameters and modified operations. Pay close attention to the new required `name` parameter for `WorkloadProfile` and adjustments for `ConnectedEnvironments*Operations`.
Ensure all necessary Azure authentication environment variables are correctly configured for your chosen authentication method. For Container Apps, also verify that all application-specific environment variables are properly set in the container app configuration to prevent startup issues.
Double-check container image names and tags. If using a private registry, ensure Azure Container Apps has the necessary access (e.g., Managed Identity for ACR). Verify the container's `ENTRYPOINT` and `CMD` in the Dockerfile, or the custom command specified in the Container App configuration, correctly starts your application.
Review the ingress settings of your Container App and the VNet configuration for the Managed Environment. Ensure network security groups (NSGs) and DNS settings (especially custom DNS) allow traffic as expected, including forwarding unresolved DNS queries to Azure's resolver (168.63.129.16).