Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/command_modules/azure-cli-vm/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release History
===============
2.0.24
++++++
* vm/vmss: use right term of "userAssignedIdentity" for EMSI
* vm: (PREVIEW) support os disk swap
* vm: support use image from other subscriptions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@


def _construct_identity_info(identity_scope, identity_role, port, external_identities):
info = {
'scope': identity_scope or '',
'role': str(identity_role), # could be DefaultStr, so convert to string
'port': port
}
info = {'port': port}
if identity_scope:
info['scope'] = identity_scope
info['role'] = str(identity_role) # could be DefaultStr, so convert to string
if external_identities:
info['externalIdentities'] = external_identities
info['userAssignedIdentities'] = external_identities
return info


Expand Down
Loading