Azure Active Directory Application Proxy PowerShell examples

The following table includes links to PowerShell script examples for Azure AD Application Proxy. These samples require either the AzureAD V2 PowerShell for Graph module or the AzureAD V2 PowerShell for Graph module preview version, unless otherwise noted.

For more information about the cmdlets used in these samples, see Application Proxy Application Management and Application Proxy Connector Management.

Link Description
Application Proxy apps
List basic information for all Application Proxy apps Lists basic information (AppId, DisplayName, ObjId) about all the Application Proxy apps in your directory.
List extended information for all Application Proxy apps Lists extended information (AppId, DisplayName, ExternalUrl, InternalUrl, ExternalAuthenticationType) about all the Application Proxy apps in your directory.
List all Application Proxy apps by connector group Lists information about all the Application Proxy apps in your directory and which connector groups the apps are assigned to.
Get all Application Proxy apps with a token lifetime policy Lists all Application Proxy apps in your directory with a token lifetime policy and its details. This sample requires the AzureAD V2 PowerShell for Graph module preview version.
Connector groups
Get all connector groups and connectors in the directory Lists all the connector groups and connectors in your directory.
Move all apps assigned to a connector group to another connector group Moves all applications currently assigned to a connector group to a different connector group.
Users and group assigned
Display users and groups assigned to an Application Proxy application Lists the users and groups assigned to a specific Application Proxy application.
Assign a user to an application Assigns a specific user to an application.
Assign a group to an application Assigns a specific group to an application.
External URL configuration
Get all Application Proxy apps using default domains (.msappproxy.net) Lists all the Application Proxy applications using default domains (.msappproxy.net).
Get all Application Proxy apps using wildcard publishing Lists all Application Proxy apps using wildcard publishing.
Custom Domain configuration
Get all Application Proxy apps using custom domains and certificate information Lists all Application Proxy apps that are using custom domains and the certificate information associated with the custom domains.
Get all Azure AD Proxy application apps published with no certificate uploaded Lists all Application Proxy apps that are using custom domains but don't have a valid TLS/SSL certificate uploaded.
Get all Azure AD Proxy application apps published with the identical certificate Lists all the Azure AD Proxy application apps published with the identical certificate.
Get all Azure AD Proxy application apps published with the identical certificate and replace it For Azure AD Proxy application apps that are published with an identical certificate, allows you to replace the certificate in bulk.