diff --git a/src/azure-cli/azure/cli/command_modules/sql/custom.py b/src/azure-cli/azure/cli/command_modules/sql/custom.py index da519e6b782..479d792d6cf 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/custom.py +++ b/src/azure-cli/azure/cli/command_modules/sql/custom.py @@ -454,11 +454,7 @@ def _get_identity_object_from_type( identityResult = ResourceIdentity(type=ResourceIdType.user_assigned.value, user_assigned_identities=umiDict) elif assignIdentityIsPresent: - if existingResourceIdentity is not None: - identityResult = existingResourceIdentity - identityResult.type = ResourceIdType.system_assigned.value - else: - identityResult = ResourceIdentity(type=ResourceIdType.system_assigned.value) + identityResult = ResourceIdentity(type=ResourceIdType.system_assigned.value) if assignIdentityIsPresent is False and existingResourceIdentity is not None: identityResult = existingResourceIdentity