AZ AKS BROWSE在Azure Portal CLI中不起作用 [英] AZ AKS BROWSE doesn't work from the Azure Portal CLI

查看:122
本文介绍了AZ AKS BROWSE在Azure Portal CLI中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到其他提交此错误的地方.我的支持计划不支持在CLI上提交票证....
在Azure Portal的CLI中执行的命令:az aks browser -n .... -g .....      
错误:
xpecting值:第1行第1列(字符0)
追溯(最近一次通话):
 在invoke中的文件``/opt/az/lib/python3.6/site-packages/knack/cli.py''第197行
    cmd_result = self.invocation.execute(args)
 在执行中的文件"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py"中的行345
    six.reraise(* sys.exc_info())
 重新升高文件"/opt/az/lib/python3.6/site-packages/six.py"的第693行
   提高价值
 在执行中的文件"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py",第319行    结果= cmd(参数)
 在__call__中的文件"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py"第169行中,
   返回self.handler(* args,** kwargs)
 在default_command_handler中,文件"/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py",第440行
   结果= op(** command_args)
 在aks_browse中的文件1357行中的文件"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py"
   结果= json.loads(response.text)
 载入中的文件"/opt/az/lib/python3.6/json/__init__.py",第354行
   返回_default_decoder.decode(s)
 解码中的文件"/opt/az/lib/python3.6/json/decoder.py",行339
    obj,end = self.raw_decode(s,idx = _w(s,0).end())
 在raw_decode中的文件"/opt/az/lib/python3.6/json/decoder.py",第357行
   从None引发JSONDecodeError(期望值",s,err.value)
json.decoder.JSONDecodeError:期望值:第1行第1列(字符0)

经过测试:Mac,Chrome 70和Windows 7,Chrome 67

Didn't find another place to submit this bug. My support plan doesn't support submitting tickets on CLI....
Command executed in CLI of Azure Portal: az aks browse -n .... -g .....      
Error: 
xpecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 197, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 345, in execute
    six.reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 319, in execute
    result = cmd(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 169, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 440, in default_command_handler
    result = op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1357, in aks_browse
    result = json.loads(response.text)
  File "/opt/az/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/opt/az/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/az/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Tested on: Mac, Chrome 70 and Windows 7, Chrome 67

也尝试在Portal中提交此反馈,但出现错误:

Also tried to submit this feedback in Portal and got error: 

最诚挚的问候,
Ilie

Best regards,
Ilie

推荐答案

嗨Iliecirciumaru,

Hi Iliecirciumaru,

非常感谢您的举报.

"az aks浏览"选项将无法在Cloud Shell中使用.

"az aks browse" option wont work in cloud shell. 

您需要在本地计算机上进行配置.您可以在门户上转到群集的概述,然后在右侧看到查看kubernetes仪表板".选项.点击那个.您将收到一条警告消息,指出此命令 将无法在云外壳中正常工作,需要执行以下步骤才能将其连接.

You need to configure that on your local machine. You can go to the overview of the cluster on the portal, and on the right you will see "view kubernetes dashboard" option. Click on that. You will have a warning message saying that this command will not work in cloud shell followed by the steps to connect it.

您需要在本地计算机上安装azure cli.您可以按照 此文档.

You need to install azure cli on your local machine.  You can follow this document for doing that.

尝试此解决方案,让我知道.

Try this solution and let me know.


这篇关于AZ AKS BROWSE在Azure Portal CLI中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆