This has been fixed in the latest version of azure-cli and azure-cli-core which have just been submitted to Factory.