Trouble getting the "az containerapps compose" command to read any of the options

David Hustace 0 Reputation points
2024-11-20T22:38:08.96+00:00

I'm having trouble getting the "az containerapps compose" command to execute successfully as it fails to read any command line options no matter which order they are placed. The error is always in the form of:

$ az containerapp compose --resource-group "MyProject" --environment API-ENV --compose-file-path docker-compose.yml

'MyProject' is misspelled or not recognized by the system.

$ az containerapp compose --environment API-ENV --resource-group "MyProject" --compose-file-path docker-compose.yml

'API-ENV' is misspelled or not recognized by the system.

$ az containerapp compose --compose-file-path docker-compose.yml --environment API-ENV --resource-group MyProject

'docker-compose.yml' is misspelled or not recognized by the system.

Has anyone else experienced this behavior? Thanks in advance.

$ az --version

azure-cli 2.67.0

core 2.67.0

telemetry 1.1.0

Extensions:

account 0.2.5

Dependencies:

msal 1.31.0

azure-mgmt-resource 23.1.1

Python location '/usr/local/Cellar/azure-cli/2.67.0/libexec/bin/python'

Extensions directory '/Users/david/.azure/cliextensions'

Python (Darwin) 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.3.9.4)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
458 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 8,230 Reputation points
    2024-11-20T23:38:03.16+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    The correct command structure should be:

    az containerapp compose create --resource-group <resource-group-name> --environment <environment-name> --compose-file-path <path-to-compose-file>
    
    

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.