[2.32.0] az aks update --enable-secret-rotation fails : 'NoneType' object does not support item assignment
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
az aks update --enable-secret-rotation fails with opaque error.
Command Name
az aks update
Errors:
The command failed with an unexpected error. Here is the traceback:
'NoneType' object does not support item assignment
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/custom.py", line 2298, in aks_update
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/decorator.py", line 5886, in update_default_mc_profile
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/decorator.py", line 5832, in update_addon_profiles
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acs/decorator.py", line 5766, in update_azure_keyvault_secrets_provider_addon_profile
TypeError: 'NoneType' object does not support item assignment
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Not sure if there are other preconditions unique to my environment. If it is useful, I enabled the plugin via Bicep template as such:
addonProfiles: {
azureKeyvaultSecretsProvider: {
enabled: true
}
}
az aks update -g {} -n {} --enable-secret-rotation
Expected Behavior
Autorotation is enabled.
Environment Summary
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.32.0 *
Extensions:
azure-devops 0.20.0
ssh 1.0.0
```json
{
"azure-cli": "2.32.0",
"azure-cli-core": "2.32.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.22.0",
"ssh": "1.0.0"
}
}
## Additional Context
<!--Please don't remove this:-->
<!--auto-generated-->
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:24 (5 by maintainers)
Top Results From Across the Web
'NoneType' object does not support item assignment, even ...
The error is telling you that new is None . It can only be None if next returned None . It returned None...
Read more >Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >'NoneType' object does not support item assignment
I am literally just mapping it from the devices pulled from Device_Endpoints and generate a log.info and yet it still fails. Any advice?...
Read more >TypeError: 'NoneType' object does not support item assignment
Since the plugin active, began to appear the following errors in the debug log trac: 0.11.7 and 0.12.5 happens in. Trac[main] ERROR: Exception...
Read more >'None Type' object does not support item assignment - Intellipaat
I have been debugging it by any means that stop the problem, but I do not understand what this error means or how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into a similar issue as the person on the other thread - I can’t remove because it is in use
I don’t want to un-deploy anything to attempt a workaround at the moment - this is a production cluster. Do you have another approach I can try? Does it seem to be a server side or client side state issue, do you know?
Edit: Failed to post my entire thought 😐
Adding the config with a variation of the above approach worked for me… I was running the command from PowerShell and I had to get the contents of the update.json to a variable and pass it to the put method…
So the steps were:
update.json