Specifies information about the gallery Script Definition that you want to create or update.
Uses Azure REST API version 2025-03-03.
Example Usage
Create or update a simple gallery Script.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var galleryScript = new AzureNative.Compute.GalleryScript("galleryScript", new()
{
GalleryName = "myGalleryName",
GalleryScriptName = "myGalleryScriptName",
Location = "West US",
Properties = new AzureNative.Compute.Inputs.GalleryScriptPropertiesArgs
{
Description = "This is the gallery script description.",
Eula = "This is the gallery script EULA.",
PrivacyStatementUri = "{myPrivacyStatementUri}",
ReleaseNoteUri = "{myReleaseNoteUri}",
SupportedOSType = AzureNative.Compute.OperatingSystemTypes.Windows,
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewGalleryScript(ctx, "galleryScript", &compute.GalleryScriptArgs{
GalleryName: pulumi.String("myGalleryName"),
GalleryScriptName: pulumi.String("myGalleryScriptName"),
Location: pulumi.String("West US"),
Properties: &compute.GalleryScriptPropertiesArgs{
Description: pulumi.String("This is the gallery script description."),
Eula: pulumi.String("This is the gallery script EULA."),
PrivacyStatementUri: pulumi.String("{myPrivacyStatementUri}"),
ReleaseNoteUri: pulumi.String("{myReleaseNoteUri}"),
SupportedOSType: compute.OperatingSystemTypesWindows,
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.GalleryScript;
import com.pulumi.azurenative.compute.GalleryScriptArgs;
import com.pulumi.azurenative.compute.inputs.GalleryScriptPropertiesArgs;
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 galleryScript = new GalleryScript("galleryScript", GalleryScriptArgs.builder()
.galleryName("myGalleryName")
.galleryScriptName("myGalleryScriptName")
.location("West US")
.properties(GalleryScriptPropertiesArgs.builder()
.description("This is the gallery script description.")
.eula("This is the gallery script EULA.")
.privacyStatementUri("{myPrivacyStatementUri}")
.releaseNoteUri("{myReleaseNoteUri}")
.supportedOSType("Windows")
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const galleryScript = new azure_native.compute.GalleryScript("galleryScript", {
galleryName: "myGalleryName",
galleryScriptName: "myGalleryScriptName",
location: "West US",
properties: {
description: "This is the gallery script description.",
eula: "This is the gallery script EULA.",
privacyStatementUri: "{myPrivacyStatementUri}",
releaseNoteUri: "{myReleaseNoteUri}",
supportedOSType: azure_native.compute.OperatingSystemTypes.Windows,
},
resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
gallery_script = azure_native.compute.GalleryScript("galleryScript",
gallery_name="myGalleryName",
gallery_script_name="myGalleryScriptName",
location="West US",
properties={
"description": "This is the gallery script description.",
"eula": "This is the gallery script EULA.",
"privacy_statement_uri": "{myPrivacyStatementUri}",
"release_note_uri": "{myReleaseNoteUri}",
"supported_os_type": azure_native.compute.OperatingSystemTypes.WINDOWS,
},
resource_group_name="myResourceGroup")
resources:
galleryScript:
type: azure-native:compute:GalleryScript
properties:
galleryName: myGalleryName
galleryScriptName: myGalleryScriptName
location: West US
properties:
description: This is the gallery script description.
eula: This is the gallery script EULA.
privacyStatementUri: '{myPrivacyStatementUri}'
releaseNoteUri: '{myReleaseNoteUri}'
supportedOSType: Windows
resourceGroupName: myResourceGroup
Create GalleryScript Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GalleryScript(name: string, args: GalleryScriptArgs, opts?: CustomResourceOptions);@overload
def GalleryScript(resource_name: str,
args: GalleryScriptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GalleryScript(resource_name: str,
opts: Optional[ResourceOptions] = None,
gallery_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
gallery_script_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[GalleryScriptPropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None)func NewGalleryScript(ctx *Context, name string, args GalleryScriptArgs, opts ...ResourceOption) (*GalleryScript, error)public GalleryScript(string name, GalleryScriptArgs args, CustomResourceOptions? opts = null)
public GalleryScript(String name, GalleryScriptArgs args)
public GalleryScript(String name, GalleryScriptArgs args, CustomResourceOptions options)
type: azure-native:compute:GalleryScript
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 GalleryScriptArgs
- 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 GalleryScriptArgs
- 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 GalleryScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GalleryScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GalleryScriptArgs
- 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 galleryScriptResource = new AzureNative.Compute.GalleryScript("galleryScriptResource", new()
{
GalleryName = "string",
ResourceGroupName = "string",
GalleryScriptName = "string",
Location = "string",
Properties = new AzureNative.Compute.Inputs.GalleryScriptPropertiesArgs
{
SupportedOSType = AzureNative.Compute.OperatingSystemTypes.Windows,
Description = "string",
EndOfLifeDate = "string",
Eula = "string",
PrivacyStatementUri = "string",
ReleaseNoteUri = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := compute.NewGalleryScript(ctx, "galleryScriptResource", &compute.GalleryScriptArgs{
GalleryName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
GalleryScriptName: pulumi.String("string"),
Location: pulumi.String("string"),
Properties: &compute.GalleryScriptPropertiesArgs{
SupportedOSType: compute.OperatingSystemTypesWindows,
Description: pulumi.String("string"),
EndOfLifeDate: pulumi.String("string"),
Eula: pulumi.String("string"),
PrivacyStatementUri: pulumi.String("string"),
ReleaseNoteUri: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var galleryScriptResource = new GalleryScript("galleryScriptResource", GalleryScriptArgs.builder()
.galleryName("string")
.resourceGroupName("string")
.galleryScriptName("string")
.location("string")
.properties(GalleryScriptPropertiesArgs.builder()
.supportedOSType("Windows")
.description("string")
.endOfLifeDate("string")
.eula("string")
.privacyStatementUri("string")
.releaseNoteUri("string")
.build())
.tags(Map.of("string", "string"))
.build());
gallery_script_resource = azure_native.compute.GalleryScript("galleryScriptResource",
gallery_name="string",
resource_group_name="string",
gallery_script_name="string",
location="string",
properties={
"supported_os_type": azure_native.compute.OperatingSystemTypes.WINDOWS,
"description": "string",
"end_of_life_date": "string",
"eula": "string",
"privacy_statement_uri": "string",
"release_note_uri": "string",
},
tags={
"string": "string",
})
const galleryScriptResource = new azure_native.compute.GalleryScript("galleryScriptResource", {
galleryName: "string",
resourceGroupName: "string",
galleryScriptName: "string",
location: "string",
properties: {
supportedOSType: azure_native.compute.OperatingSystemTypes.Windows,
description: "string",
endOfLifeDate: "string",
eula: "string",
privacyStatementUri: "string",
releaseNoteUri: "string",
},
tags: {
string: "string",
},
});
type: azure-native:compute:GalleryScript
properties:
galleryName: string
galleryScriptName: string
location: string
properties:
description: string
endOfLifeDate: string
eula: string
privacyStatementUri: string
releaseNoteUri: string
supportedOSType: Windows
resourceGroupName: string
tags:
string: string
GalleryScript 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 GalleryScript resource accepts the following input properties:
- Gallery
Name string - The name of the Shared Image Gallery.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Gallery
Script stringName - The name of the gallery Script Definition to be retrieved.
- Location string
- The geo-location where the resource lives
- Properties
Pulumi.
Azure Native. Compute. Inputs. Gallery Script Properties - Describes the properties of a gallery Script Definition.
- Dictionary<string, string>
- Resource tags.
- Gallery
Name string - The name of the Shared Image Gallery.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Gallery
Script stringName - The name of the gallery Script Definition to be retrieved.
- Location string
- The geo-location where the resource lives
- Properties
Gallery
Script Properties Args - Describes the properties of a gallery Script Definition.
- map[string]string
- Resource tags.
- gallery
Name String - The name of the Shared Image Gallery.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- gallery
Script StringName - The name of the gallery Script Definition to be retrieved.
- location String
- The geo-location where the resource lives
- properties
Gallery
Script Properties - Describes the properties of a gallery Script Definition.
- Map<String,String>
- Resource tags.
- gallery
Name string - The name of the Shared Image Gallery.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- gallery
Script stringName - The name of the gallery Script Definition to be retrieved.
- location string
- The geo-location where the resource lives
- properties
Gallery
Script Properties - Describes the properties of a gallery Script Definition.
- {[key: string]: string}
- Resource tags.
- gallery_
name str - The name of the Shared Image Gallery.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- gallery_
script_ strname - The name of the gallery Script Definition to be retrieved.
- location str
- The geo-location where the resource lives
- properties
Gallery
Script Properties Args - Describes the properties of a gallery Script Definition.
- Mapping[str, str]
- Resource tags.
- gallery
Name String - The name of the Shared Image Gallery.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- gallery
Script StringName - The name of the gallery Script Definition to be retrieved.
- location String
- The geo-location where the resource lives
- properties Property Map
- Describes the properties of a gallery Script Definition.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryScript resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Compute. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
GalleryScriptProperties, GalleryScriptPropertiesArgs
Describes the properties of a gallery script definition.- 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 script definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- 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 script definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- 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 script definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
- 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 script definition resource. This property is updatable.
- end
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement stringUri - The privacy statement uri.
- release
Note stringUri - The release note uri.
- 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 script definition resource. This property is updatable.
- end_
of_ strlife_ date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula str
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy_
statement_ struri - The privacy statement uri.
- release_
note_ struri - The release note uri.
- 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 script definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
GalleryScriptPropertiesResponse, GalleryScriptPropertiesResponseArgs
Describes the properties of a gallery script definition.- Provisioning
State string - The provisioning state, which only appears in the response.
- Supported
OSType string - 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 script definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- Provisioning
State string - The provisioning state, which only appears in the response.
- Supported
OSType string - 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 script definition resource. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- Privacy
Statement stringUri - The privacy statement uri.
- Release
Note stringUri - The release note uri.
- provisioning
State String - The provisioning state, which only appears in the response.
- supported
OSType String - 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 script definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
- provisioning
State string - The provisioning state, which only appears in the response.
- supported
OSType string - 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 script definition resource. This property is updatable.
- end
Of stringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula string
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement stringUri - The privacy statement uri.
- release
Note stringUri - The release note uri.
- provisioning_
state str - The provisioning state, which only appears in the response.
- supported_
os_ strtype - 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 script definition resource. This property is updatable.
- end_
of_ strlife_ date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula str
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy_
statement_ struri - The privacy statement uri.
- release_
note_ struri - The release note uri.
- provisioning
State String - The provisioning state, which only appears in the response.
- supported
OSType String - 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 script definition resource. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement (End User License Agreement) for the gallery Script Definition.
- privacy
Statement StringUri - The privacy statement uri.
- release
Note StringUri - The release note uri.
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
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:compute:GalleryScript myGalleryScriptName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
