1. Packages
  2. Azure Classic
  3. API Docs
  4. compute
  5. GalleryApplicationVersion

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

azure.compute.GalleryApplicationVersion

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

    Manages a Gallery Application Version.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("exampleSharedImageGallery", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
        });
    
        var exampleGalleryApplication = new Azure.Compute.GalleryApplication("exampleGalleryApplication", new()
        {
            GalleryId = exampleSharedImageGallery.Id,
            Location = exampleResourceGroup.Location,
            SupportedOsType = "Linux",
        });
    
        var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
        });
    
        var exampleContainer = new Azure.Storage.Container("exampleContainer", new()
        {
            StorageAccountName = exampleAccount.Name,
            ContainerAccessType = "blob",
        });
    
        var exampleBlob = new Azure.Storage.Blob("exampleBlob", new()
        {
            StorageAccountName = exampleAccount.Name,
            StorageContainerName = exampleContainer.Name,
            Type = "Block",
            SourceContent = "[scripts file content]",
        });
    
        var exampleGalleryApplicationVersion = new Azure.Compute.GalleryApplicationVersion("exampleGalleryApplicationVersion", new()
        {
            GalleryApplicationId = exampleGalleryApplication.Id,
            Location = exampleGalleryApplication.Location,
            ManageAction = new Azure.Compute.Inputs.GalleryApplicationVersionManageActionArgs
            {
                Install = "[install command]",
                Remove = "[remove command]",
            },
            Source = new Azure.Compute.Inputs.GalleryApplicationVersionSourceArgs
            {
                MediaLink = exampleBlob.Id,
            },
            TargetRegions = new[]
            {
                new Azure.Compute.Inputs.GalleryApplicationVersionTargetRegionArgs
                {
                    Name = exampleGalleryApplication.Location,
                    RegionalReplicaCount = 1,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "exampleSharedImageGallery", &compute.SharedImageGalleryArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleGalleryApplication, err := compute.NewGalleryApplication(ctx, "exampleGalleryApplication", &compute.GalleryApplicationArgs{
    			GalleryId:       exampleSharedImageGallery.ID(),
    			Location:        exampleResourceGroup.Location,
    			SupportedOsType: pulumi.String("Linux"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
    			ResourceGroupName:      exampleResourceGroup.Name,
    			Location:               exampleResourceGroup.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleContainer, err := storage.NewContainer(ctx, "exampleContainer", &storage.ContainerArgs{
    			StorageAccountName:  exampleAccount.Name,
    			ContainerAccessType: pulumi.String("blob"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBlob, err := storage.NewBlob(ctx, "exampleBlob", &storage.BlobArgs{
    			StorageAccountName:   exampleAccount.Name,
    			StorageContainerName: exampleContainer.Name,
    			Type:                 pulumi.String("Block"),
    			SourceContent:        pulumi.String("[scripts file content]"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewGalleryApplicationVersion(ctx, "exampleGalleryApplicationVersion", &compute.GalleryApplicationVersionArgs{
    			GalleryApplicationId: exampleGalleryApplication.ID(),
    			Location:             exampleGalleryApplication.Location,
    			ManageAction: &compute.GalleryApplicationVersionManageActionArgs{
    				Install: pulumi.String("[install command]"),
    				Remove:  pulumi.String("[remove command]"),
    			},
    			Source: &compute.GalleryApplicationVersionSourceArgs{
    				MediaLink: exampleBlob.ID(),
    			},
    			TargetRegions: compute.GalleryApplicationVersionTargetRegionArray{
    				&compute.GalleryApplicationVersionTargetRegionArgs{
    					Name:                 exampleGalleryApplication.Location,
    					RegionalReplicaCount: pulumi.Int(1),
    				},
    			},
    		})
    		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.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.compute.SharedImageGallery;
    import com.pulumi.azure.compute.SharedImageGalleryArgs;
    import com.pulumi.azure.compute.GalleryApplication;
    import com.pulumi.azure.compute.GalleryApplicationArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.Container;
    import com.pulumi.azure.storage.ContainerArgs;
    import com.pulumi.azure.storage.Blob;
    import com.pulumi.azure.storage.BlobArgs;
    import com.pulumi.azure.compute.GalleryApplicationVersion;
    import com.pulumi.azure.compute.GalleryApplicationVersionArgs;
    import com.pulumi.azure.compute.inputs.GalleryApplicationVersionManageActionArgs;
    import com.pulumi.azure.compute.inputs.GalleryApplicationVersionSourceArgs;
    import com.pulumi.azure.compute.inputs.GalleryApplicationVersionTargetRegionArgs;
    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) {
            var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .build());
    
            var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()        
                .galleryId(exampleSharedImageGallery.id())
                .location(exampleResourceGroup.location())
                .supportedOsType("Linux")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .build());
    
            var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()        
                .storageAccountName(exampleAccount.name())
                .containerAccessType("blob")
                .build());
    
            var exampleBlob = new Blob("exampleBlob", BlobArgs.builder()        
                .storageAccountName(exampleAccount.name())
                .storageContainerName(exampleContainer.name())
                .type("Block")
                .sourceContent("[scripts file content]")
                .build());
    
            var exampleGalleryApplicationVersion = new GalleryApplicationVersion("exampleGalleryApplicationVersion", GalleryApplicationVersionArgs.builder()        
                .galleryApplicationId(exampleGalleryApplication.id())
                .location(exampleGalleryApplication.location())
                .manageAction(GalleryApplicationVersionManageActionArgs.builder()
                    .install("[install command]")
                    .remove("[remove command]")
                    .build())
                .source(GalleryApplicationVersionSourceArgs.builder()
                    .mediaLink(exampleBlob.id())
                    .build())
                .targetRegions(GalleryApplicationVersionTargetRegionArgs.builder()
                    .name(exampleGalleryApplication.location())
                    .regionalReplicaCount(1)
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_shared_image_gallery = azure.compute.SharedImageGallery("exampleSharedImageGallery",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location)
    example_gallery_application = azure.compute.GalleryApplication("exampleGalleryApplication",
        gallery_id=example_shared_image_gallery.id,
        location=example_resource_group.location,
        supported_os_type="Linux")
    example_account = azure.storage.Account("exampleAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        account_tier="Standard",
        account_replication_type="LRS")
    example_container = azure.storage.Container("exampleContainer",
        storage_account_name=example_account.name,
        container_access_type="blob")
    example_blob = azure.storage.Blob("exampleBlob",
        storage_account_name=example_account.name,
        storage_container_name=example_container.name,
        type="Block",
        source_content="[scripts file content]")
    example_gallery_application_version = azure.compute.GalleryApplicationVersion("exampleGalleryApplicationVersion",
        gallery_application_id=example_gallery_application.id,
        location=example_gallery_application.location,
        manage_action=azure.compute.GalleryApplicationVersionManageActionArgs(
            install="[install command]",
            remove="[remove command]",
        ),
        source=azure.compute.GalleryApplicationVersionSourceArgs(
            media_link=example_blob.id,
        ),
        target_regions=[azure.compute.GalleryApplicationVersionTargetRegionArgs(
            name=example_gallery_application.location,
            regional_replica_count=1,
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleSharedImageGallery = new azure.compute.SharedImageGallery("exampleSharedImageGallery", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
    });
    const exampleGalleryApplication = new azure.compute.GalleryApplication("exampleGalleryApplication", {
        galleryId: exampleSharedImageGallery.id,
        location: exampleResourceGroup.location,
        supportedOsType: "Linux",
    });
    const exampleAccount = new azure.storage.Account("exampleAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
    });
    const exampleContainer = new azure.storage.Container("exampleContainer", {
        storageAccountName: exampleAccount.name,
        containerAccessType: "blob",
    });
    const exampleBlob = new azure.storage.Blob("exampleBlob", {
        storageAccountName: exampleAccount.name,
        storageContainerName: exampleContainer.name,
        type: "Block",
        sourceContent: "[scripts file content]",
    });
    const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("exampleGalleryApplicationVersion", {
        galleryApplicationId: exampleGalleryApplication.id,
        location: exampleGalleryApplication.location,
        manageAction: {
            install: "[install command]",
            remove: "[remove command]",
        },
        source: {
            mediaLink: exampleBlob.id,
        },
        targetRegions: [{
            name: exampleGalleryApplication.location,
            regionalReplicaCount: 1,
        }],
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleSharedImageGallery:
        type: azure:compute:SharedImageGallery
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
      exampleGalleryApplication:
        type: azure:compute:GalleryApplication
        properties:
          galleryId: ${exampleSharedImageGallery.id}
          location: ${exampleResourceGroup.location}
          supportedOsType: Linux
      exampleAccount:
        type: azure:storage:Account
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          accountTier: Standard
          accountReplicationType: LRS
      exampleContainer:
        type: azure:storage:Container
        properties:
          storageAccountName: ${exampleAccount.name}
          containerAccessType: blob
      exampleBlob:
        type: azure:storage:Blob
        properties:
          storageAccountName: ${exampleAccount.name}
          storageContainerName: ${exampleContainer.name}
          type: Block
          sourceContent: '[scripts file content]'
      exampleGalleryApplicationVersion:
        type: azure:compute:GalleryApplicationVersion
        properties:
          galleryApplicationId: ${exampleGalleryApplication.id}
          location: ${exampleGalleryApplication.location}
          manageAction:
            install: '[install command]'
            remove: '[remove command]'
          source:
            mediaLink: ${exampleBlob.id}
          targetRegions:
            - name: ${exampleGalleryApplication.location}
              regionalReplicaCount: 1
    

    Create GalleryApplicationVersion Resource

    new GalleryApplicationVersion(name: string, args: GalleryApplicationVersionArgs, opts?: CustomResourceOptions);
    @overload
    def GalleryApplicationVersion(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  enable_health_check: Optional[bool] = None,
                                  end_of_life_date: Optional[str] = None,
                                  exclude_from_latest: Optional[bool] = None,
                                  gallery_application_id: Optional[str] = None,
                                  location: Optional[str] = None,
                                  manage_action: Optional[GalleryApplicationVersionManageActionArgs] = None,
                                  name: Optional[str] = None,
                                  source: Optional[GalleryApplicationVersionSourceArgs] = None,
                                  tags: Optional[Mapping[str, str]] = None,
                                  target_regions: Optional[Sequence[GalleryApplicationVersionTargetRegionArgs]] = None)
    @overload
    def GalleryApplicationVersion(resource_name: str,
                                  args: GalleryApplicationVersionArgs,
                                  opts: Optional[ResourceOptions] = None)
    func NewGalleryApplicationVersion(ctx *Context, name string, args GalleryApplicationVersionArgs, opts ...ResourceOption) (*GalleryApplicationVersion, error)
    public GalleryApplicationVersion(string name, GalleryApplicationVersionArgs args, CustomResourceOptions? opts = null)
    public GalleryApplicationVersion(String name, GalleryApplicationVersionArgs args)
    public GalleryApplicationVersion(String name, GalleryApplicationVersionArgs args, CustomResourceOptions options)
    
    type: azure:compute:GalleryApplicationVersion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args GalleryApplicationVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GalleryApplicationVersionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GalleryApplicationVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GalleryApplicationVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GalleryApplicationVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    GalleryApplicationVersion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GalleryApplicationVersion resource accepts the following input properties:

    GalleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    ManageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    Source GalleryApplicationVersionSource

    A source block as defined below.

    TargetRegions List<GalleryApplicationVersionTargetRegion>

    One or more target_region blocks as defined below.

    EnableHealthCheck bool

    Should the Gallery Application reports health. Defaults to false.

    EndOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    ExcludeFromLatest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    Location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    Name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    Tags Dictionary<string, string>

    A mapping of tags to assign to the Gallery Application Version.

    GalleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    ManageAction GalleryApplicationVersionManageActionArgs

    A manage_action block as defined below.

    Source GalleryApplicationVersionSourceArgs

    A source block as defined below.

    TargetRegions []GalleryApplicationVersionTargetRegionArgs

    One or more target_region blocks as defined below.

    EnableHealthCheck bool

    Should the Gallery Application reports health. Defaults to false.

    EndOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    ExcludeFromLatest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    Location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    Name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    Tags map[string]string

    A mapping of tags to assign to the Gallery Application Version.

    galleryApplicationId String

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    manageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    source GalleryApplicationVersionSource

    A source block as defined below.

    targetRegions List<GalleryApplicationVersionTargetRegion>

    One or more target_region blocks as defined below.

    enableHealthCheck Boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate String

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest Boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    location String

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    name String

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    tags Map<String,String>

    A mapping of tags to assign to the Gallery Application Version.

    galleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    manageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    source GalleryApplicationVersionSource

    A source block as defined below.

    targetRegions GalleryApplicationVersionTargetRegion[]

    One or more target_region blocks as defined below.

    enableHealthCheck boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    tags {[key: string]: string}

    A mapping of tags to assign to the Gallery Application Version.

    gallery_application_id str

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    manage_action GalleryApplicationVersionManageActionArgs

    A manage_action block as defined below.

    source GalleryApplicationVersionSourceArgs

    A source block as defined below.

    target_regions Sequence[GalleryApplicationVersionTargetRegionArgs]

    One or more target_region blocks as defined below.

    enable_health_check bool

    Should the Gallery Application reports health. Defaults to false.

    end_of_life_date str

    The end of life date in RFC3339 format of the Gallery Application Version.

    exclude_from_latest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    location str

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    name str

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    tags Mapping[str, str]

    A mapping of tags to assign to the Gallery Application Version.

    galleryApplicationId String

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    manageAction Property Map

    A manage_action block as defined below.

    source Property Map

    A source block as defined below.

    targetRegions List<Property Map>

    One or more target_region blocks as defined below.

    enableHealthCheck Boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate String

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest Boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    location String

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    name String

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    tags Map<String>

    A mapping of tags to assign to the Gallery Application Version.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GalleryApplicationVersion resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing GalleryApplicationVersion Resource

    Get an existing GalleryApplicationVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GalleryApplicationVersionState, opts?: CustomResourceOptions): GalleryApplicationVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enable_health_check: Optional[bool] = None,
            end_of_life_date: Optional[str] = None,
            exclude_from_latest: Optional[bool] = None,
            gallery_application_id: Optional[str] = None,
            location: Optional[str] = None,
            manage_action: Optional[GalleryApplicationVersionManageActionArgs] = None,
            name: Optional[str] = None,
            source: Optional[GalleryApplicationVersionSourceArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            target_regions: Optional[Sequence[GalleryApplicationVersionTargetRegionArgs]] = None) -> GalleryApplicationVersion
    func GetGalleryApplicationVersion(ctx *Context, name string, id IDInput, state *GalleryApplicationVersionState, opts ...ResourceOption) (*GalleryApplicationVersion, error)
    public static GalleryApplicationVersion Get(string name, Input<string> id, GalleryApplicationVersionState? state, CustomResourceOptions? opts = null)
    public static GalleryApplicationVersion get(String name, Output<String> id, GalleryApplicationVersionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    EnableHealthCheck bool

    Should the Gallery Application reports health. Defaults to false.

    EndOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    ExcludeFromLatest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    GalleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    Location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    ManageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    Name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    Source GalleryApplicationVersionSource

    A source block as defined below.

    Tags Dictionary<string, string>

    A mapping of tags to assign to the Gallery Application Version.

    TargetRegions List<GalleryApplicationVersionTargetRegion>

    One or more target_region blocks as defined below.

    EnableHealthCheck bool

    Should the Gallery Application reports health. Defaults to false.

    EndOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    ExcludeFromLatest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    GalleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    Location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    ManageAction GalleryApplicationVersionManageActionArgs

    A manage_action block as defined below.

    Name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    Source GalleryApplicationVersionSourceArgs

    A source block as defined below.

    Tags map[string]string

    A mapping of tags to assign to the Gallery Application Version.

    TargetRegions []GalleryApplicationVersionTargetRegionArgs

    One or more target_region blocks as defined below.

    enableHealthCheck Boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate String

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest Boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    galleryApplicationId String

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    location String

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    manageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    name String

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    source GalleryApplicationVersionSource

    A source block as defined below.

    tags Map<String,String>

    A mapping of tags to assign to the Gallery Application Version.

    targetRegions List<GalleryApplicationVersionTargetRegion>

    One or more target_region blocks as defined below.

    enableHealthCheck boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate string

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    galleryApplicationId string

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    location string

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    manageAction GalleryApplicationVersionManageAction

    A manage_action block as defined below.

    name string

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    source GalleryApplicationVersionSource

    A source block as defined below.

    tags {[key: string]: string}

    A mapping of tags to assign to the Gallery Application Version.

    targetRegions GalleryApplicationVersionTargetRegion[]

    One or more target_region blocks as defined below.

    enable_health_check bool

    Should the Gallery Application reports health. Defaults to false.

    end_of_life_date str

    The end of life date in RFC3339 format of the Gallery Application Version.

    exclude_from_latest bool

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    gallery_application_id str

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    location str

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    manage_action GalleryApplicationVersionManageActionArgs

    A manage_action block as defined below.

    name str

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    source GalleryApplicationVersionSourceArgs

    A source block as defined below.

    tags Mapping[str, str]

    A mapping of tags to assign to the Gallery Application Version.

    target_regions Sequence[GalleryApplicationVersionTargetRegionArgs]

    One or more target_region blocks as defined below.

    enableHealthCheck Boolean

    Should the Gallery Application reports health. Defaults to false.

    endOfLifeDate String

    The end of life date in RFC3339 format of the Gallery Application Version.

    excludeFromLatest Boolean

    Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

    galleryApplicationId String

    The ID of the Gallery Application. Changing this forces a new resource to be created.

    location String

    The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

    manageAction Property Map

    A manage_action block as defined below.

    name String

    The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

    source Property Map

    A source block as defined below.

    tags Map<String>

    A mapping of tags to assign to the Gallery Application Version.

    targetRegions List<Property Map>

    One or more target_region blocks as defined below.

    Supporting Types

    GalleryApplicationVersionManageAction, GalleryApplicationVersionManageActionArgs

    Install string

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    Remove string

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    Update string

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    Install string

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    Remove string

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    Update string

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    install String

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    remove String

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    update String

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    install string

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    remove string

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    update string

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    install str

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    remove str

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    update str

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    install String

    The command to install the Gallery Application. Changing this forces a new resource to be created.

    remove String

    The command to remove the Gallery Application. Changing this forces a new resource to be created.

    update String

    The command to update the Gallery Application. Changing this forces a new resource to be created.

    GalleryApplicationVersionSource, GalleryApplicationVersionSourceArgs

    MediaLink string

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    DefaultConfigurationLink string

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    MediaLink string

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    DefaultConfigurationLink string

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    mediaLink String

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    defaultConfigurationLink String

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    mediaLink string

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    defaultConfigurationLink string

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    media_link str

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    default_configuration_link str

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    mediaLink String

    The Storage Blob URI of the source application package. Changing this forces a new resource to be created.

    defaultConfigurationLink String

    The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.

    GalleryApplicationVersionTargetRegion, GalleryApplicationVersionTargetRegionArgs

    Name string

    The Azure Region in which the Gallery Application Version exists.

    RegionalReplicaCount int

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    StorageAccountType string

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    Name string

    The Azure Region in which the Gallery Application Version exists.

    RegionalReplicaCount int

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    StorageAccountType string

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    name String

    The Azure Region in which the Gallery Application Version exists.

    regionalReplicaCount Integer

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    storageAccountType String

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    name string

    The Azure Region in which the Gallery Application Version exists.

    regionalReplicaCount number

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    storageAccountType string

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    name str

    The Azure Region in which the Gallery Application Version exists.

    regional_replica_count int

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    storage_account_type str

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    name String

    The Azure Region in which the Gallery Application Version exists.

    regionalReplicaCount Number

    The number of replicas of the Gallery Application Version to be created per region. Possible values are between 1 and 10.

    storageAccountType String

    The storage account type for the Gallery Application Version. Possible values are Standard_LRS, Premium_LRS and Standard_ZRS. Defaults to Standard_LRS.

    Import

    Gallery Application Versions can be imported using the resource id, e.g.

     $ pulumi import azure:compute/galleryApplicationVersion:GalleryApplicationVersion example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1
    

    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.49.0 published on Tuesday, Aug 29, 2023 by Pulumi