1. Packages
  2. Azure Active Directory (Azure AD)
  3. API Docs
  4. getApplicationTemplate
Azure Active Directory (Azure AD) v5.52.0 published on Friday, Jun 14, 2024 by Pulumi

azuread.getApplicationTemplate

Explore with Pulumi AI

azuread logo
Azure Active Directory (Azure AD) v5.52.0 published on Friday, Jun 14, 2024 by Pulumi

    Use this data source to access information about an Application Template from the Azure AD App Gallery.

    API Permissions

    This data source does not require any additional roles.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azuread from "@pulumi/azuread";
    
    const example = azuread.getApplicationTemplate({
        displayName: "Marketo",
    });
    export const applicationTemplateId = example.then(example => example.templateId);
    
    import pulumi
    import pulumi_azuread as azuread
    
    example = azuread.get_application_template(display_name="Marketo")
    pulumi.export("applicationTemplateId", example.template_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuread.GetApplicationTemplate(ctx, &azuread.GetApplicationTemplateArgs{
    			DisplayName: pulumi.StringRef("Marketo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("applicationTemplateId", example.TemplateId)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureAD = Pulumi.AzureAD;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AzureAD.GetApplicationTemplate.Invoke(new()
        {
            DisplayName = "Marketo",
        });
    
        return new Dictionary<string, object?>
        {
            ["applicationTemplateId"] = example.Apply(getApplicationTemplateResult => getApplicationTemplateResult.TemplateId),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuread.AzureadFunctions;
    import com.pulumi.azuread.inputs.GetApplicationTemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = AzureadFunctions.getApplicationTemplate(GetApplicationTemplateArgs.builder()
                .displayName("Marketo")
                .build());
    
            ctx.export("applicationTemplateId", example.applyValue(getApplicationTemplateResult -> getApplicationTemplateResult.templateId()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azuread:getApplicationTemplate
          Arguments:
            displayName: Marketo
    outputs:
      applicationTemplateId: ${example.templateId}
    

    Using getApplicationTemplate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getApplicationTemplate(args: GetApplicationTemplateArgs, opts?: InvokeOptions): Promise<GetApplicationTemplateResult>
    function getApplicationTemplateOutput(args: GetApplicationTemplateOutputArgs, opts?: InvokeOptions): Output<GetApplicationTemplateResult>
    def get_application_template(display_name: Optional[str] = None,
                                 template_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetApplicationTemplateResult
    def get_application_template_output(display_name: Optional[pulumi.Input[str]] = None,
                                 template_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetApplicationTemplateResult]
    func GetApplicationTemplate(ctx *Context, args *GetApplicationTemplateArgs, opts ...InvokeOption) (*GetApplicationTemplateResult, error)
    func GetApplicationTemplateOutput(ctx *Context, args *GetApplicationTemplateOutputArgs, opts ...InvokeOption) GetApplicationTemplateResultOutput

    > Note: This function is named GetApplicationTemplate in the Go SDK.

    public static class GetApplicationTemplate 
    {
        public static Task<GetApplicationTemplateResult> InvokeAsync(GetApplicationTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationTemplateResult> Invoke(GetApplicationTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationTemplateResult> getApplicationTemplate(GetApplicationTemplateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azuread:index/getApplicationTemplate:getApplicationTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DisplayName string
    Specifies the display name of the templated application.
    TemplateId string

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    DisplayName string
    Specifies the display name of the templated application.
    TemplateId string

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    displayName String
    Specifies the display name of the templated application.
    templateId String

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    displayName string
    Specifies the display name of the templated application.
    templateId string

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    display_name str
    Specifies the display name of the templated application.
    template_id str

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    displayName String
    Specifies the display name of the templated application.
    templateId String

    Specifies the ID of the templated application.

    One of template_id or display_name must be specified.

    getApplicationTemplate Result

    The following output properties are available:

    Categories List<string>
    List of categories for this templated application.
    DisplayName string
    The display name for the templated application.
    HomepageUrl string
    Home page URL of the templated application.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogoUrl string
    URL to retrieve the logo for this templated application.
    Publisher string
    Name of the publisher for this templated application.
    SupportedProvisioningTypes List<string>
    List of provisioning modes supported by this templated application.
    SupportedSingleSignOnModes List<string>
    List of single sign on modes supported by this templated application.
    TemplateId string
    The ID of the templated application.
    Categories []string
    List of categories for this templated application.
    DisplayName string
    The display name for the templated application.
    HomepageUrl string
    Home page URL of the templated application.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogoUrl string
    URL to retrieve the logo for this templated application.
    Publisher string
    Name of the publisher for this templated application.
    SupportedProvisioningTypes []string
    List of provisioning modes supported by this templated application.
    SupportedSingleSignOnModes []string
    List of single sign on modes supported by this templated application.
    TemplateId string
    The ID of the templated application.
    categories List<String>
    List of categories for this templated application.
    displayName String
    The display name for the templated application.
    homepageUrl String
    Home page URL of the templated application.
    id String
    The provider-assigned unique ID for this managed resource.
    logoUrl String
    URL to retrieve the logo for this templated application.
    publisher String
    Name of the publisher for this templated application.
    supportedProvisioningTypes List<String>
    List of provisioning modes supported by this templated application.
    supportedSingleSignOnModes List<String>
    List of single sign on modes supported by this templated application.
    templateId String
    The ID of the templated application.
    categories string[]
    List of categories for this templated application.
    displayName string
    The display name for the templated application.
    homepageUrl string
    Home page URL of the templated application.
    id string
    The provider-assigned unique ID for this managed resource.
    logoUrl string
    URL to retrieve the logo for this templated application.
    publisher string
    Name of the publisher for this templated application.
    supportedProvisioningTypes string[]
    List of provisioning modes supported by this templated application.
    supportedSingleSignOnModes string[]
    List of single sign on modes supported by this templated application.
    templateId string
    The ID of the templated application.
    categories Sequence[str]
    List of categories for this templated application.
    display_name str
    The display name for the templated application.
    homepage_url str
    Home page URL of the templated application.
    id str
    The provider-assigned unique ID for this managed resource.
    logo_url str
    URL to retrieve the logo for this templated application.
    publisher str
    Name of the publisher for this templated application.
    supported_provisioning_types Sequence[str]
    List of provisioning modes supported by this templated application.
    supported_single_sign_on_modes Sequence[str]
    List of single sign on modes supported by this templated application.
    template_id str
    The ID of the templated application.
    categories List<String>
    List of categories for this templated application.
    displayName String
    The display name for the templated application.
    homepageUrl String
    Home page URL of the templated application.
    id String
    The provider-assigned unique ID for this managed resource.
    logoUrl String
    URL to retrieve the logo for this templated application.
    publisher String
    Name of the publisher for this templated application.
    supportedProvisioningTypes List<String>
    List of provisioning modes supported by this templated application.
    supportedSingleSignOnModes List<String>
    List of single sign on modes supported by this templated application.
    templateId String
    The ID of the templated application.

    Package Details

    Repository
    Azure Active Directory (Azure AD) pulumi/pulumi-azuread
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuread Terraform Provider.
    azuread logo
    Azure Active Directory (Azure AD) v5.52.0 published on Friday, Jun 14, 2024 by Pulumi