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

We recommend using Azure Native.

Azure Classic v5.56.0 published on Tuesday, Nov 21, 2023 by Pulumi

azure.compute.GalleryApplication

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.56.0 published on Tuesday, Nov 21, 2023 by Pulumi

    Manages a Gallery Application.

    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",
        });
    
    });
    
    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/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
    		}
    		_, err = compute.NewGalleryApplication(ctx, "exampleGalleryApplication", &compute.GalleryApplicationArgs{
    			GalleryId:       exampleSharedImageGallery.ID(),
    			Location:        exampleResourceGroup.Location,
    			SupportedOsType: pulumi.String("Linux"),
    		})
    		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 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());
    
        }
    }
    
    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")
    
    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",
    });
    
    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
    

    Create GalleryApplication Resource

    new GalleryApplication(name: string, args: GalleryApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def GalleryApplication(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           description: Optional[str] = None,
                           end_of_life_date: Optional[str] = None,
                           eula: Optional[str] = None,
                           gallery_id: Optional[str] = None,
                           location: Optional[str] = None,
                           name: Optional[str] = None,
                           privacy_statement_uri: Optional[str] = None,
                           release_note_uri: Optional[str] = None,
                           supported_os_type: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None)
    @overload
    def GalleryApplication(resource_name: str,
                           args: GalleryApplicationArgs,
                           opts: Optional[ResourceOptions] = None)
    func NewGalleryApplication(ctx *Context, name string, args GalleryApplicationArgs, opts ...ResourceOption) (*GalleryApplication, error)
    public GalleryApplication(string name, GalleryApplicationArgs args, CustomResourceOptions? opts = null)
    public GalleryApplication(String name, GalleryApplicationArgs args)
    public GalleryApplication(String name, GalleryApplicationArgs args, CustomResourceOptions options)
    
    type: azure:compute:GalleryApplication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args GalleryApplicationArgs
    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 GalleryApplicationArgs
    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 GalleryApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GalleryApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GalleryApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    GalleryApplication 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 GalleryApplication resource accepts the following input properties:

    GalleryId string

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

    SupportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    Description string

    A description of the Gallery Application.

    EndOfLifeDate string

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

    Eula string

    The End User Licence Agreement of the Gallery Application.

    Location string

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

    Name string

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

    PrivacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    ReleaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    Tags Dictionary<string, string>

    A mapping of tags to assign to the Gallery Application.

    GalleryId string

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

    SupportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    Description string

    A description of the Gallery Application.

    EndOfLifeDate string

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

    Eula string

    The End User Licence Agreement of the Gallery Application.

    Location string

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

    Name string

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

    PrivacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    ReleaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    Tags map[string]string

    A mapping of tags to assign to the Gallery Application.

    galleryId String

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

    supportedOsType String

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    description String

    A description of the Gallery Application.

    endOfLifeDate String

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

    eula String

    The End User Licence Agreement of the Gallery Application.

    location String

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

    name String

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

    privacyStatementUri String

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri String

    The URI containing the Release Notes associated with the Gallery Application.

    tags Map<String,String>

    A mapping of tags to assign to the Gallery Application.

    galleryId string

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

    supportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    description string

    A description of the Gallery Application.

    endOfLifeDate string

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

    eula string

    The End User Licence Agreement of the Gallery Application.

    location string

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

    name string

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

    privacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    tags {[key: string]: string}

    A mapping of tags to assign to the Gallery Application.

    gallery_id str

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

    supported_os_type str

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    description str

    A description of the Gallery Application.

    end_of_life_date str

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

    eula str

    The End User Licence Agreement of the Gallery Application.

    location str

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

    name str

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

    privacy_statement_uri str

    The URI containing the Privacy Statement associated with the Gallery Application.

    release_note_uri str

    The URI containing the Release Notes associated with the Gallery Application.

    tags Mapping[str, str]

    A mapping of tags to assign to the Gallery Application.

    galleryId String

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

    supportedOsType String

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    description String

    A description of the Gallery Application.

    endOfLifeDate String

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

    eula String

    The End User Licence Agreement of the Gallery Application.

    location String

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

    name String

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

    privacyStatementUri String

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri String

    The URI containing the Release Notes associated with the Gallery Application.

    tags Map<String>

    A mapping of tags to assign to the Gallery Application.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GalleryApplication 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 GalleryApplication Resource

    Get an existing GalleryApplication 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?: GalleryApplicationState, opts?: CustomResourceOptions): GalleryApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            end_of_life_date: Optional[str] = None,
            eula: Optional[str] = None,
            gallery_id: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            privacy_statement_uri: Optional[str] = None,
            release_note_uri: Optional[str] = None,
            supported_os_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> GalleryApplication
    func GetGalleryApplication(ctx *Context, name string, id IDInput, state *GalleryApplicationState, opts ...ResourceOption) (*GalleryApplication, error)
    public static GalleryApplication Get(string name, Input<string> id, GalleryApplicationState? state, CustomResourceOptions? opts = null)
    public static GalleryApplication get(String name, Output<String> id, GalleryApplicationState 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:
    Description string

    A description of the Gallery Application.

    EndOfLifeDate string

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

    Eula string

    The End User Licence Agreement of the Gallery Application.

    GalleryId string

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

    Location string

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

    Name string

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

    PrivacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    ReleaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    SupportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    Tags Dictionary<string, string>

    A mapping of tags to assign to the Gallery Application.

    Description string

    A description of the Gallery Application.

    EndOfLifeDate string

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

    Eula string

    The End User Licence Agreement of the Gallery Application.

    GalleryId string

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

    Location string

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

    Name string

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

    PrivacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    ReleaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    SupportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    Tags map[string]string

    A mapping of tags to assign to the Gallery Application.

    description String

    A description of the Gallery Application.

    endOfLifeDate String

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

    eula String

    The End User Licence Agreement of the Gallery Application.

    galleryId String

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

    location String

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

    name String

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

    privacyStatementUri String

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri String

    The URI containing the Release Notes associated with the Gallery Application.

    supportedOsType String

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    tags Map<String,String>

    A mapping of tags to assign to the Gallery Application.

    description string

    A description of the Gallery Application.

    endOfLifeDate string

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

    eula string

    The End User Licence Agreement of the Gallery Application.

    galleryId string

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

    location string

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

    name string

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

    privacyStatementUri string

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri string

    The URI containing the Release Notes associated with the Gallery Application.

    supportedOsType string

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    tags {[key: string]: string}

    A mapping of tags to assign to the Gallery Application.

    description str

    A description of the Gallery Application.

    end_of_life_date str

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

    eula str

    The End User Licence Agreement of the Gallery Application.

    gallery_id str

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

    location str

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

    name str

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

    privacy_statement_uri str

    The URI containing the Privacy Statement associated with the Gallery Application.

    release_note_uri str

    The URI containing the Release Notes associated with the Gallery Application.

    supported_os_type str

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    tags Mapping[str, str]

    A mapping of tags to assign to the Gallery Application.

    description String

    A description of the Gallery Application.

    endOfLifeDate String

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

    eula String

    The End User Licence Agreement of the Gallery Application.

    galleryId String

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

    location String

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

    name String

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

    privacyStatementUri String

    The URI containing the Privacy Statement associated with the Gallery Application.

    releaseNoteUri String

    The URI containing the Release Notes associated with the Gallery Application.

    supportedOsType String

    The type of the Operating System supported for the Gallery Application. Possible values are Linux and Windows. Changing this forces a new resource to be created.

    tags Map<String>

    A mapping of tags to assign to the Gallery Application.

    Import

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

     $ pulumi import azure:compute/galleryApplication:GalleryApplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1
    

    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.56.0 published on Tuesday, Nov 21, 2023 by Pulumi