Open jamesmcroft opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
Author: | jamesmcroft |
---|---|
Assignees: | - |
Labels: | `AKS`, `Service Attention`, `needs-triage`, `question` |
Milestone: | - |
route to appropriate team
I have similar issue, When I run:
az aks update --resource-group XXX --name XXX --attach-acr XXX
I get: The behavior of this command has been altered by the following extension: aks-preview The command failed with an unexpected error. Here is the traceback: No module named 'azure.cli.command_modules.acs.decorator' Traceback (most recent call last): File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute raise ex File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job result = cmd_copy(params) File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call return self.handler(*args, kwargs) File "/opt/homebrew/Cellar/azure-cli/2.43.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler return op(command_args) File "/Users/XXXX/.azure/cliextensions/aks-preview/azext_aks_preview/custom.py", line 945, in aks_update from azure.cli.command_modules.acs.decorator import AKSParamDict ModuleNotFoundError: No module named 'azure.cli.command_modules.acs.decorator'
Describe the bug
Recently ran into an issue where our Azure Pipelines were failing due to AKS not pulling contains from the ACR it's associated with.
Decided to check the service principal that is associated with the AKS using
az aks show --resource-group {rg-name} --name {aks-name} --query servicePrincipalProfile.clientId
followed byaz ad sp credential list --id "{id}" --query "[].endDate"
which said the expiration was in 2299 so it hasn't actually expired.So I decided to try
az aks update -n {aks-name} -g {rg-name} --attach-acr {acr-name}
to make sure it was attached correctly, and received the error below.This in a way verified the issue we are seeing with the AKS not pulling from the ACR because it too thinks the credentials are invalid.
Command Name
az aks update
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az aks update -n {} -g {} --attach-acr {}
Expected Behavior
AKS should update with the attached ACR.
Environment Summary
Additional Context