Open cirezd opened 1 year ago
route to CXP team
Any update? Same error here:
az container create -g {} -f {}.yaml
azure-cli 2.60.0 *
core 2.60.0 *
telemetry 1.1.0
Extensions:
aks-preview 1.0.0b6
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.60.0/libexec/bin/python'
Extensions directory '/Users/ltmleo/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
I just realized that my yaml file (exported using az container show) does not have the same format as the expected form az container created. See this documentation, might help.
This is autogenerated. Please review and update as needed.
Describe the bug
I wanted to mount a volume to a container instance. I exported the yaml-config via
az container show
of an existing container. I adjusted a few lines and wanted to deploy it, but received the error message. This way of deploying works for Container Apps, so I assume it should also work for Container Instances? I don't understand whether this error is related to the yaml file or to something else.Command Name
az container create
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az container create --resource-group {} --file {}
Expected Behavior
Environment Summary
Additional Context