Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Azure CLI (MSI) #827

Closed
arcotek-ltd opened this issue Nov 21, 2018 — with docs.microsoft.com · 1 comment
Closed

Not compatible with Azure CLI (MSI) #827

arcotek-ltd opened this issue Nov 21, 2018 — with docs.microsoft.com · 1 comment
Labels
issue-product-bug Issue - product bug that must be documented triaged

Comments

Copy link

arcotek-ltd commented Nov 21, 2018

It looks as though one cannot have AZ PowerShell and AZ CLI (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest) coexisting on the same PC.

I had AZ CLI installed and working. I installed AZ PowerShell and now, when I run az, I get a load of jibberish. It doesn't matter if I run it in DOS or PowerShell or what command I run. az on its own is enough to produce this.

Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli\azure\cli\__main__.py", line 32, in <module>
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\__init__.py", line 515, in get_default_cli
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\__init__.py", line 55, in __init__
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\cloud.py", line 305, in get_active_cloud
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\cloud.py", line 294, in get_cloud
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\cloud.py", line 247, in _get_cloud
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-homc4z86\azure-cli-core\azure\cli\core\cloud.py", line 265, in get_clouds
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\configparser.py", line 697, in read
    self._read(fp, filename)
  File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\configparser.py", line 1080, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\john\\.azure\\clouds.config', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

What is really frustrating is that I can't get AZ CLI to work, even after removing AZ PowerShell, rebooting, reinstall AZ CLI etc.

In theory, one would hope that I could live with just one of them, but I need PowerShell for a plethora of existing code and it seems that Terraform doesn't understand the token created by AZ PowerShell, but is happy with AZ CLI.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@sptramer
Copy link
Contributor

@arcotek-ltd - This sounds like a product issue. Please file a bug report with both the CLI engineering team and Azure PowerShell:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue-product-bug Issue - product bug that must be documented triaged
Projects
None yet
Development

No branches or pull requests

1 participant