你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureADMSApplication
检索组织内的应用程序列表。
语法
Get-AzureADMSApplication
[-All <Boolean>]
[-Top <Int32>]
[-Filter <String>]
[<CommonParameters>]
Get-AzureADMSApplication
[-SearchString <String>]
[-All <Boolean>]
[<CommonParameters>]
Get-AzureADMSApplication
-ObjectId <String>
[-All <Boolean>]
[<CommonParameters>]
说明
检索组织内的应用程序列表。 使用 ObjectId 参数,它可以检索与 ObjectId 关联的应用程序对象的属性。
示例
示例 1:按显示名称获取应用程序
PS C:\>Get-AzureADMSApplication -Filter "DisplayName eq 'My App'"
Id : ba4a97a7-3815-4752-bf4c-f1c0cccfff6a
OdataType :
Api : class ApiApplication {
AcceptMappedClaims:
KnownClientApplications:
PreAuthorizedApplications:
RequestedAccessTokenVersion: 2
Oauth2PermissionScopes:
System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PermissionScope]
}
AppId : 807dd73f-8451-4cfa-b3bc-52ac3fd95330
AppRoles : {}
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
DeletedDateTime :
DisplayName : My App
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List`1[System.String]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClientApplication :
RequiredResourceAccess : {}
SignInAudience : AzureADandPersonalMicrosoftAccount
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
LogoutUrl:
Oauth2AllowImplicitFlow:
RedirectUris: System.Collections.Generic.List`1[System.String]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: False
EnableAccessTokenIssuance: False
}
}
此命令按应用程序显示名称获取应用程序。
示例 2:按 ID 获取应用程序
PS C:\>Get-AzureADMSApplication -Filter "AppId eq 'ed192e92-84d4-4baf-997d-1e190a81f28e'"
此命令按 ID 获取应用程序。
输出:
Id : ba4a97a7-3815-4752-bf4c-f1c0cccfff6a OdataType : Api : class ApiApplication { AcceptMappedClaims: KnownClientApplications: PreAuthorizedApplications: RequestedAccessTokenVersion: 2 Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope] }
AppId : 807dd73f-8451-4cfa-b3bc-52ac3fd95330
AppRoles : {}
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
DeletedDateTime :
DisplayName : My App
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List\`1\[System.String\]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClientApplication :
RequiredResourceAccess : {}
SignInAudience : AzureADandPersonalMicrosoftAccount
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
LogoutUrl:
Oauth2AllowImplicitFlow:
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: False
EnableAccessTokenIssuance: False
}
}
示例 3:通过 identifierUris 检索应用程序
Get-AzureADMSApplication -Filter "identifierUris/any(uri:uri eq 'http://wingtips.wingtiptoysonline.com')"
示例 4:按对象 ID 获取应用程序
PS C:\>Get-AzureADMSApplication -ObjectId ffe886bc-e978-4002-829e-cf5b1e83d56a
此命令按应用程序的对象 ID 获取应用程序。
输出:
Id : f8bbcbe4-df80-4a6b-80c5-926e28e41407 OdataType : AddIns : {} Api : class ApiApplication { AcceptMappedClaims: KnownClientApplications: PreAuthorizedApplications: RequestedAccessTokenVersion: Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope] ResourceSpecificApplicationPermissions: }
AppId : 18f78c92-365c-4fa0-9b6f-7e06fff27ffe
ApplicationTemplateId :
AppRoles : {}
GroupMembershipClaims :
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
CreatedDateTime :
DeletedDateTime :
DisplayName : my app
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List\`1\[System.String\]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClient : class PublicClientApplication {
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
}
PublisherDomain :
RequiredResourceAccess : {}
SignInAudience : AzureADMyOrg
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
HomePageUrl:
LogoutUrl:
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: True
EnableAccessTokenIssuance: False
}
}
示例 5:获取前 2 个应用程序
PS C:\>Get-AzureADMSApplication -Top 2
此命令获取前 2 个应用程序
输出:
Id : 121ce3aa-64cb-44f2-99e8-deb705caeddd OdataType : AddIns : {} Api : class ApiApplication { AcceptMappedClaims: KnownClientApplications : PreAuthorizedApplications: RequestedAccessTokenVersion: 2 Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope] ResourceSpecificApplicationPermissions: }
AppId : a1293e4b-97ae-4f58-9eeb-d0ba5b4b821a
ApplicationTemplateId :
AppRoles : {}
GroupMembershipClaims :
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
CreatedDateTime :
DeletedDateTime :
DisplayName : My App
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List\`1\[System.String\]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClient : class PublicClientApplication {
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
}
PublisherDomain :
RequiredResourceAccess : {}
SignInAudience : AzureADandPersonalMicrosoftAccount
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
HomePageUrl:
LogoutUrl:
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: False
EnableAccessTokenIssuance: False
}
}
Id : 14a3f1ac-46a7-4d00-b1ca-0b2b84f033c2
OdataType :
AddIns : {}
Api : class ApiApplication {
AcceptMappedClaims:
KnownClientApplications:
PreAuthorizedApplications:
RequestedAccessTokenVersion: 2
Oauth2PermissionScopes:
System.Collections.Generic.List\`1\[Microsoft.Open.MSGraph.Model.PermissionScope\]
ResourceSpecificApplicationPermissions:
}
AppId : 51546bbc-4233-42d3-a08e-c73a370f5d41
ApplicationTemplateId :
AppRoles : {}
GroupMembershipClaims :
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
CreatedDateTime :
DeletedDateTime :
DisplayName : My App
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List\`1\[System.String\]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClient : class PublicClientApplication {
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
}
PublisherDomain :
RequiredResourceAccess : {}
SignInAudience : AzureADandPersonalMicrosoftAccount
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
HomePageUrl:
LogoutUrl:
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: False
EnableAccessTokenIssuance: False
}
}
示例 6:检索所有应用程序的列表
PS C:\>Get-AzureADMSApplication -All $true
示例 5:检索具有包含“asdfl”的显示名称的所有应用程序的列表
PS C:\>Get-AzureADMSApplication -SearchString asdfl
此命令获取具有指定显示名称的应用程序的列表
输出:
Id : 88da75d4-2cba-4c47-9a15-80a983228ad4 OdataType : AddIns : {} Api : class ApiApplication { AcceptMappedClaims: KnownClientApplications: PreAuthorizedApplications: RequestedAccessTokenVersion: 2 Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope] ResourceSpecificApplicationPermissions: }
AppId : 2cffc854-bbcf-404a-8bba-70d043534129
ApplicationTemplateId :
AppRoles : {}
GroupMembershipClaims :
IsDeviceOnlyAuthSupported :
IsFallbackPublicClient :
IdentifierUris : {}
CreatedDateTime : 10/24/2019 6:27:25 AM
DeletedDateTime :
DisplayName : asdflkj
Info : class InformationalUrl {
TermsOfServiceUrl:
MarketingUrl:
PrivacyStatementUrl:
SupportUrl:
LogoUrl:
}
KeyCredentials : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors: System.Collections.Generic.List\`1\[System.String\]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PublicClient : class PublicClientApplication {
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
}
PublisherDomain :
RequiredResourceAccess : {}
SignInAudience : AzureADandPersonalMicrosoftAccount
Tags : {}
TokenEncryptionKeyId :
Web : class WebApplication {
HomePageUrl:
LogoutUrl:
RedirectUris: System.Collections.Generic.List\`1\[System.String\]
ImplicitGrantSettings: class ImplicitGrantSettings {
EnableIdTokenIssuance: False
EnableAccessTokenIssuance: False
}
}
参数
-All
如果为 true,则返回所有应用程序。 如果为 false,则返回由 Top 参数指定的对象数
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Filter
指定 oData v3.0 筛选器语句。 此参数控制返回的对象。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-ObjectId
指定 Azure Active Directory 中应用程序的 ID
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-SearchString
仅检索满足 -SearchString 值的应用程序
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Top
指定要返回的最大记录数。
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
输入
bool
int
string
输出
Microsoft.Open.MSGraph.Model.MsApplication