Skip to content

Commit

Permalink
[Profile] Change MSI login's subscription list to key by ID (Azure#11269
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jiasli authored Nov 20, 2019
1 parent e47ee99 commit f4ee73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/azure-cli-core/azure/cli/core/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,7 @@ def find_subscriptions_in_vm_with_msi(self, identity_id=None, allow_no_subscript

consolidated = self._normalize_properties(user, subscriptions, is_service_principal=True,
user_assigned_identity_id=base_name)

# key-off subscription name to allow accounts with same id(but under different identities)
self._set_subscriptions(consolidated, secondary_key_name=_SUBSCRIPTION_NAME)
self._set_subscriptions(consolidated)
return deepcopy(consolidated)

def find_subscriptions_in_cloud_console(self):
Expand Down
1 change: 1 addition & 0 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Release History
* Polish error when running `az login -u {} -p {}` with Microsoft account
* Polish `SSLError` when running `az login` behind a proxy with self-signed root certificate
* Fix #10578: `az login` hangs when more than one instances are launched at the same time on Windows or WSL
* Fix #11238: After renaming a subscription, logging in with MSI will result in the same subscription appearing twice

**RBAC**

Expand Down

0 comments on commit f4ee73b

Please sign in to comment.