How to manage Apps at via Powershell

Christian 1 Reputation point

Hi there

the title says it all - I have some apps which I can see on the site

If I login to AzureAD and call Get-AzADApplication I get different Apps.

How to get (and maybe remove old) Apps?

Thank you

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,309 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JamesTran-MSFT 36,351 Reputation points Microsoft Employee

    Thank you for your post!

    To hide apps from end-users within the MyApps panel or Microsoft 365 launcher, you can follow - Hide Enterprise applications from end-users in Azure Active Directory documentation. Keep in mind, you'll need Application administrator privileges to hide an application from the MyApps panel or Microsoft 365 launcher, and Global administrator privileges are required to hide all Microsoft 365 applications.

    PowerShell: To hide an application from the MyApps panel, you can manually add the HideApp tag to the service principal for the application. Run the following AzureAD PowerShell commands to set the application's Visible to Users? property to No

    $objectId = "<objectId>"  
    $servicePrincipal = Get-AzureADServicePrincipal -ObjectId $objectId  
    $tags = $servicePrincipal.tags  
    $tags += "HideApp"  
    Set-AzureADServicePrincipal -ObjectId $objectId -Tags $tags  

    Thank you for your time and patience throughout this issue.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

  2. Christian 1 Reputation point

    sorry for the late Answer - Christmas Holidays....

    However - no, this didn´t worked.

    I´ve connected to my account and looked to all available Apps via Get-AzureADServicePrincipal
    Now I´m getting a list of (obviously) Apps of my Company, but this list is quite different to what I´m seeing in and none of the expected Apps is here.

    Also weird - I tried to search for my via Portal.
    So I followed the Hints here:

    If I choose Enterprise Applications or Microsoft Applications I cant find anything.
    By choosing All Applications I can see my apps.


    0 comments No comments