azure-native.compute.GalleryApplication
Explore with Pulumi AI
Specifies information about the gallery Application Definition that you want to create or update. API Version: 2020-09-30.
Example Usage
Create or update a simple gallery Application.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var galleryApplication = new AzureNative.Compute.GalleryApplication("galleryApplication", new()
{
Description = "This is the gallery application description.",
Eula = "This is the gallery application EULA.",
GalleryApplicationName = "myGalleryApplicationName",
GalleryName = "myGalleryName",
Location = "West US",
PrivacyStatementUri = "myPrivacyStatementUri}",
ReleaseNoteUri = "myReleaseNoteUri",
ResourceGroupName = "myResourceGroup",
SupportedOSType = AzureNative.Compute.OperatingSystemTypes.Windows,
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewGalleryApplication(ctx, "galleryApplication", &compute.GalleryApplicationArgs{
Description: pulumi.String("This is the gallery application description."),
Eula: pulumi.String("This is the gallery application EULA."),
GalleryApplicationName: pulumi.String("myGalleryApplicationName"),
GalleryName: pulumi.String("myGalleryName"),
Location: pulumi.String("West US"),
PrivacyStatementUri: pulumi.String("myPrivacyStatementUri}"),
ReleaseNoteUri: pulumi.String("myReleaseNoteUri"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SupportedOSType: compute.OperatingSystemTypesWindows,
})
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.azurenative.compute.GalleryApplication;
import com.pulumi.azurenative.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 galleryApplication = new GalleryApplication("galleryApplication", GalleryApplicationArgs.builder()
.description("This is the gallery application description.")
.eula("This is the gallery application EULA.")
.galleryApplicationName("myGalleryApplicationName")
.galleryName("myGalleryName")
.location("West US")
.privacyStatementUri("myPrivacyStatementUri}")
.releaseNoteUri("myReleaseNoteUri")
.resourceGroupName("myResourceGroup")
.supportedOSType("Windows")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
gallery_application = azure_native.compute.GalleryApplication("galleryApplication",
description="This is the gallery application description.",
eula="This is the gallery application EULA.",
gallery_application_name="myGalleryApplicationName",
gallery_name="myGalleryName",
location="West US",
privacy_statement_uri="myPrivacyStatementUri}",
release_note_uri="myReleaseNoteUri",
resource_group_name="myResourceGroup",
supported_os_type=azure_native.compute.OperatingSystemTypes.WINDOWS)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const galleryApplication = new azure_native.compute.GalleryApplication("galleryApplication", {
description: "This is the gallery application description.",
eula: "This is the gallery application EULA.",
galleryApplicationName: "myGalleryApplicationName",
galleryName: "myGalleryName",
location: "West US",
privacyStatementUri: "myPrivacyStatementUri}",
releaseNoteUri: "myReleaseNoteUri",
resourceGroupName: "myResourceGroup",
supportedOSType: azure_native.compute.OperatingSystemTypes.Windows,
});
resources:
galleryApplication:
type: azure-native:compute:GalleryApplication
properties:
description: This is the gallery application description.
eula: This is the gallery application EULA.
galleryApplicationName: myGalleryApplicationName
galleryName: myGalleryName
location: West US
privacyStatementUri: myPrivacyStatementUri}
releaseNoteUri: myReleaseNoteUri
resourceGroupName: myResourceGroup
supportedOSType: Windows
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_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
supported_os_type: Optional[OperatingSystemTypes] = None,
description: Optional[str] = None,
end_of_life_date: Optional[str] = None,
eula: Optional[str] = None,
gallery_application_name: Optional[str] = None,
location: 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-native: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 AzureNative.Compute.GalleryApplication("galleryApplicationResource", new()
{
GalleryName = "string",
ResourceGroupName = "string",
SupportedOSType = "Windows",
Description = "string",
EndOfLifeDate = "string",
Eula = "string",
GalleryApplicationName = "string",
Location = "string",
PrivacyStatementUri = "string",
ReleaseNoteUri = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := compute.NewGalleryApplication(ctx, "galleryApplicationResource", &compute.GalleryApplicationArgs{
GalleryName: "string",
ResourceGroupName: "string",
SupportedOSType: "Windows",
Description: "string",
EndOfLifeDate: "string",
Eula: "string",
GalleryApplicationName: "string",
Location: "string",
PrivacyStatementUri: "string",
ReleaseNoteUri: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var galleryApplicationResource = new GalleryApplication("galleryApplicationResource", GalleryApplicationArgs.builder()
.galleryName("string")
.resourceGroupName("string")
.supportedOSType("Windows")
.description("string")
.endOfLifeDate("string")
.eula("string")
.galleryApplicationName("string")
.location("string")
.privacyStatementUri("string")
.releaseNoteUri("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
gallery_application_resource = azure_native.compute.GalleryApplication("galleryApplicationResource",
gallery_name=string,
resource_group_name=string,
supported_os_type=Windows,
description=string,
end_of_life_date=string,
eula=string,
gallery_application_name=string,
location=string,
privacy_statement_uri=string,
release_note_uri=string,
tags={
string: string,
})
const galleryApplicationResource = new azure_native.compute.GalleryApplication("galleryApplicationResource", {
galleryName: "string",
resourceGroupName: "string",
supportedOSType: "Windows",
description: "string",
endOfLifeDate: "string",
eula: "string",
galleryApplicationName: "string",
location: "string",
privacyStatementUri: "string",
releaseNoteUri: "string",
tags: {
string: "string",
},
});
type: azure-native:compute:GalleryApplication
properties:
description: string
endOfLifeDate: string
eula: string
galleryApplicationName: string
galleryName: string
location: string
privacyStatementUri: string
releaseNoteUri: string
resourceGroupName: string
supportedOSType: Windows
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
The GalleryApplication resource accepts the following input properties:
- Gallery
Name string - The name of the Shared Application Gallery in which the Application Definition is to be created.
- Resource
Group stringName - The name of the resource group.
- Supported
OSType Pulumi.Azure Native. Compute. Operating System Types - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- Description string
- The description of this gallery Application Definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery Application Definition.
- Gallery
Application stringName - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- Location string
- Resource location
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- Dictionary<string, string>
- Resource tags
- Gallery
Name string - The name of the Shared Application Gallery in which the Application Definition is to be created.
- Resource
Group stringName - The name of the resource group.
- Supported
OSType OperatingSystem Types - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- Description string
- The description of this gallery Application Definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery Application Definition.
- Gallery
Application stringName - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- Location string
- Resource location
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- map[string]string
- Resource tags
- gallery
Name String - The name of the Shared Application Gallery in which the Application Definition is to be created.
- resource
Group StringName - The name of the resource group.
- supported
OSType OperatingSystem Types - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- description String
- The description of this gallery Application Definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery Application Definition.
- gallery
Application StringName - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- location String
- Resource location
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
- Map<String,String>
- Resource tags
- gallery
Name string - The name of the Shared Application Gallery in which the Application Definition is to be created.
- resource
Group stringName - The name of the resource group.
- supported
OSType OperatingSystem Types - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- description string
- The description of this gallery Application Definition resource. This property is updatable.
- end
Of stringLife Date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula string
- The Eula agreement for the gallery Application Definition.
- gallery
Application stringName - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- location string
- Resource location
- privacy
Statement stringUri - The privacy statement uri.
- release
Note stringUri - The release note uri.
- {[key: string]: string}
- Resource tags
- gallery_
name str - The name of the Shared Application Gallery in which the Application Definition is to be created.
- resource_
group_ strname - The name of the resource group.
- supported_
os_ Operatingtype System Types - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- description str
- The description of this gallery Application Definition resource. This property is updatable.
- end_
of_ strlife_ date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula str
- The Eula agreement for the gallery Application Definition.
- gallery_
application_ strname - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- location str
- Resource location
- privacy_
statement_ struri - The privacy statement uri.
- release_
note_ struri - The release note uri.
- Mapping[str, str]
- Resource tags
- gallery
Name String - The name of the Shared Application Gallery in which the Application Definition is to be created.
- resource
Group StringName - The name of the resource group.
- supported
OSType "Windows" | "Linux" - This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows Linux
- description String
- The description of this gallery Application Definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery Application Definition.
- gallery
Application StringName - The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- location String
- Resource location
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryApplication resource produces the following output properties:
Supporting Types
OperatingSystemTypes, OperatingSystemTypesArgs
- Windows
- Windows
- Linux
- Linux
- Operating
System Types Windows - Windows
- Operating
System Types Linux - Linux
- Windows
- Windows
- Linux
- Linux
- Windows
- Windows
- Linux
- Linux
- WINDOWS
- Windows
- LINUX
- Linux
- "Windows"
- Windows
- "Linux"
- Linux
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:compute:GalleryApplication myGalleryApplicationName /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0