GetPublishedVersion

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

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Azure.Core.GetSubscription.InvokeAsync());
        var test = current.Apply(current => Output.Create(Azure.Blueprint.GetPublishedVersion.InvokeAsync(new Azure.Blueprint.GetPublishedVersionArgs
        {
            ScopeId = current.Id,
            BlueprintName = "exampleBluePrint",
            Version = "dev_v2.3",
        })));
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/blueprint"
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        current, err := core.GetSubscription(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
    })
}
import pulumi
import pulumi_azure as azure

current = azure.core.get_subscription()
test = azure.blueprint.get_published_version(scope_id=current.id,
    blueprint_name="exampleBluePrint",
    version="dev_v2.3")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const current = azure.core.getSubscription({});
const test = current.then(current => azure.blueprint.getPublishedVersion({
    scopeId: current.id,
    blueprintName: "exampleBluePrint",
    version: "dev_v2.3",
}));

Using GetPublishedVersion

function getPublishedVersion(args: GetPublishedVersionArgs, opts?: InvokeOptions): Promise<GetPublishedVersionResult>
function  get_published_version(blueprint_name=None, scope_id=None, version=None, opts=None)
func GetPublishedVersion(ctx *Context, args *GetPublishedVersionArgs, opts ...InvokeOption) (*GetPublishedVersionResult, error)
public static class GetPublishedVersion {
    public static Task<GetPublishedVersionResult> InvokeAsync(GetPublishedVersionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

BlueprintName string

The name of the Blueprint Definition

ScopeId string

The Resource ID of the scope where the Blueprint Definition is stored. This will be with either a Subscription ID or Management Group ID.

Version string

The Version name of the Published Version of the Blueprint Definition

BlueprintName string

The name of the Blueprint Definition

ScopeId string

The Resource ID of the scope where the Blueprint Definition is stored. This will be with either a Subscription ID or Management Group ID.

Version string

The Version name of the Published Version of the Blueprint Definition

blueprintName string

The name of the Blueprint Definition

scopeId string

The Resource ID of the scope where the Blueprint Definition is stored. This will be with either a Subscription ID or Management Group ID.

version string

The Version name of the Published Version of the Blueprint Definition

blueprint_name str

The name of the Blueprint Definition

scope_id str

The Resource ID of the scope where the Blueprint Definition is stored. This will be with either a Subscription ID or Management Group ID.

version str

The Version name of the Published Version of the Blueprint Definition

GetPublishedVersion Result

The following output properties are available:

BlueprintName string
Description string

The description of the Blueprint Published Version

DisplayName string

The display name of the Blueprint Published Version

Id string

The provider-assigned unique ID for this managed resource.

LastModified string
ScopeId string
TargetScope string

The target scope

TimeCreated string
Type string

The type of the Blueprint

Version string
BlueprintName string
Description string

The description of the Blueprint Published Version

DisplayName string

The display name of the Blueprint Published Version

Id string

The provider-assigned unique ID for this managed resource.

LastModified string
ScopeId string
TargetScope string

The target scope

TimeCreated string
Type string

The type of the Blueprint

Version string
blueprintName string
description string

The description of the Blueprint Published Version

displayName string

The display name of the Blueprint Published Version

id string

The provider-assigned unique ID for this managed resource.

lastModified string
scopeId string
targetScope string

The target scope

timeCreated string
type string

The type of the Blueprint

version string
blueprint_name str
description str

The description of the Blueprint Published Version

display_name str

The display name of the Blueprint Published Version

id str

The provider-assigned unique ID for this managed resource.

last_modified str
scope_id str
target_scope str

The target scope

time_created str
type str

The type of the Blueprint

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