Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Get-CMAADApplication
- Module:
- ConfigurationManager Module
Get the Microsoft Entra app object from the site.
Syntax
Default (Default)
Get-CMAADApplication
[-AppName <String>]
[-AppType <CloudApplicationType>]
[-ClientId <String>]
[-TenantId <String>]
[-TenantName <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
Use this cmdlet to get the Microsoft Entra app object from the site. It's commonly used with the New-CMCloudManagementAzureService cmdlet.
For more information about Microsoft Entra apps in Configuration Manager, see Configure Azure services.
Note
While some of the new cmdlets might work with other Azure services, they're only tested with the Cloud management connection to support the cloud management gateway (CMG).
Examples
Example 1: Get Microsoft Entra client apps by tenant name
This example returns all client apps in the specified tenant.
Get-CMAADApplication -TenantName "Contoso" -AppType ClientApplication
Example 2: Get Microsoft Entra server apps by tenant ID
This example returns all server apps in the specified tenant.
Get-CMAADApplication -TenantId "aaaabbbb-0000-cccc-1111-dddd2222eeee" -AppType ServerApplication
Example 3: Get a Microsoft Entra app by its name
Get-CMAADApplication -AppName "CmgServerApp"
Parameters
-AppName
Specify the name of the app in Microsoft Entra ID.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ApplicationName |
Parameter sets
-AppType
Specify whether to target the server or client app.
In Microsoft Entra ID, the server app is known as a web app registration, and the client app is known as a native app registration.
Parameter properties
| Type: | CloudApplicationType |
| Default value: | None |
| Accepted values: | ServerApplication, ClientApplication |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ApplicationType |
Parameter sets
-ClientId
Specify the Application (client) ID value of the app registration in Microsoft Entra ID. The format is a standard GUID.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-TenantId
Specify the GUID of your Microsoft Entra tenant.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-TenantName
Specify the name of your Microsoft Entra tenant.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
Outputs
IResultObject
Related Links
Feedback
Was this page helpful?
