-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Computeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm identity assign
Errors:
'NoneType' object is not callable
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/vm/custom.py, ln 648, in assign_vm_identity
assign_identity_helper(cmd.cli_ctx, getter, setter, identity_role=identity_role_id, identity_scope=identity_scope)
cli/core/commands/arm.py, ln 1057, in assign_identity
resource = setter(resource)
cli/command_modules/vm/custom.py, ln 642, in setter
vm.identity.user_assigned_identities[identity] = VirtualMachineIdentityUserAssignedIdentitiesValue()
TypeError: 'NoneType' object is not callable
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
-az cloud update --profile 2019-03-01-hybrid
- az login
az vm identity assign -g {} -n {} --identities {} --debug
Expected Behavior
The command will not failed.
Environment Summary
macOS-10.16-x86_64-i386-64bit
Python 3.8.7
Installer: HOMEBREW
azure-cli 2.11.1
Additional Context
After an upgrade of az cli, both on macOs and ubuntu, i have a new error, that i haven't before. I can't assign an UserManagedIdentity on a VM.
I inspect the code, and i saw that the cmd.get_models" in the same method of the exception return None value.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Computeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that