How to Identify and Manage Unknown Managed Identities and Service Principals at the Subscription Level?

0
4
Asked By CuriousCat93 On

I've noticed some unknown managed identities and service principals assigned as owners and contributors at the subscription level. Their names seem like random strings of characters and numbers, which makes it hard to identify their purpose. I'm trying to figure out how to determine if we can safely remove them or what might happen if we unassign these roles. Any advice on how to investigate this?

8 Answers

Answered By On

r

Answered By On

J

Answered By TechieTom2023 On

One good way to start is by checking their sign-in logs and activity logs. This will help you see if they've actually done anything or if they're just sitting there inactive. If you notice no activity tied to them, that might give you more confidence in possibly removing their roles.

Answered By On

C

Answered By CloudSeeker88 On

If you're using a Cloud Service Provider, check if the assigned principal ID shows up in your Entra Tenant when you run Get-AzRoleAssignment or az role assignment list. That can tell you a lot about whether it's safe to remove them.

Answered By Dan On

a

Answered By NetworkNinja77 On

Make sure to check if these are 'Foreign Groups' before deleting them. If they are, it's better to leave them alone as they might impact something in ways you can't predict right now.

CuriousCat93 -

Interesting! Actually, the Type column does say Managed Identity, and when I click on it, it redirects me to an Enterprise Application with the same name but no sign-in activity. Does that change anything?

Answered By On

c

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.