1. Packages
  2. Azure Classic
  3. API Docs
  4. managedapplication
  5. getDefinition

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Uses this data source to access information about an existing Managed Application Definition.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = Output.Create(Azure.ManagedApplication.GetDefinition.InvokeAsync(new Azure.ManagedApplication.GetDefinitionArgs
            {
                Name = "example-managedappdef",
                ResourceGroupName = "example-resources",
            }));
            this.Id = example.Apply(example => example.Id);
        }
    
        [Output("id")]
        public Output<string> Id { get; set; }
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/managedapplication"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := managedapplication.LookupDefinition(ctx, &managedapplication.LookupDefinitionArgs{
    			Name:              "example-managedappdef",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.managedapplication.getDefinition({
        name: "example-managedappdef",
        resourceGroupName: "example-resources",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.managedapplication.get_definition(name="example-managedappdef",
        resource_group_name="example-resources")
    pulumi.export("id", example.id)
    

    Example coming soon!

    Using getDefinition

    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 getDefinition(args: GetDefinitionArgs, opts?: InvokeOptions): Promise<GetDefinitionResult>
    function getDefinitionOutput(args: GetDefinitionOutputArgs, opts?: InvokeOptions): Output<GetDefinitionResult>
    def get_definition(name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDefinitionResult
    def get_definition_output(name: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDefinitionResult]
    func LookupDefinition(ctx *Context, args *LookupDefinitionArgs, opts ...InvokeOption) (*LookupDefinitionResult, error)
    func LookupDefinitionOutput(ctx *Context, args *LookupDefinitionOutputArgs, opts ...InvokeOption) LookupDefinitionResultOutput

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

    public static class GetDefinition 
    {
        public static Task<GetDefinitionResult> InvokeAsync(GetDefinitionArgs args, InvokeOptions? opts = null)
        public static Output<GetDefinitionResult> Invoke(GetDefinitionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDefinitionResult> getDefinition(GetDefinitionArgs args, InvokeOptions options)
    public static Output<GetDefinitionResult> getDefinition(GetDefinitionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:managedapplication/getDefinition:getDefinition
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specifies the name of the Managed Application Definition.
    ResourceGroupName string
    Specifies the name of the Resource Group where this Managed Application Definition exists.
    Name string
    Specifies the name of the Managed Application Definition.
    ResourceGroupName string
    Specifies the name of the Resource Group where this Managed Application Definition exists.
    name String
    Specifies the name of the Managed Application Definition.
    resourceGroupName String
    Specifies the name of the Resource Group where this Managed Application Definition exists.
    name string
    Specifies the name of the Managed Application Definition.
    resourceGroupName string
    Specifies the name of the Resource Group where this Managed Application Definition exists.
    name str
    Specifies the name of the Managed Application Definition.
    resource_group_name str
    Specifies the name of the Resource Group where this Managed Application Definition exists.
    name String
    Specifies the name of the Managed Application Definition.
    resourceGroupName String
    Specifies the name of the Resource Group where this Managed Application Definition exists.

    getDefinition Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    ResourceGroupName string
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    resourceGroupName string
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    resource_group_name str
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    resourceGroupName String

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.