We recommend using Azure Native.
azure.compute.GalleryApplicationVersion
Explore with Pulumi AI
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={
"install": "[install command]",
"remove": "[remove command]",
},
source={
"media_link": example_blob.id,
},
target_regions=[{
"name": example_gallery_application.location,
"regional_replica_count": 1,
}])
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-azure/sdk/v6/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.
Constructor 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={
"install": "string",
"remove": "string",
"update": "string",
},
source={
"mediaLink": "string",
"defaultConfigurationLink": "string",
},
target_regions=[{
"name": "string",
"regionalReplicaCount": 0,
"excludeFromLatest": False,
"storageAccountType": "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:
- Gallery
Application stringId - The ID of the Gallery Application. Changing this forces a new resource to be created.
- Manage
Action GalleryApplication Version Manage Action - A
manage_action
block as defined below. - Source
Gallery
Application Version Source - A
source
block as defined below. - Target
Regions List<GalleryApplication Version Target Region> - One or more
target_region
blocks as defined below. - Config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- Enable
Health boolCheck - Should the Gallery Application reports health. Defaults to
false
. - End
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- Exclude
From boolLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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. - Package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the Gallery Application Version.
- Gallery
Application stringId - The ID of the Gallery Application. Changing this forces a new resource to be created.
- Manage
Action GalleryApplication Version Manage Action Args - A
manage_action
block as defined below. - Source
Gallery
Application Version Source Args - A
source
block as defined below. - Target
Regions []GalleryApplication Version Target Region Args - One or more
target_region
blocks as defined below. - Config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- Enable
Health boolCheck - Should the Gallery Application reports health. Defaults to
false
. - End
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- Exclude
From boolLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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. - Package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the Gallery Application Version.
- gallery
Application StringId - The ID of the Gallery Application. Changing this forces a new resource to be created.
- manage
Action GalleryApplication Version Manage Action - A
manage_action
block as defined below. - source
Gallery
Application Version Source - A
source
block as defined below. - target
Regions List<GalleryApplication Version Target Region> - One or more
target_region
blocks as defined below. - config
File String - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health BooleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of StringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From BooleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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. - package
File String - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the Gallery Application Version.
- gallery
Application stringId - The ID of the Gallery Application. Changing this forces a new resource to be created.
- manage
Action GalleryApplication Version Manage Action - A
manage_action
block as defined below. - source
Gallery
Application Version Source - A
source
block as defined below. - target
Regions GalleryApplication Version Target Region[] - One or more
target_region
blocks as defined below. - config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health booleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From booleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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. - package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the Gallery Application Version.
- gallery_
application_ strid - The ID of the Gallery Application. Changing this forces a new resource to be created.
- manage_
action GalleryApplication Version Manage Action Args - A
manage_action
block as defined below. - source
Gallery
Application Version Source Args - A
source
block as defined below. - target_
regions Sequence[GalleryApplication Version Target Region Args] - 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_ boolcheck - Should the Gallery Application reports health. Defaults to
false
. - end_
of_ strlife_ date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude_
from_ boollatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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.
- Mapping[str, str]
- A mapping of tags to assign to the Gallery Application Version.
- gallery
Application StringId - The ID of the Gallery Application. Changing this forces a new resource to be created.
- manage
Action Property Map - A
manage_action
block as defined below. - source Property Map
- A
source
block as defined below. - target
Regions List<Property Map> - One or more
target_region
blocks as defined below. - config
File String - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health BooleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of StringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From BooleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - 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. - package
File String - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- 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.
- Config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- Enable
Health boolCheck - Should the Gallery Application reports health. Defaults to
false
. - End
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- Exclude
From boolLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - Gallery
Application stringId - 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.
- Manage
Action GalleryApplication Version Manage Action - 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. - Package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- Source
Gallery
Application Version Source - A
source
block as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the Gallery Application Version.
- Target
Regions List<GalleryApplication Version Target Region> - One or more
target_region
blocks as defined below.
- Config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- Enable
Health boolCheck - Should the Gallery Application reports health. Defaults to
false
. - End
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- Exclude
From boolLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - Gallery
Application stringId - 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.
- Manage
Action GalleryApplication Version Manage Action Args - 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. - Package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- Source
Gallery
Application Version Source Args - A
source
block as defined below. - map[string]string
- A mapping of tags to assign to the Gallery Application Version.
- Target
Regions []GalleryApplication Version Target Region Args - One or more
target_region
blocks as defined below.
- config
File String - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health BooleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of StringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From BooleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - gallery
Application StringId - 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.
- manage
Action GalleryApplication Version Manage Action - 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. - package
File String - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- source
Gallery
Application Version Source - A
source
block as defined below. - Map<String,String>
- A mapping of tags to assign to the Gallery Application Version.
- target
Regions List<GalleryApplication Version Target Region> - One or more
target_region
blocks as defined below.
- config
File string - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health booleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of stringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From booleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - gallery
Application stringId - 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.
- manage
Action GalleryApplication Version Manage Action - 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. - package
File string - Specifies the name of the package file on the VM. Changing this forces a new resource to be created.
- source
Gallery
Application Version Source - A
source
block as defined below. - {[key: string]: string}
- A mapping of tags to assign to the Gallery Application Version.
- target
Regions GalleryApplication Version Target Region[] - 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_ boolcheck - Should the Gallery Application reports health. Defaults to
false
. - end_
of_ strlife_ date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude_
from_ boollatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - gallery_
application_ strid - 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 GalleryApplication Version Manage Action Args - 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
Gallery
Application Version Source Args - A
source
block as defined below. - Mapping[str, str]
- A mapping of tags to assign to the Gallery Application Version.
- target_
regions Sequence[GalleryApplication Version Target Region Args] - One or more
target_region
blocks as defined below.
- config
File String - Specifies the name of the config file on the VM. Changing this forces a new resource to be created.
- enable
Health BooleanCheck - Should the Gallery Application reports health. Defaults to
false
. - end
Of StringLife Date - The end of life date in RFC3339 format of the Gallery Application Version.
- exclude
From BooleanLatest - Should the Gallery Application Version be excluded from the
latest
filter? If set totrue
this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - gallery
Application StringId - 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.
- manage
Action 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. - package
File 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. - Map<String>
- A mapping of tags to assign to the Gallery Application Version.
- target
Regions 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
- Media
Link string - The Storage Blob URI of the source application package. Changing this forces a new resource to be created.
- Default
Configuration stringLink - The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.
- Media
Link string - The Storage Blob URI of the source application package. Changing this forces a new resource to be created.
- Default
Configuration stringLink - The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.
- media
Link String - The Storage Blob URI of the source application package. Changing this forces a new resource to be created.
- default
Configuration StringLink - The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.
- media
Link string - The Storage Blob URI of the source application package. Changing this forces a new resource to be created.
- default
Configuration stringLink - 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_ strlink - The Storage Blob URI of the default configuration. Changing this forces a new resource to be created.
- media
Link String - The Storage Blob URI of the source application package. Changing this forces a new resource to be created.
- default
Configuration StringLink - 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.
- Regional
Replica intCount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - Exclude
From boolLatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - Storage
Account stringType - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_LRS
.
- Name string
- The Azure Region in which the Gallery Application Version exists.
- Regional
Replica intCount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - Exclude
From boolLatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - Storage
Account stringType - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_LRS
.
- name String
- The Azure Region in which the Gallery Application Version exists.
- regional
Replica IntegerCount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - exclude
From BooleanLatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - storage
Account StringType - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_LRS
.
- name string
- The Azure Region in which the Gallery Application Version exists.
- regional
Replica numberCount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - exclude
From booleanLatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - storage
Account stringType - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_LRS
.
- name str
- The Azure Region in which the Gallery Application Version exists.
- regional_
replica_ intcount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - exclude_
from_ boollatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - storage_
account_ strtype - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_LRS
.
- name String
- The Azure Region in which the Gallery Application Version exists.
- regional
Replica NumberCount - The number of replicas of the Gallery Application Version to be created per region. Possible values are between
1
and10
. - exclude
From BooleanLatest - Specifies whether this Gallery Application Version should be excluded from the
latest
filter. If set totrue
, this Gallery Application Version won't be returned for thelatest
version. Defaults tofalse
. - storage
Account StringType - The storage account type for the Gallery Application Version. Possible values are
Standard_LRS
,Premium_LRS
andStandard_ZRS
. Defaults toStandard_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.