azure-native.compute.GalleryImage
Explore with Pulumi AI
Specifies information about the gallery image definition that you want to create or update. Azure REST API version: 2022-03-03. Prior API version in Azure Native 1.x: 2020-09-30.
Other available API versions: 2022-08-03, 2023-07-03, 2024-03-03.
Example Usage
Create or update a simple gallery image.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var galleryImage = new AzureNative.Compute.GalleryImage("galleryImage", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryName = "myGalleryName",
        HyperVGeneration = AzureNative.Compute.HyperVGeneration.V1,
        Identifier = new AzureNative.Compute.Inputs.GalleryImageIdentifierArgs
        {
            Offer = "myOfferName",
            Publisher = "myPublisherName",
            Sku = "mySkuName",
        },
        Location = "West US",
        OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
        OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
        ResourceGroupName = "myResourceGroup",
    });
});
package main
import (
	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.NewGalleryImage(ctx, "galleryImage", &compute.GalleryImageArgs{
			GalleryImageName: pulumi.String("myGalleryImageName"),
			GalleryName:      pulumi.String("myGalleryName"),
			HyperVGeneration: pulumi.String(compute.HyperVGenerationV1),
			Identifier: &compute.GalleryImageIdentifierArgs{
				Offer:     pulumi.String("myOfferName"),
				Publisher: pulumi.String("myPublisherName"),
				Sku:       pulumi.String("mySkuName"),
			},
			Location:          pulumi.String("West US"),
			OsState:           compute.OperatingSystemStateTypesGeneralized,
			OsType:            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.GalleryImage;
import com.pulumi.azurenative.compute.GalleryImageArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageIdentifierArgs;
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 galleryImage = new GalleryImage("galleryImage", GalleryImageArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryName("myGalleryName")
            .hyperVGeneration("V1")
            .identifier(GalleryImageIdentifierArgs.builder()
                .offer("myOfferName")
                .publisher("myPublisherName")
                .sku("mySkuName")
                .build())
            .location("West US")
            .osState("Generalized")
            .osType("Windows")
            .resourceGroupName("myResourceGroup")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const galleryImage = new azure_native.compute.GalleryImage("galleryImage", {
    galleryImageName: "myGalleryImageName",
    galleryName: "myGalleryName",
    hyperVGeneration: azure_native.compute.HyperVGeneration.V1,
    identifier: {
        offer: "myOfferName",
        publisher: "myPublisherName",
        sku: "mySkuName",
    },
    location: "West US",
    osState: azure_native.compute.OperatingSystemStateTypes.Generalized,
    osType: azure_native.compute.OperatingSystemTypes.Windows,
    resourceGroupName: "myResourceGroup",
});
import pulumi
import pulumi_azure_native as azure_native
gallery_image = azure_native.compute.GalleryImage("galleryImage",
    gallery_image_name="myGalleryImageName",
    gallery_name="myGalleryName",
    hyper_v_generation=azure_native.compute.HyperVGeneration.V1,
    identifier={
        "offer": "myOfferName",
        "publisher": "myPublisherName",
        "sku": "mySkuName",
    },
    location="West US",
    os_state=azure_native.compute.OperatingSystemStateTypes.GENERALIZED,
    os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
    resource_group_name="myResourceGroup")
resources:
  galleryImage:
    type: azure-native:compute:GalleryImage
    properties:
      galleryImageName: myGalleryImageName
      galleryName: myGalleryName
      hyperVGeneration: V1
      identifier:
        offer: myOfferName
        publisher: myPublisherName
        sku: mySkuName
      location: West US
      osState: Generalized
      osType: Windows
      resourceGroupName: myResourceGroup
Create GalleryImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GalleryImage(name: string, args: GalleryImageArgs, opts?: CustomResourceOptions);@overload
def GalleryImage(resource_name: str,
                 args: GalleryImageArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def GalleryImage(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 gallery_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 os_type: Optional[OperatingSystemTypes] = None,
                 os_state: Optional[OperatingSystemStateTypes] = None,
                 identifier: Optional[GalleryImageIdentifierArgs] = None,
                 eula: Optional[str] = None,
                 disallowed: Optional[DisallowedArgs] = None,
                 features: Optional[Sequence[GalleryImageFeatureArgs]] = None,
                 hyper_v_generation: Optional[Union[str, HyperVGeneration]] = None,
                 architecture: Optional[Union[str, Architecture]] = None,
                 location: Optional[str] = None,
                 end_of_life_date: Optional[str] = None,
                 gallery_image_name: Optional[str] = None,
                 privacy_statement_uri: Optional[str] = None,
                 purchase_plan: Optional[ImagePurchasePlanArgs] = None,
                 recommended: Optional[RecommendedMachineConfigurationArgs] = None,
                 release_note_uri: Optional[str] = None,
                 description: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None)func NewGalleryImage(ctx *Context, name string, args GalleryImageArgs, opts ...ResourceOption) (*GalleryImage, error)public GalleryImage(string name, GalleryImageArgs args, CustomResourceOptions? opts = null)
public GalleryImage(String name, GalleryImageArgs args)
public GalleryImage(String name, GalleryImageArgs args, CustomResourceOptions options)
type: azure-native:compute:GalleryImage
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 GalleryImageArgs
- 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 GalleryImageArgs
- 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 GalleryImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GalleryImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GalleryImageArgs
- 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 azure_nativeGalleryImageResource = new AzureNative.Compute.GalleryImage("azure-nativeGalleryImageResource", new()
{
    GalleryName = "string",
    ResourceGroupName = "string",
    OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
    OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
    Identifier = new AzureNative.Compute.Inputs.GalleryImageIdentifierArgs
    {
        Offer = "string",
        Publisher = "string",
        Sku = "string",
    },
    Eula = "string",
    Disallowed = new AzureNative.Compute.Inputs.DisallowedArgs
    {
        DiskTypes = new[]
        {
            "string",
        },
    },
    Features = new[]
    {
        new AzureNative.Compute.Inputs.GalleryImageFeatureArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    HyperVGeneration = "string",
    Architecture = "string",
    Location = "string",
    EndOfLifeDate = "string",
    GalleryImageName = "string",
    PrivacyStatementUri = "string",
    PurchasePlan = new AzureNative.Compute.Inputs.ImagePurchasePlanArgs
    {
        Name = "string",
        Product = "string",
        Publisher = "string",
    },
    Recommended = new AzureNative.Compute.Inputs.RecommendedMachineConfigurationArgs
    {
        Memory = new AzureNative.Compute.Inputs.ResourceRangeArgs
        {
            Max = 0,
            Min = 0,
        },
        VCPUs = new AzureNative.Compute.Inputs.ResourceRangeArgs
        {
            Max = 0,
            Min = 0,
        },
    },
    ReleaseNoteUri = "string",
    Description = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := compute.NewGalleryImage(ctx, "azure-nativeGalleryImageResource", &compute.GalleryImageArgs{
	GalleryName:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	OsType:            compute.OperatingSystemTypesWindows,
	OsState:           compute.OperatingSystemStateTypesGeneralized,
	Identifier: &compute.GalleryImageIdentifierArgs{
		Offer:     pulumi.String("string"),
		Publisher: pulumi.String("string"),
		Sku:       pulumi.String("string"),
	},
	Eula: pulumi.String("string"),
	Disallowed: &compute.DisallowedArgs{
		DiskTypes: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Features: compute.GalleryImageFeatureArray{
		&compute.GalleryImageFeatureArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	HyperVGeneration:    pulumi.String("string"),
	Architecture:        pulumi.String("string"),
	Location:            pulumi.String("string"),
	EndOfLifeDate:       pulumi.String("string"),
	GalleryImageName:    pulumi.String("string"),
	PrivacyStatementUri: pulumi.String("string"),
	PurchasePlan: &compute.ImagePurchasePlanArgs{
		Name:      pulumi.String("string"),
		Product:   pulumi.String("string"),
		Publisher: pulumi.String("string"),
	},
	Recommended: &compute.RecommendedMachineConfigurationArgs{
		Memory: &compute.ResourceRangeArgs{
			Max: pulumi.Int(0),
			Min: pulumi.Int(0),
		},
		VCPUs: &compute.ResourceRangeArgs{
			Max: pulumi.Int(0),
			Min: pulumi.Int(0),
		},
	},
	ReleaseNoteUri: pulumi.String("string"),
	Description:    pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var azure_nativeGalleryImageResource = new GalleryImage("azure-nativeGalleryImageResource", GalleryImageArgs.builder()
    .galleryName("string")
    .resourceGroupName("string")
    .osType("Windows")
    .osState("Generalized")
    .identifier(GalleryImageIdentifierArgs.builder()
        .offer("string")
        .publisher("string")
        .sku("string")
        .build())
    .eula("string")
    .disallowed(DisallowedArgs.builder()
        .diskTypes("string")
        .build())
    .features(GalleryImageFeatureArgs.builder()
        .name("string")
        .value("string")
        .build())
    .hyperVGeneration("string")
    .architecture("string")
    .location("string")
    .endOfLifeDate("string")
    .galleryImageName("string")
    .privacyStatementUri("string")
    .purchasePlan(ImagePurchasePlanArgs.builder()
        .name("string")
        .product("string")
        .publisher("string")
        .build())
    .recommended(RecommendedMachineConfigurationArgs.builder()
        .memory(ResourceRangeArgs.builder()
            .max(0)
            .min(0)
            .build())
        .vCPUs(ResourceRangeArgs.builder()
            .max(0)
            .min(0)
            .build())
        .build())
    .releaseNoteUri("string")
    .description("string")
    .tags(Map.of("string", "string"))
    .build());
azure_native_gallery_image_resource = azure_native.compute.GalleryImage("azure-nativeGalleryImageResource",
    gallery_name="string",
    resource_group_name="string",
    os_type=azure_native.compute.OperatingSystemTypes.WINDOWS,
    os_state=azure_native.compute.OperatingSystemStateTypes.GENERALIZED,
    identifier={
        "offer": "string",
        "publisher": "string",
        "sku": "string",
    },
    eula="string",
    disallowed={
        "disk_types": ["string"],
    },
    features=[{
        "name": "string",
        "value": "string",
    }],
    hyper_v_generation="string",
    architecture="string",
    location="string",
    end_of_life_date="string",
    gallery_image_name="string",
    privacy_statement_uri="string",
    purchase_plan={
        "name": "string",
        "product": "string",
        "publisher": "string",
    },
    recommended={
        "memory": {
            "max": 0,
            "min": 0,
        },
        "v_cpus": {
            "max": 0,
            "min": 0,
        },
    },
    release_note_uri="string",
    description="string",
    tags={
        "string": "string",
    })
const azure_nativeGalleryImageResource = new azure_native.compute.GalleryImage("azure-nativeGalleryImageResource", {
    galleryName: "string",
    resourceGroupName: "string",
    osType: azure_native.compute.OperatingSystemTypes.Windows,
    osState: azure_native.compute.OperatingSystemStateTypes.Generalized,
    identifier: {
        offer: "string",
        publisher: "string",
        sku: "string",
    },
    eula: "string",
    disallowed: {
        diskTypes: ["string"],
    },
    features: [{
        name: "string",
        value: "string",
    }],
    hyperVGeneration: "string",
    architecture: "string",
    location: "string",
    endOfLifeDate: "string",
    galleryImageName: "string",
    privacyStatementUri: "string",
    purchasePlan: {
        name: "string",
        product: "string",
        publisher: "string",
    },
    recommended: {
        memory: {
            max: 0,
            min: 0,
        },
        vCPUs: {
            max: 0,
            min: 0,
        },
    },
    releaseNoteUri: "string",
    description: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:compute:GalleryImage
properties:
    architecture: string
    description: string
    disallowed:
        diskTypes:
            - string
    endOfLifeDate: string
    eula: string
    features:
        - name: string
          value: string
    galleryImageName: string
    galleryName: string
    hyperVGeneration: string
    identifier:
        offer: string
        publisher: string
        sku: string
    location: string
    osState: Generalized
    osType: Windows
    privacyStatementUri: string
    purchasePlan:
        name: string
        product: string
        publisher: string
    recommended:
        memory:
            max: 0
            min: 0
        vCPUs:
            max: 0
            min: 0
    releaseNoteUri: string
    resourceGroupName: string
    tags:
        string: string
GalleryImage 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 GalleryImage resource accepts the following input properties:
- GalleryName string
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- Identifier
Pulumi.Azure Native. Compute. Inputs. Gallery Image Identifier 
- This is the gallery image definition identifier.
- OsState Pulumi.Azure Native. Compute. Operating System State Types 
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- OsType Pulumi.Azure Native. Compute. Operating System Types 
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- ResourceGroup stringName 
- The name of the resource group.
- Architecture
string | Pulumi.Azure Native. Compute. Architecture 
- The architecture of the image. Applicable to OS disks only.
- Description string
- The description of this gallery image definition resource. This property is updatable.
- Disallowed
Pulumi.Azure Native. Compute. Inputs. Disallowed 
- Describes the disallowed disk types.
- EndOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery image definition.
- Features
List<Pulumi.Azure Native. Compute. Inputs. Gallery Image Feature> 
- A list of gallery image features.
- GalleryImage stringName 
- The name of the gallery image 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.
- HyperVGeneration string | Pulumi.Azure Native. Compute. Hyper VGeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location string
- Resource location
- PrivacyStatement stringUri 
- The privacy statement uri.
- PurchasePlan Pulumi.Azure Native. Compute. Inputs. Image Purchase Plan 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- Recommended
Pulumi.Azure Native. Compute. Inputs. Recommended Machine Configuration 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- ReleaseNote stringUri 
- The release note uri.
- Dictionary<string, string>
- Resource tags
- GalleryName string
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- Identifier
GalleryImage Identifier Args 
- This is the gallery image definition identifier.
- OsState OperatingSystem State Types 
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- OsType OperatingSystem Types 
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- ResourceGroup stringName 
- The name of the resource group.
- Architecture string | Architecture
- The architecture of the image. Applicable to OS disks only.
- Description string
- The description of this gallery image definition resource. This property is updatable.
- Disallowed
DisallowedArgs 
- Describes the disallowed disk types.
- EndOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- Eula string
- The Eula agreement for the gallery image definition.
- Features
[]GalleryImage Feature Args 
- A list of gallery image features.
- GalleryImage stringName 
- The name of the gallery image 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.
- HyperVGeneration string | HyperVGeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- Location string
- Resource location
- PrivacyStatement stringUri 
- The privacy statement uri.
- PurchasePlan ImagePurchase Plan Args 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- Recommended
RecommendedMachine Configuration Args 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- ReleaseNote stringUri 
- The release note uri.
- map[string]string
- Resource tags
- galleryName String
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- identifier
GalleryImage Identifier 
- This is the gallery image definition identifier.
- osState OperatingSystem State Types 
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType OperatingSystem Types 
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- resourceGroup StringName 
- The name of the resource group.
- architecture String | Architecture
- The architecture of the image. Applicable to OS disks only.
- description String
- The description of this gallery image definition resource. This property is updatable.
- disallowed Disallowed
- Describes the disallowed disk types.
- endOf StringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery image definition.
- features
List<GalleryImage Feature> 
- A list of gallery image features.
- galleryImage StringName 
- The name of the gallery image 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.
- hyperVGeneration String | HyperVGeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location String
- Resource location
- privacyStatement StringUri 
- The privacy statement uri.
- purchasePlan ImagePurchase Plan 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote StringUri 
- The release note uri.
- Map<String,String>
- Resource tags
- galleryName string
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- identifier
GalleryImage Identifier 
- This is the gallery image definition identifier.
- osState OperatingSystem State Types 
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType OperatingSystem Types 
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- resourceGroup stringName 
- The name of the resource group.
- architecture string | Architecture
- The architecture of the image. Applicable to OS disks only.
- description string
- The description of this gallery image definition resource. This property is updatable.
- disallowed Disallowed
- Describes the disallowed disk types.
- endOf stringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula string
- The Eula agreement for the gallery image definition.
- features
GalleryImage Feature[] 
- A list of gallery image features.
- galleryImage stringName 
- The name of the gallery image 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.
- hyperVGeneration string | HyperVGeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location string
- Resource location
- privacyStatement stringUri 
- The privacy statement uri.
- purchasePlan ImagePurchase Plan 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote stringUri 
- The release note uri.
- {[key: string]: string}
- Resource tags
- gallery_name str
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- identifier
GalleryImage Identifier Args 
- This is the gallery image definition identifier.
- os_state OperatingSystem State Types 
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- os_type OperatingSystem Types 
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- resource_group_ strname 
- The name of the resource group.
- architecture str | Architecture
- The architecture of the image. Applicable to OS disks only.
- description str
- The description of this gallery image definition resource. This property is updatable.
- disallowed
DisallowedArgs 
- Describes the disallowed disk types.
- end_of_ strlife_ date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula str
- The Eula agreement for the gallery image definition.
- features
Sequence[GalleryImage Feature Args] 
- A list of gallery image features.
- gallery_image_ strname 
- The name of the gallery image 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.
- hyper_v_ str | Hypergeneration VGeneration 
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location str
- Resource location
- privacy_statement_ struri 
- The privacy statement uri.
- purchase_plan ImagePurchase Plan Args 
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended
RecommendedMachine Configuration Args 
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- release_note_ struri 
- The release note uri.
- Mapping[str, str]
- Resource tags
- galleryName String
- The name of the Shared Image Gallery in which the Image Definition is to be created.
- identifier Property Map
- This is the gallery image definition identifier.
- osState "Generalized" | "Specialized"
- This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
- osType "Windows" | "Linux"
- This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows Linux
- resourceGroup StringName 
- The name of the resource group.
- architecture String | "x64" | "Arm64"
- The architecture of the image. Applicable to OS disks only.
- description String
- The description of this gallery image definition resource. This property is updatable.
- disallowed Property Map
- Describes the disallowed disk types.
- endOf StringLife Date 
- The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
- eula String
- The Eula agreement for the gallery image definition.
- features List<Property Map>
- A list of gallery image features.
- galleryImage StringName 
- The name of the gallery image 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.
- hyperVGeneration String | "V1" | "V2"
- The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
- location String
- Resource location
- privacyStatement StringUri 
- The privacy statement uri.
- purchasePlan Property Map
- Describes the gallery image definition purchase plan. This is used by marketplace images.
- recommended Property Map
- The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
- releaseNote StringUri 
- The release note uri.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryImage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- ProvisioningState string
- The provisioning state, which only appears in the response.
- Type string
- Resource type
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- ProvisioningState string
- The provisioning state, which only appears in the response.
- Type string
- Resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- provisioningState String
- The provisioning state, which only appears in the response.
- type String
- Resource type
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- provisioningState string
- The provisioning state, which only appears in the response.
- type string
- Resource type
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name
- provisioning_state str
- The provisioning state, which only appears in the response.
- type str
- Resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- provisioningState String
- The provisioning state, which only appears in the response.
- type String
- Resource type
Supporting Types
Architecture, ArchitectureArgs  
- X64
- x64
- Arm64
- Arm64
- ArchitectureX64 
- x64
- ArchitectureArm64 
- Arm64
- X64
- x64
- Arm64
- Arm64
- X64
- x64
- Arm64
- Arm64
- X64
- x64
- ARM64
- Arm64
- "x64"
- x64
- "Arm64"
- Arm64
Disallowed, DisallowedArgs  
- DiskTypes List<string>
- A list of disk types.
- DiskTypes []string
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
- diskTypes string[]
- A list of disk types.
- disk_types Sequence[str]
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
DisallowedResponse, DisallowedResponseArgs    
- DiskTypes List<string>
- A list of disk types.
- DiskTypes []string
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
- diskTypes string[]
- A list of disk types.
- disk_types Sequence[str]
- A list of disk types.
- diskTypes List<String>
- A list of disk types.
GalleryImageFeature, GalleryImageFeatureArgs      
GalleryImageFeatureResponse, GalleryImageFeatureResponseArgs        
GalleryImageIdentifier, GalleryImageIdentifierArgs      
GalleryImageIdentifierResponse, GalleryImageIdentifierResponseArgs        
HyperVGeneration, HyperVGenerationArgs    
- V1
- V1
- V2
- V2
- HyperVGeneration V1 
- V1
- HyperVGeneration V2 
- V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- "V1"
- V1
- "V2"
- V2
ImagePurchasePlan, ImagePurchasePlanArgs      
ImagePurchasePlanResponse, ImagePurchasePlanResponseArgs        
OperatingSystemStateTypes, OperatingSystemStateTypesArgs        
- Generalized
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- Specialized
- SpecializedSpecialized image. Contains already provisioned OS Disk.
- OperatingSystem State Types Generalized 
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- OperatingSystem State Types Specialized 
- SpecializedSpecialized image. Contains already provisioned OS Disk.
- Generalized
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- Specialized
- SpecializedSpecialized image. Contains already provisioned OS Disk.
- Generalized
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- Specialized
- SpecializedSpecialized image. Contains already provisioned OS Disk.
- GENERALIZED
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- SPECIALIZED
- SpecializedSpecialized image. Contains already provisioned OS Disk.
- "Generalized"
- GeneralizedGeneralized image. Needs to be provisioned during deployment time.
- "Specialized"
- SpecializedSpecialized image. Contains already provisioned OS Disk.
OperatingSystemTypes, OperatingSystemTypesArgs      
- Windows
- Windows
- Linux
- Linux
- OperatingSystem Types Windows 
- Windows
- OperatingSystem Types Linux 
- Linux
- Windows
- Windows
- Linux
- Linux
- Windows
- Windows
- Linux
- Linux
- WINDOWS
- Windows
- LINUX
- Linux
- "Windows"
- Windows
- "Linux"
- Linux
RecommendedMachineConfiguration, RecommendedMachineConfigurationArgs      
- Memory
Pulumi.Azure Native. Compute. Inputs. Resource Range 
- Describes the resource range.
- VCPUs
Pulumi.Azure Native. Compute. Inputs. Resource Range 
- Describes the resource range.
- Memory
ResourceRange 
- Describes the resource range.
- VCPUs
ResourceRange 
- Describes the resource range.
- memory
ResourceRange 
- Describes the resource range.
- vCPUs ResourceRange 
- Describes the resource range.
- memory
ResourceRange 
- Describes the resource range.
- vCPUs ResourceRange 
- Describes the resource range.
- memory
ResourceRange 
- Describes the resource range.
- v_cpus ResourceRange 
- Describes the resource range.
- memory Property Map
- Describes the resource range.
- vCPUs Property Map
- Describes the resource range.
RecommendedMachineConfigurationResponse, RecommendedMachineConfigurationResponseArgs        
- Memory
Pulumi.Azure Native. Compute. Inputs. Resource Range Response 
- Describes the resource range.
- VCPUs
Pulumi.Azure Native. Compute. Inputs. Resource Range Response 
- Describes the resource range.
- Memory
ResourceRange Response 
- Describes the resource range.
- VCPUs
ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- vCPUs ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- vCPUs ResourceRange Response 
- Describes the resource range.
- memory
ResourceRange Response 
- Describes the resource range.
- v_cpus ResourceRange Response 
- Describes the resource range.
- memory Property Map
- Describes the resource range.
- vCPUs Property Map
- Describes the resource range.
ResourceRange, ResourceRangeArgs    
ResourceRangeResponse, ResourceRangeResponseArgs      
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:compute:GalleryImage myGalleryImageName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0