azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az container export gives error AttributeError: 'NoneType' object has no attribute 'type'

Open eggman314 opened this issue 7 years ago • 7 comments

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)

2019-02-27_14-39-52

eggman314 avatar Feb 27 '19 14:02 eggman314

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

henryroyal avatar Feb 27 '19 21:02 henryroyal

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

dlepow avatar Mar 11 '19 22:03 dlepow

I believe this is fixed in 2.0.60.

tjprescott avatar Mar 11 '19 22:03 tjprescott

I'm still experiencing this error when trying to create a container using a yaml file

basxib avatar Jan 04 '20 00:01 basxib

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur.

ghost avatar Jun 16 '20 06:06 ghost

@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.

SaurabhSharma-MSFT avatar Feb 08 '22 02:02 SaurabhSharma-MSFT

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!

ghost avatar Feb 15 '22 08:02 ghost