getPublishedVersion

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

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",
}));
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")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var current = Azure.Core.GetSubscription.Invoke();
var test = Azure.Blueprint.GetPublishedVersion.Invoke(new()
{
ScopeId = current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
BlueprintName = "exampleBluePrint",
Version = "dev_v2.3",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/blueprint"
"github.com/pulumi/pulumi-azure/sdk/v6/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, &core.LookupSubscriptionArgs{}, 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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
import com.pulumi.azure.blueprint.BlueprintFunctions;
import com.pulumi.azure.blueprint.inputs.GetPublishedVersionArgs;
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 current = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()
.build());
final var test = BlueprintFunctions.getPublishedVersion(GetPublishedVersionArgs.builder()
.scopeId(current.id())
.blueprintName("exampleBluePrint")
.version("dev_v2.3")
.build());
}
}
variables:
current:
fn::invoke:
function: azure:core:getSubscription
arguments: {}
test:
fn::invoke:
function: azure:blueprint:getPublishedVersion
arguments:
scopeId: ${current.id}
blueprintName: exampleBluePrint
version: dev_v2.3

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.Blueprint: 2018-11-01-preview

Return

A collection of values returned by getPublishedVersion.

Parameters

argument

A collection of arguments for invoking getPublishedVersion.


suspend fun getPublishedVersion(blueprintName: String, scopeId: String, version: String): GetPublishedVersionResult

Return

A collection of values returned by getPublishedVersion.

Parameters

blueprintName

The name of the Blueprint Definition

scopeId

The ID of the Management Group / Subscription where this Blueprint Definition is stored.

version

The Version name of the Published Version of the Blueprint Definition

See also


Return

A collection of values returned by getPublishedVersion.

Parameters

argument

Builder for com.pulumi.azure.blueprint.kotlin.inputs.GetPublishedVersionPlainArgs.

See also