Forum Discussion

Nivazz's avatar
Nivazz
Copper Contributor
Jan 15, 2025

Identify unused managed identity via Azure cli

Hello,

We do have lot of managed identity created under a RG but only few are allocated to Azure ML compute instance. Im trying to find unused managed identity under the RG.

 

Whether Azure cli command will help to achieve the requirement ? Please do let me know. Thanks

 

1 Reply

  • Try below BASH

     

    az identity list --query "[?type=='SystemAssigned' || type=='UserAssigned'].name" -o tsv