We recommend using Azure Native.
azure.compute.GalleryApplication
Explore with Pulumi AI
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:
- Gallery
Id string The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
- Supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- Description string
A description of the Gallery Application.
- End
Of stringLife Date 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.
- Privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- Release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- Dictionary<string, string>
A mapping of tags to assign to the Gallery Application.
- Gallery
Id string The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
- Supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- Description string
A description of the Gallery Application.
- End
Of stringLife Date 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.
- Privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- Release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- map[string]string
A mapping of tags to assign to the Gallery Application.
- gallery
Id String The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
- supported
Os StringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- description String
A description of the Gallery Application.
- end
Of StringLife Date 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.
- privacy
Statement StringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note StringUri The URI containing the Release Notes associated with the Gallery Application.
- Map<String,String>
A mapping of tags to assign to the Gallery Application.
- gallery
Id string The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
- supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- description string
A description of the Gallery Application.
- end
Of stringLife Date 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.
- privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- {[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_ strtype The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- description str
A description of the Gallery Application.
- end_
of_ strlife_ date 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_ struri The URI containing the Privacy Statement associated with the Gallery Application.
- release_
note_ struri The URI containing the Release Notes associated with the Gallery Application.
- Mapping[str, str]
A mapping of tags to assign to the Gallery Application.
- gallery
Id String The ID of the Shared Image Gallery. Changing this forces a new resource to be created.
- supported
Os StringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- description String
A description of the Gallery Application.
- end
Of StringLife Date 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.
- privacy
Statement StringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note StringUri The URI containing the Release Notes associated with the Gallery Application.
- 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.
- Description string
A description of the Gallery Application.
- End
Of stringLife Date The end of life date in RFC3339 format of the Gallery Application.
- Eula string
The End User Licence Agreement of the Gallery Application.
- Gallery
Id 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.
- Privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- Release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- Supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the Gallery Application.
- Description string
A description of the Gallery Application.
- End
Of stringLife Date The end of life date in RFC3339 format of the Gallery Application.
- Eula string
The End User Licence Agreement of the Gallery Application.
- Gallery
Id 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.
- Privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- Release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- Supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the Gallery Application.
- description String
A description of the Gallery Application.
- end
Of StringLife Date The end of life date in RFC3339 format of the Gallery Application.
- eula String
The End User Licence Agreement of the Gallery Application.
- gallery
Id 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.
- privacy
Statement StringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note StringUri The URI containing the Release Notes associated with the Gallery Application.
- supported
Os StringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- Map<String,String>
A mapping of tags to assign to the Gallery Application.
- description string
A description of the Gallery Application.
- end
Of stringLife Date The end of life date in RFC3339 format of the Gallery Application.
- eula string
The End User Licence Agreement of the Gallery Application.
- gallery
Id 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.
- privacy
Statement stringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note stringUri The URI containing the Release Notes associated with the Gallery Application.
- supported
Os stringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the Gallery Application.
- description str
A description of the Gallery Application.
- end_
of_ strlife_ date 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_ struri The URI containing the Privacy Statement associated with the Gallery Application.
- release_
note_ struri The URI containing the Release Notes associated with the Gallery Application.
- supported_
os_ strtype The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- Mapping[str, str]
A mapping of tags to assign to the Gallery Application.
- description String
A description of the Gallery Application.
- end
Of StringLife Date The end of life date in RFC3339 format of the Gallery Application.
- eula String
The End User Licence Agreement of the Gallery Application.
- gallery
Id 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.
- privacy
Statement StringUri The URI containing the Privacy Statement associated with the Gallery Application.
- release
Note StringUri The URI containing the Release Notes associated with the Gallery Application.
- supported
Os StringType The type of the Operating System supported for the Gallery Application. Possible values are
Linux
andWindows
. Changing this forces a new resource to be created.- 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.