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

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

azure.compute.GalleryApplicationVersion

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

    Manages a Gallery Application Version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-rg",
        location: "West Europe",
    });
    const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
        name: "examplegallery",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
        name: "example-app",
        galleryId: exampleSharedImageGallery.id,
        location: example.location,
        supportedOsType: "Linux",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplestorage",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
    });
    const exampleContainer = new azure.storage.Container("example", {
        name: "example-container",
        storageAccountName: exampleAccount.name,
        containerAccessType: "blob",
    });
    const exampleBlob = new azure.storage.Blob("example", {
        name: "scripts",
        storageAccountName: exampleAccount.name,
        storageContainerName: exampleContainer.name,
        type: "Block",
        sourceContent: "[scripts file content]",
    });
    const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("example", {
        name: "0.0.1",
        galleryApplicationId: exampleGalleryApplication.id,
        location: exampleGalleryApplication.location,
        manageAction: {
            install: "[install command]",
            remove: "[remove command]",
        },
        source: {
            mediaLink: exampleBlob.id,
        },
        targetRegions: [{
            name: exampleGalleryApplication.location,
            regionalReplicaCount: 1,
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-rg",
        location="West Europe")
    example_shared_image_gallery = azure.compute.SharedImageGallery("example",
        name="examplegallery",
        resource_group_name=example.name,
        location=example.location)
    example_gallery_application = azure.compute.GalleryApplication("example",
        name="example-app",
        gallery_id=example_shared_image_gallery.id,
        location=example.location,
        supported_os_type="Linux")
    example_account = azure.storage.Account("example",
        name="examplestorage",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="LRS")
    example_container = azure.storage.Container("example",
        name="example-container",
        storage_account_name=example_account.name,
        container_access_type="blob")
    example_blob = azure.storage.Blob("example",
        name="scripts",
        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("example",
        name="0.0.1",
        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,
        )])
    
    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 {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-rg"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "example", &compute.SharedImageGalleryArgs{
    			Name:              pulumi.String("examplegallery"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleGalleryApplication, err := compute.NewGalleryApplication(ctx, "example", &compute.GalleryApplicationArgs{
    			Name:            pulumi.String("example-app"),
    			GalleryId:       exampleSharedImageGallery.ID(),
    			Location:        example.Location,
    			SupportedOsType: pulumi.String("Linux"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplestorage"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
    			Name:                pulumi.String("example-container"),
    			StorageAccountName:  exampleAccount.Name,
    			ContainerAccessType: pulumi.String("blob"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBlob, err := storage.NewBlob(ctx, "example", &storage.BlobArgs{
    			Name:                 pulumi.String("scripts"),
    			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, "example", &compute.GalleryApplicationVersionArgs{
    			Name:                 pulumi.String("0.0.1"),
    			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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-rg",
            Location = "West Europe",
        });
    
        var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("example", new()
        {
            Name = "examplegallery",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleGalleryApplication = new Azure.Compute.GalleryApplication("example", new()
        {
            Name = "example-app",
            GalleryId = exampleSharedImageGallery.Id,
            Location = example.Location,
            SupportedOsType = "Linux",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestorage",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
        });
    
        var exampleContainer = new Azure.Storage.Container("example", new()
        {
            Name = "example-container",
            StorageAccountName = exampleAccount.Name,
            ContainerAccessType = "blob",
        });
    
        var exampleBlob = new Azure.Storage.Blob("example", new()
        {
            Name = "scripts",
            StorageAccountName = exampleAccount.Name,
            StorageContainerName = exampleContainer.Name,
            Type = "Block",
            SourceContent = "[scripts file content]",
        });
    
        var exampleGalleryApplicationVersion = new Azure.Compute.GalleryApplicationVersion("example", new()
        {
            Name = "0.0.1",
            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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("example-rg")
                .location("West Europe")
                .build());
    
            var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()        
                .name("examplegallery")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()        
                .name("example-app")
                .galleryId(exampleSharedImageGallery.id())
                .location(example.location())
                .supportedOsType("Linux")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .name("examplestorage")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .build());
    
            var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()        
                .name("example-container")
                .storageAccountName(exampleAccount.name())
                .containerAccessType("blob")
                .build());
    
            var exampleBlob = new Blob("exampleBlob", BlobArgs.builder()        
                .name("scripts")
                .storageAccountName(exampleAccount.name())
                .storageContainerName(exampleContainer.name())
                .type("Block")
                .sourceContent("[scripts file content]")
                .build());
    
            var exampleGalleryApplicationVersion = new GalleryApplicationVersion("exampleGalleryApplicationVersion", GalleryApplicationVersionArgs.builder()        
                .name("0.0.1")
                .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());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-rg
          location: West Europe
      exampleSharedImageGallery:
        type: azure:compute:SharedImageGallery
        name: example
        properties:
          name: examplegallery
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleGalleryApplication:
        type: azure:compute:GalleryApplication
        name: example
        properties:
          name: example-app
          galleryId: ${exampleSharedImageGallery.id}
          location: ${example.location}
          supportedOsType: Linux
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestorage
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: LRS
      exampleContainer:
        type: azure:storage:Container
        name: example
        properties:
          name: example-container
          storageAccountName: ${exampleAccount.name}
          containerAccessType: blob
      exampleBlob:
        type: azure:storage:Blob
        name: example
        properties:
          name: scripts
          storageAccountName: ${exampleAccount.name}
          storageContainerName: ${exampleContainer.name}
          type: Block
          sourceContent: '[scripts file content]'
      exampleGalleryApplicationVersion:
        type: azure:compute:GalleryApplicationVersion
        name: example
        properties:
          name: 0.0.1
          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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GalleryApplicationVersion(name: string, args: GalleryApplicationVersionArgs, opts?: CustomResourceOptions);
    @overload
    def GalleryApplicationVersion(resource_name: str,
                                  args: GalleryApplicationVersionArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def GalleryApplicationVersion(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  gallery_application_id: Optional[str] = None,
                                  manage_action: Optional[GalleryApplicationVersionManageActionArgs] = None,
                                  source: Optional[GalleryApplicationVersionSourceArgs] = None,
                                  target_regions: Optional[Sequence[GalleryApplicationVersionTargetRegionArgs]] = None,
                                  config_file: Optional[str] = None,
                                  enable_health_check: Optional[bool] = None,
                                  end_of_life_date: Optional[str] = None,
                                  exclude_from_latest: Optional[bool] = None,
                                  location: Optional[str] = None,
                                  name: Optional[str] = None,
                                  package_file: Optional[str] = None,
                                  tags: Optional[Mapping[str, str]] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var galleryApplicationVersionResource = new Azure.Compute.GalleryApplicationVersion("galleryApplicationVersionResource", new()
    {
        GalleryApplicationId = "string",
        ManageAction = new Azure.Compute.Inputs.GalleryApplicationVersionManageActionArgs
        {
            Install = "string",
            Remove = "string",
            Update = "string",
        },
        Source = new Azure.Compute.Inputs.GalleryApplicationVersionSourceArgs
        {
            MediaLink = "string",
            DefaultConfigurationLink = "string",
        },
        TargetRegions = new[]
        {
            new Azure.Compute.Inputs.GalleryApplicationVersionTargetRegionArgs
            {
                Name = "string",
                RegionalReplicaCount = 0,
                ExcludeFromLatest = false,
                StorageAccountType = "string",
            },
        },
        ConfigFile = "string",
        EnableHealthCheck = false,
        EndOfLifeDate = "string",
        ExcludeFromLatest = false,
        Location = "string",
        Name = "string",
        PackageFile = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := compute.NewGalleryApplicationVersion(ctx, "galleryApplicationVersionResource", &compute.GalleryApplicationVersionArgs{
    	GalleryApplicationId: pulumi.String("string"),
    	ManageAction: &compute.GalleryApplicationVersionManageActionArgs{
    		Install: pulumi.String("string"),
    		Remove:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    	Source: &compute.GalleryApplicationVersionSourceArgs{
    		MediaLink:                pulumi.String("string"),
    		DefaultConfigurationLink: pulumi.String("string"),
    	},
    	TargetRegions: compute.GalleryApplicationVersionTargetRegionArray{
    		&compute.GalleryApplicationVersionTargetRegionArgs{
    			Name:                 pulumi.String("string"),
    			RegionalReplicaCount: pulumi.Int(0),
    			ExcludeFromLatest:    pulumi.Bool(false),
    			StorageAccountType:   pulumi.String("string"),
    		},
    	},
    	ConfigFile:        pulumi.String("string"),
    	EnableHealthCheck: pulumi.Bool(false),
    	EndOfLifeDate:     pulumi.String("string"),
    	ExcludeFromLatest: pulumi.Bool(false),
    	Location:          pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	PackageFile:       pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var galleryApplicationVersionResource = new GalleryApplicationVersion("galleryApplicationVersionResource", GalleryApplicationVersionArgs.builder()        
        .galleryApplicationId("string")
        .manageAction(GalleryApplicationVersionManageActionArgs.builder()
            .install("string")
            .remove("string")
            .update("string")
            .build())
        .source(GalleryApplicationVersionSourceArgs.builder()
            .mediaLink("string")
            .defaultConfigurationLink("string")
            .build())
        .targetRegions(GalleryApplicationVersionTargetRegionArgs.builder()
            .name("string")
            .regionalReplicaCount(0)
            .excludeFromLatest(false)
            .storageAccountType("string")
            .build())
        .configFile("string")
        .enableHealthCheck(false)
        .endOfLifeDate("string")
        .excludeFromLatest(false)
        .location("string")
        .name("string")
        .packageFile("string")
        .tags(Map.of("string", "string"))
        .build());
    
    gallery_application_version_resource = azure.compute.GalleryApplicationVersion("galleryApplicationVersionResource",
        gallery_application_id="string",
        manage_action=azure.compute.GalleryApplicationVersionManageActionArgs(
            install="string",
            remove="string",
            update="string",
        ),
        source=azure.compute.GalleryApplicationVersionSourceArgs(
            media_link="string",
            default_configuration_link="string",
        ),
        target_regions=[azure.compute.GalleryApplicationVersionTargetRegionArgs(
            name="string",
            regional_replica_count=0,
            exclude_from_latest=False,
            storage_account_type="string",
        )],
        config_file="string",
        enable_health_check=False,
        end_of_life_date="string",
        exclude_from_latest=False,
        location="string",
        name="string",
        package_file="string",
        tags={
            "string": "string",
        })
    
    const galleryApplicationVersionResource = new azure.compute.GalleryApplicationVersion("galleryApplicationVersionResource", {
        galleryApplicationId: "string",
        manageAction: {
            install: "string",
            remove: "string",
            update: "string",
        },
        source: {
            mediaLink: "string",
            defaultConfigurationLink: "string",
        },
        targetRegions: [{
            name: "string",
            regionalReplicaCount: 0,
            excludeFromLatest: false,
            storageAccountType: "string",
        }],
        configFile: "string",
        enableHealthCheck: false,
        endOfLifeDate: "string",
        excludeFromLatest: false,
        location: "string",
        name: "string",
        packageFile: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:compute:GalleryApplicationVersion
    properties:
        configFile: string
        enableHealthCheck: false
        endOfLifeDate: string
        excludeFromLatest: false
        galleryApplicationId: string
        location: string
        manageAction:
            install: string
            remove: string
            update: string
        name: string
        packageFile: string
        source:
            defaultConfigurationLink: string
            mediaLink: string
        tags:
            string: string
        targetRegions:
            - excludeFromLatest: false
              name: string
              regionalReplicaCount: 0
              storageAccountType: string
    

    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.
    ConfigFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    PackageFile string
    Specifies the name of the package file on the VM. 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.
    ConfigFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    PackageFile string
    Specifies the name of the package file on the VM. 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.
    configFile String
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile String
    Specifies the name of the package file on the VM. 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.
    configFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile string
    Specifies the name of the package file on the VM. 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.
    config_file str
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    package_file str
    Specifies the name of the package file on the VM. 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.
    configFile String
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile String
    Specifies the name of the package file on the VM. 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,
            config_file: Optional[str] = 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,
            package_file: 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:
    ConfigFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    PackageFile string
    Specifies the name of the package file on the VM. 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.
    ConfigFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    PackageFile string
    Specifies the name of the package file on the VM. 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.
    configFile String
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile String
    Specifies the name of the package file on the VM. 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.
    configFile string
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile string
    Specifies the name of the package file on the VM. 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.
    config_file str
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    package_file str
    Specifies the name of the package file on the VM. 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.
    configFile String
    Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
    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.
    packageFile String
    Specifies the name of the package file on the VM. 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.
    ExcludeFromLatest bool
    Specifies whether this Gallery Application Version should 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.
    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.
    ExcludeFromLatest bool
    Specifies whether this Gallery Application Version should 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.
    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.
    excludeFromLatest Boolean
    Specifies whether this Gallery Application Version should 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.
    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.
    excludeFromLatest boolean
    Specifies whether this Gallery Application Version should 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.
    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.
    exclude_from_latest bool
    Specifies whether this Gallery Application Version should 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.
    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.
    excludeFromLatest Boolean
    Specifies whether this Gallery Application Version should 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.
    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
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.73.0 published on Monday, Apr 22, 2024 by Pulumi