23 Mar 2021 09:34 AM - last edited on 30 Aug 2022 03:21 AM by MaciejNeumann
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
We can't wait for your feedback.
monaco - Automates the deployment of Dynatrace Monitoring Configuration to one or multiple Dynatrace environments.
monaco [global options] command [command options] [working directory]
Tool used to deploy dynatrace configurations via the cli
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
help, h Shows a list of commands or help for one command
--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.
Remove the "=" like the options suggest.
docker run dynatraceace/monaco-runner monaco -e environments.yaml -p Project1 --dry-run
Hi David thanks for the solution, actually problem was with docker container itself. It's working now with "=" also