23 Mar 2021 04:34 PM - last edited on 21 Aug 2024 12:09 PM by Michal_Gebacki
Hi I am running monaco in container using monaco-runner image by dynatrace in Azure DevOps pipeline but I am getting below error.
You are currently using the old CLI structure which will be used by
default until monaco version 2.0.0
Check out the beta of the new CLI by adding the environment variable
"NEW_CLI".
We can't wait for your feedback.
NAME:
monaco - Automates the deployment of Dynatrace Monitoring Configuration to one or multiple Dynatrace environments.
USAGE:
monaco [global options] command [command options] [working directory]
VERSION:
1.5.0
DESCRIPTION:
Tool used to deploy dynatrace configurations via the cli
Examples:
Deploy a specific project inside a root config folder:
monaco -p='project-folder' -e='environments.yaml' projects-root-folder
Deploy a specific project to a specific tenant:
monaco --environments environments.yaml --specific-environment dev --project myProject
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--verbose, -v (default: false)
--environments value, -e value Yaml file containing environments to deploy to
--specific-environment value, --se value Specific environment (from list) to deploy to (default: none)
--project value, -p value Project configuration to deploy (also deploys any dependent configurations) (default: none)
--dry-run, -d Switches to just validation instead of actual deployment (default: false)
--continue-on-error, -c Proceed deployment even if config upload fails (default: false)
--help, -h show help (default: false)
--version print the version (default: false)
ERROR Required flag "environments" not set
Solved! Go to Solution.
24 Mar 2021 01:16 PM
Remove the "=" like the options suggest.
docker run dynatraceace/monaco-runner monaco -e environments.yaml -p Project1 --dry-run
01 Apr 2021 01:00 PM - edited 01 Apr 2021 01:03 PM
Hi David thanks for the solution, actually problem was with docker container itself. It's working now with "=" also