Azure / azure-cli

Azure Command-Line Interface
MIT License
4k stars 2.98k forks source link

az aks install-cli is failing #25709

Closed pjillella closed 1 year ago

pjillella commented 1 year ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks install-cli

Errors:

$ az aks install-cli
←[93mThe detected architecture is 'amd64', which will be regarded as 'amd64' and the corresponding binary will be downloaded. If there is any problem, please download the appropriate binary by yourself.←[0m
←[93mDownloading client to "C:\Users\c-pjillell\.azure-kubectl\kubectl.exe" from "https://storage.googleapis.com/kubernetes-release/release/v1.26.2/bin/windows/amd64/kubectl.exe"←[0m
←[91mThe command failed with an unexpected error. Here is the traceback:←[0m
←[91mHTTP Error 403: Forbidden
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially        
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/custom.py", line 1441, in k8s_install_cli      
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/custom.py", line 1616, in k8s_install_kubelogin
  File "urllib\request.py", line 216, in urlopen
  File "urllib\request.py", line 525, in open
  File "urllib\request.py", line 634, in http_response
  File "urllib\request.py", line 563, in error
  File "urllib\request.py", line 496, in _call_chain
  File "urllib\request.py", line 643, in http_error_default
urllib.error.HTTPError: HTTP Error 403: Forbidden←[0m

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Windows-10-10.0.19042-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.46.0

Extensions:
aks-preview 0.5.38
interactive 0.4.5

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

SaurabhSharma-MSFT commented 1 year ago

@pjillella We are looking into it and get back to you for any additional information.

yonzhan commented 1 year ago

route to CXP team

SaurabhSharma-MSFT commented 1 year ago

@pjillella Can you please try to open Command Prompt as an Administrator. I was able to reproduce this issue and able to run the command once open Command Prompt with Administrator permissions. image

ghost commented 1 year ago

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!