Get-AzureADMSApplication

organization内のアプリケーションの一覧を取得します。

構文

Get-AzureADMSApplication
   [-All <Boolean>]
   [-Top <Int32>]
   [-Filter <String>]
   [<CommonParameters>]
Get-AzureADMSApplication
   [-SearchString <String>]
   [-All <Boolean>]
   [<CommonParameters>]
Get-AzureADMSApplication
   -ObjectId <String>
   [-All <Boolean>]
   [<CommonParameters>]

説明

organization内のアプリケーションの一覧を取得します。 引数 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 : クラス 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]

        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-deb705caedddd OdataType : AddIns : Api : {} クラス ApiApplication { AcceptMappedClaims: KnownClientApplications: PreAuthorizedApplications: RequestedAccessTokenVersion: 2 Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope]

        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\]

        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 : {} クラス ApiApplication { AcceptMappedClaims: KnownClientApplications: PreAuthorizedApplications: RequestedAccessTokenVersion: 2 Oauth2PermissionScopes: System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.PermissionScope]

        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 パラメーターで指定されたオブジェクトの数を返します。

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Filter

oData v3.0 フィルター ステートメントを指定します。 このパラメーターは、返されるオブジェクトを制御します。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

Microsoft Entra ID 内のアプリケーションの ID を指定します。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SearchString

-SearchString 値を満たすアプリケーションのみを取得します

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Top

返すレコードの最大数を指定します。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

入力

bool

int

string

出力

Microsoft.Open.MSGraph.Model.MsApplication

メモ

Microsoft Graph PowerShell への Get-AzureADMSApplication の移行ガイド を参照してください。