Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IoT Hub] Track 2 updates and managed identity implementation #18098

Merged
merged 12 commits into from
May 21, 2021
Prev Previous commit
Next Next commit
PR feedback and test updates
  • Loading branch information
c-ryan-k committed May 19, 2021
commit e9633f40afc65fafb2be41861a93caf3451ff3ad
5 changes: 3 additions & 2 deletions src/azure-cli/azure/cli/command_modules/iot/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,9 +1311,10 @@ def _process_fileupload_args(


def _build_identity(identities):
identities = identities or []
identity_type = IdentityType.none.value
if not identities or SYSTEM_IDENTITY in identities:
if not identities:
return ArmIdentity(type=identity_type)
if SYSTEM_IDENTITY in identities:
identity_type = IdentityType.system_assigned.value
user_identities = [i for i in identities if i != SYSTEM_IDENTITY]
if user_identities and identity_type == IdentityType.system_assigned.value:
Expand Down
Loading