az container export gives error AttributeError: 'NoneType' object has no attribute 'type'
Describe the bug Exporting container group to yaml with command "az container export --resource-group gruppe --name containergruppe1 --output yaml -f test.yml" raises exception.
To Reproduce Run command above
Expected behavior For container group to be exported to test.yml
Environment summary Tried under both Windows 7 Home Premium SP1 build 7601 (az 2.0.55 installed with MSI, python 3.5, and run in Powershell) and Ubuntu 18.04 (az 2.0.59, python 3.6.5, installed with apt-get and run in bash)
Just encountered this in Azure cloud shell with azure-cli version 2.0.59, Python 3.5.2 Was able to reproduce in a git-bash terminal on Win 10 build 1803 using azure-cli version 2.0.56, Python 3.5.2
I repro'd this exact error testing some documentation using CLI version 2.0.59 in Cloud Shell, also local Win 10. Created container group using this YAML. Tried export:
az container export -g myresourcegroup --name myContainerGroup --file export-aci.yaml --debug
I believe this is fixed in 2.0.60.
I'm still experiencing this error when trying to create a container using a yaml file
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur.
@eggman314 Apologies for the delayed response. This GitHub issue has been open for quite some time. Could you please let us know if you still facing this issue and need assistance? Awaiting your reply.
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!