1. Packages
  2. Azure Classic
  3. API Docs
  4. blueprint
  5. getPublishedVersion

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.blueprint.getPublishedVersion

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    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")
    
    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
    	})
    }
    
    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 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();
    
            final var test = BlueprintFunctions.getPublishedVersion(GetPublishedVersionArgs.builder()
                .scopeId(current.applyValue(getSubscriptionResult -> getSubscriptionResult.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
    

    Using getPublishedVersion

    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 getPublishedVersion(args: GetPublishedVersionArgs, opts?: InvokeOptions): Promise<GetPublishedVersionResult>
    function getPublishedVersionOutput(args: GetPublishedVersionOutputArgs, opts?: InvokeOptions): Output<GetPublishedVersionResult>
    def get_published_version(blueprint_name: Optional[str] = None,
                              scope_id: Optional[str] = None,
                              version: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPublishedVersionResult
    def get_published_version_output(blueprint_name: Optional[pulumi.Input[str]] = None,
                              scope_id: Optional[pulumi.Input[str]] = None,
                              version: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPublishedVersionResult]
    func GetPublishedVersion(ctx *Context, args *GetPublishedVersionArgs, opts ...InvokeOption) (*GetPublishedVersionResult, error)
    func GetPublishedVersionOutput(ctx *Context, args *GetPublishedVersionOutputArgs, opts ...InvokeOption) GetPublishedVersionResultOutput

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

    public static class GetPublishedVersion 
    {
        public static Task<GetPublishedVersionResult> InvokeAsync(GetPublishedVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetPublishedVersionResult> Invoke(GetPublishedVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPublishedVersionResult> getPublishedVersion(GetPublishedVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:blueprint/getPublishedVersion:getPublishedVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BlueprintName string
    The name of the Blueprint Definition
    ScopeId string
    The ID of the Management Group / Subscription where this Blueprint Definition is stored.
    Version string
    The Version name of the Published Version of the Blueprint Definition
    BlueprintName string
    The name of the Blueprint Definition
    ScopeId string
    The ID of the Management Group / Subscription where this Blueprint Definition is stored.
    Version string
    The Version name of the Published Version of the Blueprint Definition
    blueprintName String
    The name of the Blueprint Definition
    scopeId String
    The ID of the Management Group / Subscription where this Blueprint Definition is stored.
    version String
    The Version name of the Published Version of the Blueprint Definition
    blueprintName string
    The name of the Blueprint Definition
    scopeId string
    The ID of the Management Group / Subscription where this Blueprint Definition is stored.
    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 ID of the Management Group / Subscription where this Blueprint Definition is stored.
    version str
    The Version name of the Published Version of the Blueprint Definition
    blueprintName String
    The name of the Blueprint Definition
    scopeId String
    The ID of the Management Group / Subscription where this Blueprint Definition is stored.
    version String
    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
    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
    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

    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.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi