blueprint

package
v5.74.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	pulumi.CustomResourceState

	// The name of the blueprint assigned
	BlueprintName pulumi.StringOutput `pulumi:"blueprintName"`
	// The Description on the Blueprint
	Description pulumi.StringOutput `pulumi:"description"`
	// The display name of the blueprint
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// An `identity` block as defined below.
	Identity AssignmentIdentityOutput `pulumi:"identity"`
	// The Azure location of the Assignment. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// a list of up to 200 actions that are permitted to bypass the locks applied by the Blueprint.
	LockExcludeActions pulumi.StringArrayOutput `pulumi:"lockExcludeActions"`
	// a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint.
	LockExcludePrincipals pulumi.StringArrayOutput `pulumi:"lockExcludePrincipals"`
	// The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AllResourcesDoNotDelete`. Defaults to `None`.
	LockMode pulumi.StringPtrOutput `pulumi:"lockMode"`
	// The name of the Blueprint Assignment. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// a JSON string to supply Blueprint Assignment parameter values.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ParameterValues pulumi.StringPtrOutput `pulumi:"parameterValues"`
	// a JSON string to supply the Blueprint Resource Group information.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ResourceGroups pulumi.StringPtrOutput `pulumi:"resourceGroups"`
	// The Subscription ID the Blueprint Published Version is to be applied to. Changing this forces a new resource to be created.
	TargetSubscriptionId pulumi.StringOutput `pulumi:"targetSubscriptionId"`
	Type                 pulumi.StringOutput `pulumi:"type"`
	// The ID of the Published Version of the blueprint to be assigned.
	VersionId pulumi.StringOutput `pulumi:"versionId"`
}

Manages a Blueprint Assignment resource

> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.

> **NOTE:** Azure Blueprint Assignments can only be applied to Subscriptions. Assignments to Management Groups is not currently supported by the service or by this provider.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/blueprint"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		example, err := core.LookupSubscription(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleGetDefinition, err := blueprint.GetDefinition(ctx, &blueprint.GetDefinitionArgs{
			Name:    "exampleBlueprint",
			ScopeId: example.Id,
		}, nil)
		if err != nil {
			return err
		}
		exampleGetPublishedVersion, err := blueprint.GetPublishedVersion(ctx, &blueprint.GetPublishedVersionArgs{
			ScopeId:       exampleGetDefinition.ScopeId,
			BlueprintName: exampleGetDefinition.Name,
			Version:       "v1.0.0",
		}, nil)
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("exampleRG-bp"),
			Location: pulumi.String("West Europe"),
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Name:              pulumi.String("bp-user-example"),
		})
		if err != nil {
			return err
		}
		_, err = authorization.NewAssignment(ctx, "operator", &authorization.AssignmentArgs{
			Scope:              pulumi.String(example.Id),
			RoleDefinitionName: pulumi.String("Blueprint Operator"),
			PrincipalId:        exampleUserAssignedIdentity.PrincipalId,
		})
		if err != nil {
			return err
		}
		_, err = authorization.NewAssignment(ctx, "owner", &authorization.AssignmentArgs{
			Scope:              pulumi.String(example.Id),
			RoleDefinitionName: pulumi.String("Owner"),
			PrincipalId:        exampleUserAssignedIdentity.PrincipalId,
		})
		if err != nil {
			return err
		}
		_, err = blueprint.NewAssignment(ctx, "example", &blueprint.AssignmentArgs{
			Name:                 pulumi.String("testAccBPAssignment"),
			TargetSubscriptionId: pulumi.String(example.Id),
			VersionId:            pulumi.String(exampleGetPublishedVersion.Id),
			Location:             exampleResourceGroup.Location,
			LockMode:             pulumi.String("AllResourcesDoNotDelete"),
			LockExcludePrincipals: pulumi.StringArray{
				pulumi.String(current.ObjectId),
			},
			Identity: &blueprint.AssignmentIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				IdentityIds: pulumi.StringArray{
					exampleUserAssignedIdentity.ID(),
				},
			},
			ResourceGroups: pulumi.String(`    {
      "ResourceGroup": {
        "name": "exampleRG-bp"
      }
    }

`),

			ParameterValues: pulumi.String(`    {
      "allowedlocationsforresourcegroups_listOfAllowedLocations": {
        "value": ["westus", "westus2", "eastus", "centralus", "centraluseuap", "southcentralus", "northcentralus", "westcentralus", "eastus2", "eastus2euap", "brazilsouth", "brazilus", "northeurope", "westeurope", "eastasia", "southeastasia", "japanwest", "japaneast", "koreacentral", "koreasouth", "indiasouth", "indiawest", "indiacentral", "australiaeast", "australiasoutheast", "canadacentral", "canadaeast", "uknorth", "uksouth2", "uksouth", "ukwest", "francecentral", "francesouth", "australiacentral", "australiacentral2", "uaecentral", "uaenorth", "southafricanorth", "southafricawest", "switzerlandnorth", "switzerlandwest", "germanynorth", "germanywestcentral", "norwayeast", "norwaywest"]
      }
    }

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Azure Blueprint Assignments can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:blueprint/assignment:Assignment example "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprintAssignments/assignSimpleBlueprint" ```

func GetAssignment

func GetAssignment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AssignmentState, opts ...pulumi.ResourceOption) (*Assignment, error)

GetAssignment gets an existing Assignment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAssignment

func NewAssignment(ctx *pulumi.Context,
	name string, args *AssignmentArgs, opts ...pulumi.ResourceOption) (*Assignment, error)

NewAssignment registers a new resource with the given unique name, arguments, and options.

func (*Assignment) ElementType

func (*Assignment) ElementType() reflect.Type

func (*Assignment) ToAssignmentOutput

func (i *Assignment) ToAssignmentOutput() AssignmentOutput

func (*Assignment) ToAssignmentOutputWithContext

func (i *Assignment) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput

type AssignmentArgs

type AssignmentArgs struct {
	// An `identity` block as defined below.
	Identity AssignmentIdentityInput
	// The Azure location of the Assignment. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// a list of up to 200 actions that are permitted to bypass the locks applied by the Blueprint.
	LockExcludeActions pulumi.StringArrayInput
	// a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint.
	LockExcludePrincipals pulumi.StringArrayInput
	// The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AllResourcesDoNotDelete`. Defaults to `None`.
	LockMode pulumi.StringPtrInput
	// The name of the Blueprint Assignment. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// a JSON string to supply Blueprint Assignment parameter values.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ParameterValues pulumi.StringPtrInput
	// a JSON string to supply the Blueprint Resource Group information.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ResourceGroups pulumi.StringPtrInput
	// The Subscription ID the Blueprint Published Version is to be applied to. Changing this forces a new resource to be created.
	TargetSubscriptionId pulumi.StringInput
	// The ID of the Published Version of the blueprint to be assigned.
	VersionId pulumi.StringInput
}

The set of arguments for constructing a Assignment resource.

func (AssignmentArgs) ElementType

func (AssignmentArgs) ElementType() reflect.Type

type AssignmentArray

type AssignmentArray []AssignmentInput

func (AssignmentArray) ElementType

func (AssignmentArray) ElementType() reflect.Type

func (AssignmentArray) ToAssignmentArrayOutput

func (i AssignmentArray) ToAssignmentArrayOutput() AssignmentArrayOutput

func (AssignmentArray) ToAssignmentArrayOutputWithContext

func (i AssignmentArray) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput

type AssignmentArrayInput

type AssignmentArrayInput interface {
	pulumi.Input

	ToAssignmentArrayOutput() AssignmentArrayOutput
	ToAssignmentArrayOutputWithContext(context.Context) AssignmentArrayOutput
}

AssignmentArrayInput is an input type that accepts AssignmentArray and AssignmentArrayOutput values. You can construct a concrete instance of `AssignmentArrayInput` via:

AssignmentArray{ AssignmentArgs{...} }

type AssignmentArrayOutput

type AssignmentArrayOutput struct{ *pulumi.OutputState }

func (AssignmentArrayOutput) ElementType

func (AssignmentArrayOutput) ElementType() reflect.Type

func (AssignmentArrayOutput) Index

func (AssignmentArrayOutput) ToAssignmentArrayOutput

func (o AssignmentArrayOutput) ToAssignmentArrayOutput() AssignmentArrayOutput

func (AssignmentArrayOutput) ToAssignmentArrayOutputWithContext

func (o AssignmentArrayOutput) ToAssignmentArrayOutputWithContext(ctx context.Context) AssignmentArrayOutput

type AssignmentIdentity

type AssignmentIdentity struct {
	// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Blueprint.
	IdentityIds []string `pulumi:"identityIds"`
	PrincipalId *string  `pulumi:"principalId"`
	TenantId    *string  `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Blueprint. Possible values are `SystemAssigned` and `UserAssigned`.
	Type string `pulumi:"type"`
}

type AssignmentIdentityArgs

type AssignmentIdentityArgs struct {
	// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Blueprint.
	IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
	PrincipalId pulumi.StringPtrInput   `pulumi:"principalId"`
	TenantId    pulumi.StringPtrInput   `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Blueprint. Possible values are `SystemAssigned` and `UserAssigned`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (AssignmentIdentityArgs) ElementType

func (AssignmentIdentityArgs) ElementType() reflect.Type

func (AssignmentIdentityArgs) ToAssignmentIdentityOutput

func (i AssignmentIdentityArgs) ToAssignmentIdentityOutput() AssignmentIdentityOutput

func (AssignmentIdentityArgs) ToAssignmentIdentityOutputWithContext

func (i AssignmentIdentityArgs) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput

func (AssignmentIdentityArgs) ToAssignmentIdentityPtrOutput

func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput

func (AssignmentIdentityArgs) ToAssignmentIdentityPtrOutputWithContext

func (i AssignmentIdentityArgs) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput

type AssignmentIdentityInput

type AssignmentIdentityInput interface {
	pulumi.Input

	ToAssignmentIdentityOutput() AssignmentIdentityOutput
	ToAssignmentIdentityOutputWithContext(context.Context) AssignmentIdentityOutput
}

AssignmentIdentityInput is an input type that accepts AssignmentIdentityArgs and AssignmentIdentityOutput values. You can construct a concrete instance of `AssignmentIdentityInput` via:

AssignmentIdentityArgs{...}

type AssignmentIdentityOutput

type AssignmentIdentityOutput struct{ *pulumi.OutputState }

func (AssignmentIdentityOutput) ElementType

func (AssignmentIdentityOutput) ElementType() reflect.Type

func (AssignmentIdentityOutput) IdentityIds

Specifies a list of User Assigned Managed Identity IDs to be assigned to this Blueprint.

func (AssignmentIdentityOutput) PrincipalId added in v5.49.0

func (AssignmentIdentityOutput) TenantId added in v5.49.0

func (AssignmentIdentityOutput) ToAssignmentIdentityOutput

func (o AssignmentIdentityOutput) ToAssignmentIdentityOutput() AssignmentIdentityOutput

func (AssignmentIdentityOutput) ToAssignmentIdentityOutputWithContext

func (o AssignmentIdentityOutput) ToAssignmentIdentityOutputWithContext(ctx context.Context) AssignmentIdentityOutput

func (AssignmentIdentityOutput) ToAssignmentIdentityPtrOutput

func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput

func (AssignmentIdentityOutput) ToAssignmentIdentityPtrOutputWithContext

func (o AssignmentIdentityOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput

func (AssignmentIdentityOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Blueprint. Possible values are `SystemAssigned` and `UserAssigned`.

type AssignmentIdentityPtrInput

type AssignmentIdentityPtrInput interface {
	pulumi.Input

	ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput
	ToAssignmentIdentityPtrOutputWithContext(context.Context) AssignmentIdentityPtrOutput
}

AssignmentIdentityPtrInput is an input type that accepts AssignmentIdentityArgs, AssignmentIdentityPtr and AssignmentIdentityPtrOutput values. You can construct a concrete instance of `AssignmentIdentityPtrInput` via:

        AssignmentIdentityArgs{...}

or:

        nil

type AssignmentIdentityPtrOutput

type AssignmentIdentityPtrOutput struct{ *pulumi.OutputState }

func (AssignmentIdentityPtrOutput) Elem

func (AssignmentIdentityPtrOutput) ElementType

func (AssignmentIdentityPtrOutput) IdentityIds

Specifies a list of User Assigned Managed Identity IDs to be assigned to this Blueprint.

func (AssignmentIdentityPtrOutput) PrincipalId added in v5.49.0

func (AssignmentIdentityPtrOutput) TenantId added in v5.49.0

func (AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutput

func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutput() AssignmentIdentityPtrOutput

func (AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutputWithContext

func (o AssignmentIdentityPtrOutput) ToAssignmentIdentityPtrOutputWithContext(ctx context.Context) AssignmentIdentityPtrOutput

func (AssignmentIdentityPtrOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Blueprint. Possible values are `SystemAssigned` and `UserAssigned`.

type AssignmentInput

type AssignmentInput interface {
	pulumi.Input

	ToAssignmentOutput() AssignmentOutput
	ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput
}

type AssignmentMap

type AssignmentMap map[string]AssignmentInput

func (AssignmentMap) ElementType

func (AssignmentMap) ElementType() reflect.Type

func (AssignmentMap) ToAssignmentMapOutput

func (i AssignmentMap) ToAssignmentMapOutput() AssignmentMapOutput

func (AssignmentMap) ToAssignmentMapOutputWithContext

func (i AssignmentMap) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput

type AssignmentMapInput

type AssignmentMapInput interface {
	pulumi.Input

	ToAssignmentMapOutput() AssignmentMapOutput
	ToAssignmentMapOutputWithContext(context.Context) AssignmentMapOutput
}

AssignmentMapInput is an input type that accepts AssignmentMap and AssignmentMapOutput values. You can construct a concrete instance of `AssignmentMapInput` via:

AssignmentMap{ "key": AssignmentArgs{...} }

type AssignmentMapOutput

type AssignmentMapOutput struct{ *pulumi.OutputState }

func (AssignmentMapOutput) ElementType

func (AssignmentMapOutput) ElementType() reflect.Type

func (AssignmentMapOutput) MapIndex

func (AssignmentMapOutput) ToAssignmentMapOutput

func (o AssignmentMapOutput) ToAssignmentMapOutput() AssignmentMapOutput

func (AssignmentMapOutput) ToAssignmentMapOutputWithContext

func (o AssignmentMapOutput) ToAssignmentMapOutputWithContext(ctx context.Context) AssignmentMapOutput

type AssignmentOutput

type AssignmentOutput struct{ *pulumi.OutputState }

func (AssignmentOutput) BlueprintName added in v5.5.0

func (o AssignmentOutput) BlueprintName() pulumi.StringOutput

The name of the blueprint assigned

func (AssignmentOutput) Description added in v5.5.0

func (o AssignmentOutput) Description() pulumi.StringOutput

The Description on the Blueprint

func (AssignmentOutput) DisplayName added in v5.5.0

func (o AssignmentOutput) DisplayName() pulumi.StringOutput

The display name of the blueprint

func (AssignmentOutput) ElementType

func (AssignmentOutput) ElementType() reflect.Type

func (AssignmentOutput) Identity added in v5.5.0

An `identity` block as defined below.

func (AssignmentOutput) Location added in v5.5.0

func (o AssignmentOutput) Location() pulumi.StringOutput

The Azure location of the Assignment. Changing this forces a new resource to be created.

func (AssignmentOutput) LockExcludeActions added in v5.5.0

func (o AssignmentOutput) LockExcludeActions() pulumi.StringArrayOutput

a list of up to 200 actions that are permitted to bypass the locks applied by the Blueprint.

func (AssignmentOutput) LockExcludePrincipals added in v5.5.0

func (o AssignmentOutput) LockExcludePrincipals() pulumi.StringArrayOutput

a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint.

func (AssignmentOutput) LockMode added in v5.5.0

The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AllResourcesDoNotDelete`. Defaults to `None`.

func (AssignmentOutput) Name added in v5.5.0

The name of the Blueprint Assignment. Changing this forces a new resource to be created.

func (AssignmentOutput) ParameterValues added in v5.5.0

func (o AssignmentOutput) ParameterValues() pulumi.StringPtrOutput

a JSON string to supply Blueprint Assignment parameter values.

> **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.

func (AssignmentOutput) ResourceGroups added in v5.5.0

func (o AssignmentOutput) ResourceGroups() pulumi.StringPtrOutput

a JSON string to supply the Blueprint Resource Group information.

> **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.

func (AssignmentOutput) TargetSubscriptionId added in v5.5.0

func (o AssignmentOutput) TargetSubscriptionId() pulumi.StringOutput

The Subscription ID the Blueprint Published Version is to be applied to. Changing this forces a new resource to be created.

func (AssignmentOutput) ToAssignmentOutput

func (o AssignmentOutput) ToAssignmentOutput() AssignmentOutput

func (AssignmentOutput) ToAssignmentOutputWithContext

func (o AssignmentOutput) ToAssignmentOutputWithContext(ctx context.Context) AssignmentOutput

func (AssignmentOutput) Type added in v5.5.0

func (AssignmentOutput) VersionId added in v5.5.0

func (o AssignmentOutput) VersionId() pulumi.StringOutput

The ID of the Published Version of the blueprint to be assigned.

type AssignmentState

type AssignmentState struct {
	// The name of the blueprint assigned
	BlueprintName pulumi.StringPtrInput
	// The Description on the Blueprint
	Description pulumi.StringPtrInput
	// The display name of the blueprint
	DisplayName pulumi.StringPtrInput
	// An `identity` block as defined below.
	Identity AssignmentIdentityPtrInput
	// The Azure location of the Assignment. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// a list of up to 200 actions that are permitted to bypass the locks applied by the Blueprint.
	LockExcludeActions pulumi.StringArrayInput
	// a list of up to 5 Principal IDs that are permitted to bypass the locks applied by the Blueprint.
	LockExcludePrincipals pulumi.StringArrayInput
	// The locking mode of the Blueprint Assignment. One of `None` (Default), `AllResourcesReadOnly`, or `AllResourcesDoNotDelete`. Defaults to `None`.
	LockMode pulumi.StringPtrInput
	// The name of the Blueprint Assignment. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// a JSON string to supply Blueprint Assignment parameter values.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ParameterValues pulumi.StringPtrInput
	// a JSON string to supply the Blueprint Resource Group information.
	//
	// > **NOTE:** Improperly formatted JSON, or missing values required by a Blueprint will cause the assignment to fail.
	ResourceGroups pulumi.StringPtrInput
	// The Subscription ID the Blueprint Published Version is to be applied to. Changing this forces a new resource to be created.
	TargetSubscriptionId pulumi.StringPtrInput
	Type                 pulumi.StringPtrInput
	// The ID of the Published Version of the blueprint to be assigned.
	VersionId pulumi.StringPtrInput
}

func (AssignmentState) ElementType

func (AssignmentState) ElementType() reflect.Type

type GetDefinitionArgs

type GetDefinitionArgs struct {
	// The name of the Blueprint.
	Name string `pulumi:"name"`
	// The ID of the Subscription or Management Group, as the scope at which the blueprint definition is stored.
	ScopeId string `pulumi:"scopeId"`
}

A collection of arguments for invoking getDefinition.

type GetDefinitionOutputArgs

type GetDefinitionOutputArgs struct {
	// The name of the Blueprint.
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the Subscription or Management Group, as the scope at which the blueprint definition is stored.
	ScopeId pulumi.StringInput `pulumi:"scopeId"`
}

A collection of arguments for invoking getDefinition.

func (GetDefinitionOutputArgs) ElementType

func (GetDefinitionOutputArgs) ElementType() reflect.Type

type GetDefinitionResult

type GetDefinitionResult struct {
	// The description of the Blueprint Definition.
	Description string `pulumi:"description"`
	// The display name of the Blueprint Definition.
	DisplayName string `pulumi:"displayName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The timestamp of when this last modification was saved to the Blueprint Definition.
	LastModified string `pulumi:"lastModified"`
	Name         string `pulumi:"name"`
	ScopeId      string `pulumi:"scopeId"`
	// The target scope.
	TargetScope string `pulumi:"targetScope"`
	// The timestamp of when this Blueprint Definition was created.
	TimeCreated string `pulumi:"timeCreated"`
	// A list of versions published for this Blueprint Definition.
	Versions []string `pulumi:"versions"`
}

A collection of values returned by getDefinition.

func GetDefinition

func GetDefinition(ctx *pulumi.Context, args *GetDefinitionArgs, opts ...pulumi.InvokeOption) (*GetDefinitionResult, error)

Use this data source to access information about an existing Azure Blueprint Definition

> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/blueprint"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/management"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		root, err := management.LookupGroup(ctx, &management.LookupGroupArgs{
			Name: pulumi.StringRef(current.TenantId),
		}, nil)
		if err != nil {
			return err
		}
		_, err = blueprint.GetDefinition(ctx, &blueprint.GetDefinitionArgs{
			Name:    "exampleManagementGroupBP",
			ScopeId: root.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDefinitionResultOutput

type GetDefinitionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDefinition.

func (GetDefinitionResultOutput) Description

The description of the Blueprint Definition.

func (GetDefinitionResultOutput) DisplayName

The display name of the Blueprint Definition.

func (GetDefinitionResultOutput) ElementType

func (GetDefinitionResultOutput) ElementType() reflect.Type

func (GetDefinitionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDefinitionResultOutput) LastModified

The timestamp of when this last modification was saved to the Blueprint Definition.

func (GetDefinitionResultOutput) Name

func (GetDefinitionResultOutput) ScopeId

func (GetDefinitionResultOutput) TargetScope

The target scope.

func (GetDefinitionResultOutput) TimeCreated

The timestamp of when this Blueprint Definition was created.

func (GetDefinitionResultOutput) ToGetDefinitionResultOutput

func (o GetDefinitionResultOutput) ToGetDefinitionResultOutput() GetDefinitionResultOutput

func (GetDefinitionResultOutput) ToGetDefinitionResultOutputWithContext

func (o GetDefinitionResultOutput) ToGetDefinitionResultOutputWithContext(ctx context.Context) GetDefinitionResultOutput

func (GetDefinitionResultOutput) Versions

A list of versions published for this Blueprint Definition.

type GetPublishedVersionArgs

type GetPublishedVersionArgs struct {
	// The name of the Blueprint Definition
	BlueprintName string `pulumi:"blueprintName"`
	// The ID of the Management Group / Subscription where this Blueprint Definition is stored.
	ScopeId string `pulumi:"scopeId"`
	// The Version name of the Published Version of the Blueprint Definition
	Version string `pulumi:"version"`
}

A collection of arguments for invoking getPublishedVersion.

type GetPublishedVersionOutputArgs

type GetPublishedVersionOutputArgs struct {
	// The name of the Blueprint Definition
	BlueprintName pulumi.StringInput `pulumi:"blueprintName"`
	// The ID of the Management Group / Subscription where this Blueprint Definition is stored.
	ScopeId pulumi.StringInput `pulumi:"scopeId"`
	// The Version name of the Published Version of the Blueprint Definition
	Version pulumi.StringInput `pulumi:"version"`
}

A collection of arguments for invoking getPublishedVersion.

func (GetPublishedVersionOutputArgs) ElementType

type GetPublishedVersionResult

type GetPublishedVersionResult struct {
	BlueprintName string `pulumi:"blueprintName"`
	// The description of the Blueprint Published Version
	Description string `pulumi:"description"`
	// The display name of the Blueprint Published Version
	DisplayName string `pulumi:"displayName"`
	// The provider-assigned unique ID for this managed resource.
	Id           string `pulumi:"id"`
	LastModified string `pulumi:"lastModified"`
	ScopeId      string `pulumi:"scopeId"`
	// The target scope
	TargetScope string `pulumi:"targetScope"`
	TimeCreated string `pulumi:"timeCreated"`
	// The type of the Blueprint
	Type    string `pulumi:"type"`
	Version string `pulumi:"version"`
}

A collection of values returned by getPublishedVersion.

func GetPublishedVersion

func GetPublishedVersion(ctx *pulumi.Context, args *GetPublishedVersionArgs, opts ...pulumi.InvokeOption) (*GetPublishedVersionResult, error)

Use this data source to access information about an existing Blueprint Published Version

> **NOTE:** Azure Blueprints are in Preview and potentially subject to breaking change without notice.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/blueprint"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := core.LookupSubscription(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = blueprint.GetPublishedVersion(ctx, &blueprint.GetPublishedVersionArgs{
			ScopeId:       current.Id,
			BlueprintName: "exampleBluePrint",
			Version:       "dev_v2.3",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetPublishedVersionResultOutput

type GetPublishedVersionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPublishedVersion.

func (GetPublishedVersionResultOutput) BlueprintName

func (GetPublishedVersionResultOutput) Description

The description of the Blueprint Published Version

func (GetPublishedVersionResultOutput) DisplayName

The display name of the Blueprint Published Version

func (GetPublishedVersionResultOutput) ElementType

func (GetPublishedVersionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPublishedVersionResultOutput) LastModified

func (GetPublishedVersionResultOutput) ScopeId

func (GetPublishedVersionResultOutput) TargetScope

The target scope

func (GetPublishedVersionResultOutput) TimeCreated

func (GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutput

func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutput() GetPublishedVersionResultOutput

func (GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutputWithContext

func (o GetPublishedVersionResultOutput) ToGetPublishedVersionResultOutputWithContext(ctx context.Context) GetPublishedVersionResultOutput

func (GetPublishedVersionResultOutput) Type

The type of the Blueprint

func (GetPublishedVersionResultOutput) Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL