enable-managed-identity true causes 'ApiManagementServiceResource' object does not support item assignment
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
When running az apim create
with --enabled-managed-identity true
you get the below error
Command Name
az apim create
Errors:
'ApiManagementServiceResource' object does not support item assignment
Traceback (most recent call last):
Temp\pip-install-z6h9b3s8\knack\knack\cli.py, ln 215, in invoke
azure\cli\core\commands\__init__.py, ln 631, in execute
azure\cli\core\commands\__init__.py, ln 695, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 688, in _run_job
Local\Temp\pip-install-z6h9b3s8\six\six.py, ln 703, in reraise
azure\cli\core\commands\__init__.py, ln 665, in _run_job
azure\cli\core\commands\__init__.py, ln 324, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 574, in default_command_handler
azure\cli\command_modules\apim\custom.py, ln 31, in create_apim
TypeError: 'ApiManagementServiceResource' 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.
- Put any pre-requisite steps here…
az apim create --name "any" --publisher-email "any@example.com" --publisher-name "any" -g "any" --enable-managed-identity true
Expected Behavior
Should deploy a new APIM instance
NOTE: Using az apim update --enable-managed-identity true ...
doesn’t return error
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI
azure-cli 2.4.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Object does not support item assignment error - Stack Overflow
The error seems clear: model objects do not support item assignment. MyModel.objects.latest('id')['foo'] = 'bar' will throw this same error.
Read more >Python 'str' object does not support item assignment solution
Let's start by taking a look at our error: Typeerror: 'str' object does not support item assignment. This error message tells us that...
Read more >Python TypeError: 'str' object does not support item assignment
Python TypeError: 'str' object does not support item assignment.
Read more >PYTHON : 'str' object does not support item assignment
PYTHON : 'str' object does not support item assignment [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON ...
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
Just experienced the same issue, would appreciate an update on this. Thanks
@navba-MSFT, You are correct, I no long am able to reproduce this issue. Thanks!