"az network dns zone import" fails with error 'list index out of range' #6602
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Describe the bug
I exported multiple BIND files from an existing Linux server to import them in Azure DNS. I am trying to import the zones using Azure CLI 2.0. According to this document BIND files should be supported.
When executing the command "az network dns zone import -f "bind-file" -n "zone-name" -g resourcegroup-name", the command fails with the following error:
To Reproduce
wpv.be.zone.txt
az network dns zone import -f 'wpv.be.zone.txt' -n 'wpv.be' -g net-DNS
(, where 'net-Dns' is the name of our current resourcegroup)Expected behavior
I expect the import to succeed as the file does not contain any keywords which are not supported.
Environment summary
Additional context
The files were retrieved from the Red Hat server, using the secure file copy tool pscp on a Windows 10 machine.
The text was updated successfully, but these errors were encountered: