Skip to content

Commit a22585d

Browse files
authored
Merge pull request Azure#257 from karammasri/appproxylist
add script to list all the app proxy applications
2 parents ad350c4 + e1a711f commit a22585d

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyApplication.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ schema: 2.0.0
77
# Get-AzureADApplicationProxyApplication
88

99
## SYNOPSIS
10+
1011
The Get-AzureADApplicationProxyApplication cmdlet retrieves an application configured for Application Proxy in Azure Active Directory.
1112

1213
## SYNTAX
@@ -16,15 +17,16 @@ Get-AzureADApplicationProxyApplication -ObjectId <String>
1617
```
1718

1819
## DESCRIPTION
20+
1921
The Get-AzureADApplicationProxyApplication cmdlet retrieves an application configured for Application Proxy in Azure Active Directory.
2022

2123
## EXAMPLES
2224

2325
### Example 1
26+
2427
```
2528
PS C:\> Get-AzureADApplicationProxyApplication -ObjectId 8d6c6684-6f8c-42e2-8914-32ed2adf9ccf
2629
27-
2830
ExternalAuthenticationType : AadPreAuthentication
2931
ApplicationServerTimeout : Default
3032
ExternalUrl : https://travel.cycles.adventure-works.com/
@@ -46,15 +48,35 @@ SingleSignOnSettings :
4648
4749
```
4850

51+
### Example 2
52+
53+
Use the following script to get the list of Azure AD Application Proxy applications registered in your tenant:
54+
55+
```powershell
56+
foreach ($a in (Get-AzureADApplication -All:$true))
57+
{
58+
try
59+
{
60+
$p = Get-AzureADApplicationProxyApplication -ObjectId $a.ObjectId
61+
[pscustomobject]@{ObjectID=$a.ObjectId; DisplayName=$a.DisplayName; ExternalUrl=$p.ExternalUrl; InternalUrl=$p.InternalUrl}
62+
}
63+
catch
64+
{
65+
continue
66+
}
67+
}
68+
```
69+
4970
## PARAMETERS
5071

5172
### -ObjectId
52-
This is the unique application Id of the application. This can be found using the Get-AzureADApplication command. You can also find this in the Azure Portal by navigating to AAD, Enterprise Applications, All Applications, Select your application, go to the properties tab, and use the ObjectId on that page.
73+
74+
This is the unique application Id of the application. This can be found using the Get-AzureADApplication command. You can also find this in the Azure Portal by navigating to AAD, Enterprise Applications, All Applications, Select your application, go to the properties tab, and use the ObjectId on that page.
5375

5476
```yaml
5577
Type: String
5678
Parameter Sets: (All)
57-
Aliases:
79+
Aliases:
5880

5981
Required: True
6082
Position: Named
@@ -75,4 +97,3 @@ Accept wildcard characters: False
7597
## NOTES
7698
7799
## RELATED LINKS
78-

0 commit comments

Comments
 (0)