We recommend using Azure Native.
azure.compute.GalleryApplication
Explore with Pulumi AI
Manages a Gallery Application.
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",
});
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")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"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
}
_, 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
}
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",
});
});
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 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());
}
}
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
Create GalleryApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GalleryApplication(name: string, args: GalleryApplicationArgs, opts?: CustomResourceOptions);
@overload
def GalleryApplication(resource_name: str,
args: GalleryApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GalleryApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
gallery_id: Optional[str] = None,
supported_os_type: Optional[str] = None,
description: Optional[str] = None,
end_of_life_date: Optional[str] = None,
eula: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
privacy_statement_uri: Optional[str] = None,
release_note_uri: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var galleryApplicationResource = new Azure.Compute.GalleryApplication("galleryApplicationResource", new()
{
GalleryId = "string",
SupportedOsType = "string",
Description = "string",
EndOfLifeDate = "string",
Eula = "string",
Location = "string",
Name = "string",
PrivacyStatementUri = "string",
ReleaseNoteUri = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := compute.NewGalleryApplication(ctx, "galleryApplicationResource", &compute.GalleryApplicationArgs{
GalleryId: pulumi.String("string"),
SupportedOsType: pulumi.String("string"),
Description: pulumi.String("string"),
EndOfLifeDate: pulumi.String("string"),
Eula: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
PrivacyStatementUri: pulumi.String("string"),
ReleaseNoteUri: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var galleryApplicationResource = new GalleryApplication("galleryApplicationResource", GalleryApplicationArgs.builder()
.galleryId("string")
.supportedOsType("string")
.description("string")
.endOfLifeDate("string")
.eula("string")
.location("string")
.name("string")
.privacyStatementUri("string")
.releaseNoteUri("string")
.tags(Map.of("string", "string"))
.build());
gallery_application_resource = azure.compute.GalleryApplication("galleryApplicationResource",
gallery_id="string",
supported_os_type="string",
description="string",
end_of_life_date="string",
eula="string",
location="string",
name="string",
privacy_statement_uri="string",
release_note_uri="string",
tags={
"string": "string",
})
const galleryApplicationResource = new azure.compute.GalleryApplication("galleryApplicationResource", {
galleryId: "string",
supportedOsType: "string",
description: "string",
endOfLifeDate: "string",
eula: "string",
location: "string",
name: "string",
privacyStatementUri: "string",
releaseNoteUri: "string",
tags: {
string: "string",
},
});
type: azure:compute:GalleryApplication
properties:
description: string
endOfLifeDate: string
eula: string
galleryId: string
location: string
name: string
privacyStatementUri: string
releaseNoteUri: string
supportedOsType: string
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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
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.