Get-AzureADMSApplication
Hämtar listan över program i organisationen.
Syntax
Get-AzureADMSApplication
[-All <Boolean>]
[-Top <Int32>]
[-Filter <String>]
[<CommonParameters>]
Get-AzureADMSApplication
[-SearchString <String>]
[-All <Boolean>]
[<CommonParameters>]
Get-AzureADMSApplication
-ObjectId <String>
[-All <Boolean>]
[<CommonParameters>]
Description
Hämtar listan över program i organisationen. Med ett ObjectId-argument kan det hämta egenskaperna för det programobjekt som är associerat med ObjectId.
Exempel
Exempel 1: Hämta ett program efter visningsnamn
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
}
}
Det här kommandot hämtar ett program med dess visningsnamn.
Exempel 2: Hämta ett program efter ID
PS C:\>Get-AzureADMSApplication -Filter "AppId eq 'ed192e92-84d4-4baf-997d-1e190a81f28e'"
Det här kommandot hämtar ett program med sitt ID.
Utdata:
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
}
}
Exempel 3: Hämta ett program med identifierUris
Get-AzureADMSApplication -Filter "identifierUris/any(uri:uri eq 'http://wingtips.wingtiptoysonline.com')"
Exempel 4: Hämta ett program efter objekt-ID
PS C:\>Get-AzureADMSApplication -ObjectId ffe886bc-e978-4002-829e-cf5b1e83d56a
Det här kommandot hämtar ett program efter dess objekt-ID.
Utdata:
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
}
}
Exempel 5: Hämta de två första programmen
PS C:\>Get-AzureADMSApplication -Top 2
Det här kommandot hämtar de två första programmen
Utdata:
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
}
}
Exempel 6: Hämta en lista över alla program
PS C:\>Get-AzureADMSApplication -All $true
Exempel 5: Hämta en lista över alla program som har ett visningsnamn som innehåller "asdfl"
PS C:\>Get-AzureADMSApplication -SearchString asdfl
Det här kommandot hämtar en lista över program som har det angivna visningsnamnet
Utdata:
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
}
}
Parametrar
-All
Om det är sant returnerar du alla program. Om det är falskt returnerar du det antal objekt som anges av topparametern
Typ: | Boolean |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Filter
Anger en oData v3.0-filtersats. Den här parametern styr vilka objekt som returneras.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ObjectId
Anger ID för ett program i Azure Active Directory
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-SearchString
Hämta endast de program som uppfyller värdet -SearchString
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Top
Anger det maximala antalet poster som ska returneras.
Typ: | Int32 |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
bool
int
string
Utdata
Microsoft.Open.MSGraph.Model.MsApplication