GetDefinition

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/v3/go/azure/managedapplication"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
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)
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);

Using GetDefinition

function getDefinition(args: GetDefinitionArgs, opts?: InvokeOptions): Promise<GetDefinitionResult>
function  get_definition(name=None, resource_group_name=None, opts=None)
func LookupDefinition(ctx *Context, args *LookupDefinitionArgs, opts ...InvokeOption) (*LookupDefinitionResult, error)

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

public static class GetDefinition {
    public static Task<GetDefinitionResult> InvokeAsync(GetDefinitionArgs args, InvokeOptions? opts = null)
}

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 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.

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 str

The provider-assigned unique ID for this managed resource.

location str
name str
resource_group_name str

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.