Skip to content

Following the Amzon Quickstart for Containers az containerapp up --name {} --resource-group {} --location {} --environment {} --image {} --target-port {} --ingress {} --query {} fails #31501

@marvinmednick

Description

@marvinmednick

https://learn.microsoft.com/en-us/azure/container-apps/get-started?tabs=bash

Running under WSL2, Debian.

Of things to to note -- after installing the container app via az extension add --name containerapp --upgrade I get warning messages

cli.azure.cli.core.extension: extension containerapp contains invalid metadata for Python Package
cli.azure.cli.core.extension.operations: The installed extension 'containerapp' is in preview.

I did triy installing it with 'az extension add --name containerapp --allow-preview true' but get the error message
UnrecognizedArgumentError: unrecognized arguments: --allow-preview true

the container app appears to be installed as 'az extension add --name containerapp' return
Extension 'containerapp' is already installed.

but I do periodically get the warning mesaage:
extension containerapp contains invalid metadata for Python Package

The other commands in the quickstart ran OK without any issues.


This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az containerapp up

Errors:

No module named 'azure.cli.core.auth'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 558, in execute
    self.commands_loader.load_arguments(command)
azure/cli/core/__init__.py, ln 480, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
...
cliextensions/containerapp/azext_containerapp/custom.py, ln 29, in <module>
    from ._github_oauth import get_github_access_token
cliextensions/containerapp/azext_containerapp/_github_oauth.py, ln 13, in <module>
    from azure.cli.core.auth.persistence import SecretStore, build_persistence
ModuleNotFoundError: No module named 'azure.cli.core.auth'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az containerapp up --name {} --resource-group {} --location {} --environment {} --image {} --target-port {} --ingress {} --query {}

Expected Behavior

Environment Summary

Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.31
Python 3.9.2
Installer: DEB

azure-cli 2.18.0 *

Extensions:
containerapp Unknown
azure-devops 0.19.0

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions