1. Packages
  2. Azure Native v2
  3. API Docs
  4. compute
  5. GalleryImageVersion
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.compute.GalleryImageVersion

Explore with Pulumi AI

Specifies information about the gallery image version 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

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 2,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(2),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(2)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 2,
            },
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 2,
            },
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 2
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                CommunityGalleryImageId = "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					CommunityGalleryImageId: pulumi.String("/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .communityGalleryImageId("/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            communityGalleryImageId: "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "community_gallery_image_id": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          communityGalleryImageId: /communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            DataDiskImages = new[]
            {
                new AzureNative.Compute.Inputs.GalleryDataDiskImageArgs
                {
                    HostCaching = AzureNative.Compute.HostCaching.None,
                    Lun = 1,
                    Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
                    {
                        Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}",
                    },
                },
            },
            OsDiskImage = new AzureNative.Compute.Inputs.GalleryOSDiskImageArgs
            {
                HostCaching = AzureNative.Compute.HostCaching.ReadOnly,
                Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
                {
                    Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}",
                },
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				DataDiskImages: compute.GalleryDataDiskImageArray{
					&compute.GalleryDataDiskImageArgs{
						HostCaching: compute.HostCachingNone,
						Lun:         pulumi.Int(1),
						Source: &compute.GalleryDiskImageSourceArgs{
							Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}"),
						},
					},
				},
				OsDiskImage: &compute.GalleryOSDiskImageArgs{
					HostCaching: compute.HostCachingReadOnly,
					Source: &compute.GalleryDiskImageSourceArgs{
						Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryOSDiskImageArgs;
import com.pulumi.azurenative.compute.inputs.GalleryDiskImageSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(DataDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .lun(1)
                                .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(DataDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .lun(1)
                                .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .dataDiskImages(GalleryDataDiskImageArgs.builder()
                    .hostCaching("None")
                    .lun(1)
                    .source(GalleryDiskImageSourceArgs.builder()
                        .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}")
                        .build())
                    .build())
                .osDiskImage(GalleryOSDiskImageArgs.builder()
                    .hostCaching("ReadOnly")
                    .source(GalleryDiskImageSourceArgs.builder()
                        .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}")
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [{
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        lun: 1,
                    }],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                encryption: {
                    dataDiskImages: [{
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        lun: 1,
                    }],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        dataDiskImages: [{
            hostCaching: azure_native.compute.HostCaching.None,
            lun: 1,
            source: {
                id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}",
            },
        }],
        osDiskImage: {
            hostCaching: azure_native.compute.HostCaching.ReadOnly,
            source: {
                id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}",
            },
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [{
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        "lun": 1,
                    }],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "encryption": {
                    "data_disk_images": [{
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        "lun": 1,
                    }],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "data_disk_images": [{
            "host_caching": azure_native.compute.HostCaching.NONE,
            "lun": 1,
            "source": {
                "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}",
            },
        }],
        "os_disk_image": {
            "host_caching": azure_native.compute.HostCaching.READ_ONLY,
            "source": {
                "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}",
            },
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        dataDiskImages:
          - hostCaching: None
            lun: 1
            source:
              id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}
        osDiskImage:
          hostCaching: ReadOnly
          source:
            id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            ReplicationMode = AzureNative.Compute.ReplicationMode.Shallow,
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				ReplicationMode: pulumi.String(compute.ReplicationModeShallow),
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .replicationMode("Shallow")
                .targetRegions(TargetRegionArgs.builder()
                    .excludeFromLatest(false)
                    .name("West US")
                    .regionalReplicaCount(1)
                    .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        replicationMode: azure_native.compute.ReplicationMode.Shallow,
        targetRegions: [{
            excludeFromLatest: false,
            name: "West US",
            regionalReplicaCount: 1,
        }],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "replication_mode": azure_native.compute.ReplicationMode.SHALLOW,
        "target_regions": [{
            "exclude_from_latest": False,
            "name": "West US",
            "regional_replica_count": 1,
        }],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        replicationMode: Shallow
        targetRegions:
          - excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            DataDiskImages = new[]
            {
                new AzureNative.Compute.Inputs.GalleryDataDiskImageArgs
                {
                    HostCaching = AzureNative.Compute.HostCaching.None,
                    Lun = 1,
                    Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
                    {
                        Id = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                        Uri = "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
                    },
                },
            },
            OsDiskImage = new AzureNative.Compute.Inputs.GalleryOSDiskImageArgs
            {
                HostCaching = AzureNative.Compute.HostCaching.ReadOnly,
                Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
                {
                    Id = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                    Uri = "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
                },
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				DataDiskImages: compute.GalleryDataDiskImageArray{
					&compute.GalleryDataDiskImageArgs{
						HostCaching: compute.HostCachingNone,
						Lun:         pulumi.Int(1),
						Source: &compute.GalleryDiskImageSourceArgs{
							Id:  pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"),
							Uri: pulumi.String("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"),
						},
					},
				},
				OsDiskImage: &compute.GalleryOSDiskImageArgs{
					HostCaching: compute.HostCachingReadOnly,
					Source: &compute.GalleryDiskImageSourceArgs{
						Id:  pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"),
						Uri: pulumi.String("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryOSDiskImageArgs;
import com.pulumi.azurenative.compute.inputs.GalleryDiskImageSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(DataDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet")
                                .lun(1)
                                .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .dataDiskImages(GalleryDataDiskImageArgs.builder()
                    .hostCaching("None")
                    .lun(1)
                    .source(GalleryDiskImageSourceArgs.builder()
                        .id("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}")
                        .uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd")
                        .build())
                    .build())
                .osDiskImage(GalleryOSDiskImageArgs.builder()
                    .hostCaching("ReadOnly")
                    .source(GalleryDiskImageSourceArgs.builder()
                        .id("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}")
                        .uri("https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd")
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [{
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet",
                        lun: 1,
                    }],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        dataDiskImages: [{
            hostCaching: azure_native.compute.HostCaching.None,
            lun: 1,
            source: {
                id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
            },
        }],
        osDiskImage: {
            hostCaching: azure_native.compute.HostCaching.ReadOnly,
            source: {
                id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
            },
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [{
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet",
                        "lun": 1,
                    }],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "data_disk_images": [{
            "host_caching": azure_native.compute.HostCaching.NONE,
            "lun": 1,
            "source": {
                "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
            },
        }],
        "os_disk_image": {
            "host_caching": azure_native.compute.HostCaching.READ_ONLY,
            "source": {
                "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
                "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
            },
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        dataDiskImages:
          - hostCaching: None
            lun: 1
            source:
              id: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}
              uri: https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd
        osDiskImage:
          hostCaching: ReadOnly
          source:
            id: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}
            uri: https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryImageVersion = new AzureNative.Compute.GalleryImageVersion("galleryImageVersion", new()
    {
        GalleryImageName = "myGalleryImageName",
        GalleryImageVersionName = "1.0.0",
        GalleryName = "myGalleryName",
        Location = "West US",
        PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
        {
            TargetRegions = new[]
            {
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "West US",
                    RegionalReplicaCount = 1,
                },
                new AzureNative.Compute.Inputs.TargetRegionArgs
                {
                    Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
                    {
                        DataDiskImages = new[]
                        {
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                                Lun = 0,
                            },
                            new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
                            {
                                DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                                Lun = 1,
                            },
                        },
                        OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
                        {
                            DiskEncryptionSetId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                        },
                    },
                    ExcludeFromLatest = false,
                    Name = "East US",
                    RegionalReplicaCount = 2,
                    StorageAccountType = AzureNative.Compute.StorageAccountType.Standard_ZRS,
                },
            },
        },
        ResourceGroupName = "myResourceGroup",
        SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
        {
            AllowDeletionOfReplicatedLocations = false,
        },
        StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
        {
            Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
            {
                Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
            },
        },
    });

});
Copy
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.NewGalleryImageVersion(ctx, "galleryImageVersion", &compute.GalleryImageVersionArgs{
			GalleryImageName:        pulumi.String("myGalleryImageName"),
			GalleryImageVersionName: pulumi.String("1.0.0"),
			GalleryName:             pulumi.String("myGalleryName"),
			Location:                pulumi.String("West US"),
			PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
				TargetRegions: compute.TargetRegionArray{
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("West US"),
						RegionalReplicaCount: pulumi.Int(1),
					},
					&compute.TargetRegionArgs{
						Encryption: &compute.EncryptionImagesArgs{
							DataDiskImages: compute.DataDiskImageEncryptionArray{
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(0),
								},
								&compute.DataDiskImageEncryptionArgs{
									DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
									Lun:                 pulumi.Int(1),
								},
							},
							OsDiskImage: &compute.OSDiskImageEncryptionArgs{
								DiskEncryptionSetId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
							},
						},
						ExcludeFromLatest:    pulumi.Bool(false),
						Name:                 pulumi.String("East US"),
						RegionalReplicaCount: pulumi.Int(2),
						StorageAccountType:   pulumi.String(compute.StorageAccountType_Standard_ZRS),
					},
				},
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
			SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
				AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
			},
			StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
				Source: &compute.GalleryArtifactVersionFullSourceArgs{
					Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImageVersion;
import com.pulumi.azurenative.compute.GalleryImageVersionArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionPublishingProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionSafetyProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionStorageProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryArtifactVersionFullSourceArgs;
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 galleryImageVersion = new GalleryImageVersion("galleryImageVersion", GalleryImageVersionArgs.builder()
            .galleryImageName("myGalleryImageName")
            .galleryImageVersionName("1.0.0")
            .galleryName("myGalleryName")
            .location("West US")
            .publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
                .targetRegions(                
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("West US")
                        .regionalReplicaCount(1)
                        .build(),
                    TargetRegionArgs.builder()
                        .encryption(EncryptionImagesArgs.builder()
                            .dataDiskImages(                            
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet")
                                    .lun(0)
                                    .build(),
                                DataDiskImageEncryptionArgs.builder()
                                    .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                    .lun(1)
                                    .build())
                            .osDiskImage(OSDiskImageEncryptionArgs.builder()
                                .diskEncryptionSetId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet")
                                .build())
                            .build())
                        .excludeFromLatest(false)
                        .name("East US")
                        .regionalReplicaCount(2)
                        .storageAccountType("Standard_ZRS")
                        .build())
                .build())
            .resourceGroupName("myResourceGroup")
            .safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
                .allowDeletionOfReplicatedLocations(false)
                .build())
            .storageProfile(GalleryImageVersionStorageProfileArgs.builder()
                .source(GalleryArtifactVersionFullSourceArgs.builder()
                    .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
                    .build())
                .build())
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryImageVersion = new azure_native.compute.GalleryImageVersion("galleryImageVersion", {
    galleryImageName: "myGalleryImageName",
    galleryImageVersionName: "1.0.0",
    galleryName: "myGalleryName",
    location: "West US",
    publishingProfile: {
        targetRegions: [
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "West US",
                regionalReplicaCount: 1,
            },
            {
                encryption: {
                    dataDiskImages: [
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            lun: 0,
                        },
                        {
                            diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            lun: 1,
                        },
                    ],
                    osDiskImage: {
                        diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                excludeFromLatest: false,
                name: "East US",
                regionalReplicaCount: 2,
                storageAccountType: azure_native.compute.StorageAccountType.Standard_ZRS,
            },
        ],
    },
    resourceGroupName: "myResourceGroup",
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    storageProfile: {
        source: {
            id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_image_version = azure_native.compute.GalleryImageVersion("galleryImageVersion",
    gallery_image_name="myGalleryImageName",
    gallery_image_version_name="1.0.0",
    gallery_name="myGalleryName",
    location="West US",
    publishing_profile={
        "target_regions": [
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "West US",
                "regional_replica_count": 1,
            },
            {
                "encryption": {
                    "data_disk_images": [
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
                            "lun": 0,
                        },
                        {
                            "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                            "lun": 1,
                        },
                    ],
                    "os_disk_image": {
                        "disk_encryption_set_id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
                    },
                },
                "exclude_from_latest": False,
                "name": "East US",
                "regional_replica_count": 2,
                "storage_account_type": azure_native.compute.StorageAccountType.STANDARD_ZRS,
            },
        ],
    },
    resource_group_name="myResourceGroup",
    safety_profile={
        "allow_deletion_of_replicated_locations": False,
    },
    storage_profile={
        "source": {
            "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
        },
    })
Copy
resources:
  galleryImageVersion:
    type: azure-native:compute:GalleryImageVersion
    properties:
      galleryImageName: myGalleryImageName
      galleryImageVersionName: 1.0.0
      galleryName: myGalleryName
      location: West US
      publishingProfile:
        targetRegions:
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet
            excludeFromLatest: false
            name: West US
            regionalReplicaCount: 1
          - encryption:
              dataDiskImages:
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet
                  lun: 0
                - diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
                  lun: 1
              osDiskImage:
                diskEncryptionSetId: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet
            excludeFromLatest: false
            name: East US
            regionalReplicaCount: 2
            storageAccountType: Standard_ZRS
      resourceGroupName: myResourceGroup
      safetyProfile:
        allowDeletionOfReplicatedLocations: false
      storageProfile:
        source:
          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
Copy

Create GalleryImageVersion Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GalleryImageVersion(name: string, args: GalleryImageVersionArgs, opts?: CustomResourceOptions);
@overload
def GalleryImageVersion(resource_name: str,
                        args: GalleryImageVersionArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def GalleryImageVersion(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        gallery_image_name: Optional[str] = None,
                        gallery_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        storage_profile: Optional[GalleryImageVersionStorageProfileArgs] = None,
                        gallery_image_version_name: Optional[str] = None,
                        location: Optional[str] = None,
                        publishing_profile: Optional[GalleryImageVersionPublishingProfileArgs] = None,
                        safety_profile: Optional[GalleryImageVersionSafetyProfileArgs] = None,
                        tags: Optional[Mapping[str, str]] = None)
func NewGalleryImageVersion(ctx *Context, name string, args GalleryImageVersionArgs, opts ...ResourceOption) (*GalleryImageVersion, error)
public GalleryImageVersion(string name, GalleryImageVersionArgs args, CustomResourceOptions? opts = null)
public GalleryImageVersion(String name, GalleryImageVersionArgs args)
public GalleryImageVersion(String name, GalleryImageVersionArgs args, CustomResourceOptions options)
type: azure-native:compute:GalleryImageVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GalleryImageVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GalleryImageVersionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GalleryImageVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GalleryImageVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GalleryImageVersionArgs
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 galleryImageVersionResource = new AzureNative.Compute.GalleryImageVersion("galleryImageVersionResource", new()
{
    GalleryImageName = "string",
    GalleryName = "string",
    ResourceGroupName = "string",
    StorageProfile = 
    {
        { "dataDiskImages", new[]
        {
            
            {
                { "lun", 0 },
                { "hostCaching", "None" },
                { "source", 
                {
                    { "id", "string" },
                    { "storageAccountId", "string" },
                    { "uri", "string" },
                } },
            },
        } },
        { "osDiskImage", 
        {
            { "hostCaching", "None" },
            { "source", 
            {
                { "id", "string" },
                { "storageAccountId", "string" },
                { "uri", "string" },
            } },
        } },
        { "source", 
        {
            { "communityGalleryImageId", "string" },
            { "id", "string" },
        } },
    },
    GalleryImageVersionName = "string",
    Location = "string",
    PublishingProfile = 
    {
        { "endOfLifeDate", "string" },
        { "excludeFromLatest", false },
        { "replicaCount", 0 },
        { "replicationMode", "string" },
        { "storageAccountType", "string" },
        { "targetExtendedLocations", new[]
        {
            
            {
                { "encryption", 
                {
                    { "dataDiskImages", new[]
                    {
                        
                        {
                            { "lun", 0 },
                            { "diskEncryptionSetId", "string" },
                        },
                    } },
                    { "osDiskImage", 
                    {
                        { "diskEncryptionSetId", "string" },
                        { "securityProfile", 
                        {
                            { "confidentialVMEncryptionType", "string" },
                            { "secureVMDiskEncryptionSetId", "string" },
                        } },
                    } },
                } },
                { "extendedLocation", 
                {
                    { "name", "string" },
                    { "type", "string" },
                } },
                { "extendedLocationReplicaCount", 0 },
                { "name", "string" },
                { "storageAccountType", "string" },
            },
        } },
        { "targetRegions", new[]
        {
            
            {
                { "name", "string" },
                { "additionalReplicaSets", new[]
                {
                    
                    {
                        { "regionalReplicaCount", 0 },
                        { "storageAccountType", "string" },
                    },
                } },
                { "encryption", 
                {
                    { "dataDiskImages", new[]
                    {
                        
                        {
                            { "lun", 0 },
                            { "diskEncryptionSetId", "string" },
                        },
                    } },
                    { "osDiskImage", 
                    {
                        { "diskEncryptionSetId", "string" },
                        { "securityProfile", 
                        {
                            { "confidentialVMEncryptionType", "string" },
                            { "secureVMDiskEncryptionSetId", "string" },
                        } },
                    } },
                } },
                { "excludeFromLatest", false },
                { "regionalReplicaCount", 0 },
                { "storageAccountType", "string" },
            },
        } },
    },
    SafetyProfile = 
    {
        { "allowDeletionOfReplicatedLocations", false },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := compute.NewGalleryImageVersion(ctx, "galleryImageVersionResource", &compute.GalleryImageVersionArgs{
	GalleryImageName:  "string",
	GalleryName:       "string",
	ResourceGroupName: "string",
	StorageProfile: map[string]interface{}{
		"dataDiskImages": []map[string]interface{}{
			map[string]interface{}{
				"lun":         0,
				"hostCaching": "None",
				"source": map[string]interface{}{
					"id":               "string",
					"storageAccountId": "string",
					"uri":              "string",
				},
			},
		},
		"osDiskImage": map[string]interface{}{
			"hostCaching": "None",
			"source": map[string]interface{}{
				"id":               "string",
				"storageAccountId": "string",
				"uri":              "string",
			},
		},
		"source": map[string]interface{}{
			"communityGalleryImageId": "string",
			"id":                      "string",
		},
	},
	GalleryImageVersionName: "string",
	Location:                "string",
	PublishingProfile: map[string]interface{}{
		"endOfLifeDate":      "string",
		"excludeFromLatest":  false,
		"replicaCount":       0,
		"replicationMode":    "string",
		"storageAccountType": "string",
		"targetExtendedLocations": []map[string]interface{}{
			map[string]interface{}{
				"encryption": map[string]interface{}{
					"dataDiskImages": []map[string]interface{}{
						map[string]interface{}{
							"lun":                 0,
							"diskEncryptionSetId": "string",
						},
					},
					"osDiskImage": map[string]interface{}{
						"diskEncryptionSetId": "string",
						"securityProfile": map[string]interface{}{
							"confidentialVMEncryptionType": "string",
							"secureVMDiskEncryptionSetId":  "string",
						},
					},
				},
				"extendedLocation": map[string]interface{}{
					"name": "string",
					"type": "string",
				},
				"extendedLocationReplicaCount": 0,
				"name":                         "string",
				"storageAccountType":           "string",
			},
		},
		"targetRegions": []map[string]interface{}{
			map[string]interface{}{
				"name": "string",
				"additionalReplicaSets": []map[string]interface{}{
					map[string]interface{}{
						"regionalReplicaCount": 0,
						"storageAccountType":   "string",
					},
				},
				"encryption": map[string]interface{}{
					"dataDiskImages": []map[string]interface{}{
						map[string]interface{}{
							"lun":                 0,
							"diskEncryptionSetId": "string",
						},
					},
					"osDiskImage": map[string]interface{}{
						"diskEncryptionSetId": "string",
						"securityProfile": map[string]interface{}{
							"confidentialVMEncryptionType": "string",
							"secureVMDiskEncryptionSetId":  "string",
						},
					},
				},
				"excludeFromLatest":    false,
				"regionalReplicaCount": 0,
				"storageAccountType":   "string",
			},
		},
	},
	SafetyProfile: map[string]interface{}{
		"allowDeletionOfReplicatedLocations": false,
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var galleryImageVersionResource = new GalleryImageVersion("galleryImageVersionResource", GalleryImageVersionArgs.builder()
    .galleryImageName("string")
    .galleryName("string")
    .resourceGroupName("string")
    .storageProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .galleryImageVersionName("string")
    .location("string")
    .publishingProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .safetyProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
gallery_image_version_resource = azure_native.compute.GalleryImageVersion("galleryImageVersionResource",
    gallery_image_name=string,
    gallery_name=string,
    resource_group_name=string,
    storage_profile={
        dataDiskImages: [{
            lun: 0,
            hostCaching: None,
            source: {
                id: string,
                storageAccountId: string,
                uri: string,
            },
        }],
        osDiskImage: {
            hostCaching: None,
            source: {
                id: string,
                storageAccountId: string,
                uri: string,
            },
        },
        source: {
            communityGalleryImageId: string,
            id: string,
        },
    },
    gallery_image_version_name=string,
    location=string,
    publishing_profile={
        endOfLifeDate: string,
        excludeFromLatest: False,
        replicaCount: 0,
        replicationMode: string,
        storageAccountType: string,
        targetExtendedLocations: [{
            encryption: {
                dataDiskImages: [{
                    lun: 0,
                    diskEncryptionSetId: string,
                }],
                osDiskImage: {
                    diskEncryptionSetId: string,
                    securityProfile: {
                        confidentialVMEncryptionType: string,
                        secureVMDiskEncryptionSetId: string,
                    },
                },
            },
            extendedLocation: {
                name: string,
                type: string,
            },
            extendedLocationReplicaCount: 0,
            name: string,
            storageAccountType: string,
        }],
        targetRegions: [{
            name: string,
            additionalReplicaSets: [{
                regionalReplicaCount: 0,
                storageAccountType: string,
            }],
            encryption: {
                dataDiskImages: [{
                    lun: 0,
                    diskEncryptionSetId: string,
                }],
                osDiskImage: {
                    diskEncryptionSetId: string,
                    securityProfile: {
                        confidentialVMEncryptionType: string,
                        secureVMDiskEncryptionSetId: string,
                    },
                },
            },
            excludeFromLatest: False,
            regionalReplicaCount: 0,
            storageAccountType: string,
        }],
    },
    safety_profile={
        allowDeletionOfReplicatedLocations: False,
    },
    tags={
        string: string,
    })
Copy
const galleryImageVersionResource = new azure_native.compute.GalleryImageVersion("galleryImageVersionResource", {
    galleryImageName: "string",
    galleryName: "string",
    resourceGroupName: "string",
    storageProfile: {
        dataDiskImages: [{
            lun: 0,
            hostCaching: "None",
            source: {
                id: "string",
                storageAccountId: "string",
                uri: "string",
            },
        }],
        osDiskImage: {
            hostCaching: "None",
            source: {
                id: "string",
                storageAccountId: "string",
                uri: "string",
            },
        },
        source: {
            communityGalleryImageId: "string",
            id: "string",
        },
    },
    galleryImageVersionName: "string",
    location: "string",
    publishingProfile: {
        endOfLifeDate: "string",
        excludeFromLatest: false,
        replicaCount: 0,
        replicationMode: "string",
        storageAccountType: "string",
        targetExtendedLocations: [{
            encryption: {
                dataDiskImages: [{
                    lun: 0,
                    diskEncryptionSetId: "string",
                }],
                osDiskImage: {
                    diskEncryptionSetId: "string",
                    securityProfile: {
                        confidentialVMEncryptionType: "string",
                        secureVMDiskEncryptionSetId: "string",
                    },
                },
            },
            extendedLocation: {
                name: "string",
                type: "string",
            },
            extendedLocationReplicaCount: 0,
            name: "string",
            storageAccountType: "string",
        }],
        targetRegions: [{
            name: "string",
            additionalReplicaSets: [{
                regionalReplicaCount: 0,
                storageAccountType: "string",
            }],
            encryption: {
                dataDiskImages: [{
                    lun: 0,
                    diskEncryptionSetId: "string",
                }],
                osDiskImage: {
                    diskEncryptionSetId: "string",
                    securityProfile: {
                        confidentialVMEncryptionType: "string",
                        secureVMDiskEncryptionSetId: "string",
                    },
                },
            },
            excludeFromLatest: false,
            regionalReplicaCount: 0,
            storageAccountType: "string",
        }],
    },
    safetyProfile: {
        allowDeletionOfReplicatedLocations: false,
    },
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:compute:GalleryImageVersion
properties:
    galleryImageName: string
    galleryImageVersionName: string
    galleryName: string
    location: string
    publishingProfile:
        endOfLifeDate: string
        excludeFromLatest: false
        replicaCount: 0
        replicationMode: string
        storageAccountType: string
        targetExtendedLocations:
            - encryption:
                dataDiskImages:
                    - diskEncryptionSetId: string
                      lun: 0
                osDiskImage:
                    diskEncryptionSetId: string
                    securityProfile:
                        confidentialVMEncryptionType: string
                        secureVMDiskEncryptionSetId: string
              extendedLocation:
                name: string
                type: string
              extendedLocationReplicaCount: 0
              name: string
              storageAccountType: string
        targetRegions:
            - additionalReplicaSets:
                - regionalReplicaCount: 0
                  storageAccountType: string
              encryption:
                dataDiskImages:
                    - diskEncryptionSetId: string
                      lun: 0
                osDiskImage:
                    diskEncryptionSetId: string
                    securityProfile:
                        confidentialVMEncryptionType: string
                        secureVMDiskEncryptionSetId: string
              excludeFromLatest: false
              name: string
              regionalReplicaCount: 0
              storageAccountType: string
    resourceGroupName: string
    safetyProfile:
        allowDeletionOfReplicatedLocations: false
    storageProfile:
        dataDiskImages:
            - hostCaching: None
              lun: 0
              source:
                id: string
                storageAccountId: string
                uri: string
        osDiskImage:
            hostCaching: None
            source:
                id: string
                storageAccountId: string
                uri: string
        source:
            communityGalleryImageId: string
            id: string
    tags:
        string: string
Copy

GalleryImageVersion 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 GalleryImageVersion resource accepts the following input properties:

GalleryImageName
This property is required.
Changes to this property will trigger replacement.
string
The name of the gallery image definition in which the Image Version is to be created.
GalleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the Image Definition resides.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
StorageProfile This property is required. Pulumi.AzureNative.Compute.Inputs.GalleryImageVersionStorageProfile
This is the storage profile of a Gallery Image Version.
GalleryImageVersionName Changes to this property will trigger replacement. string
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
Location string
Resource location
PublishingProfile Pulumi.AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfile
The publishing profile of a gallery image Version.
SafetyProfile Pulumi.AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfile
This is the safety profile of the Gallery Image Version.
Tags Dictionary<string, string>
Resource tags
GalleryImageName
This property is required.
Changes to this property will trigger replacement.
string
The name of the gallery image definition in which the Image Version is to be created.
GalleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the Image Definition resides.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
StorageProfile This property is required. GalleryImageVersionStorageProfileArgs
This is the storage profile of a Gallery Image Version.
GalleryImageVersionName Changes to this property will trigger replacement. string
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
Location string
Resource location
PublishingProfile GalleryImageVersionPublishingProfileArgs
The publishing profile of a gallery image Version.
SafetyProfile GalleryImageVersionSafetyProfileArgs
This is the safety profile of the Gallery Image Version.
Tags map[string]string
Resource tags
galleryImageName
This property is required.
Changes to this property will trigger replacement.
String
The name of the gallery image definition in which the Image Version is to be created.
galleryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Shared Image Gallery in which the Image Definition resides.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
storageProfile This property is required. GalleryImageVersionStorageProfile
This is the storage profile of a Gallery Image Version.
galleryImageVersionName Changes to this property will trigger replacement. String
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
location String
Resource location
publishingProfile GalleryImageVersionPublishingProfile
The publishing profile of a gallery image Version.
safetyProfile GalleryImageVersionSafetyProfile
This is the safety profile of the Gallery Image Version.
tags Map<String,String>
Resource tags
galleryImageName
This property is required.
Changes to this property will trigger replacement.
string
The name of the gallery image definition in which the Image Version is to be created.
galleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the Image Definition resides.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
storageProfile This property is required. GalleryImageVersionStorageProfile
This is the storage profile of a Gallery Image Version.
galleryImageVersionName Changes to this property will trigger replacement. string
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
location string
Resource location
publishingProfile GalleryImageVersionPublishingProfile
The publishing profile of a gallery image Version.
safetyProfile GalleryImageVersionSafetyProfile
This is the safety profile of the Gallery Image Version.
tags {[key: string]: string}
Resource tags
gallery_image_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the gallery image definition in which the Image Version is to be created.
gallery_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Shared Image Gallery in which the Image Definition resides.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
storage_profile This property is required. GalleryImageVersionStorageProfileArgs
This is the storage profile of a Gallery Image Version.
gallery_image_version_name Changes to this property will trigger replacement. str
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
location str
Resource location
publishing_profile GalleryImageVersionPublishingProfileArgs
The publishing profile of a gallery image Version.
safety_profile GalleryImageVersionSafetyProfileArgs
This is the safety profile of the Gallery Image Version.
tags Mapping[str, str]
Resource tags
galleryImageName
This property is required.
Changes to this property will trigger replacement.
String
The name of the gallery image definition in which the Image Version is to be created.
galleryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Shared Image Gallery in which the Image Definition resides.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
storageProfile This property is required. Property Map
This is the storage profile of a Gallery Image Version.
galleryImageVersionName Changes to this property will trigger replacement. String
The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
location String
Resource location
publishingProfile Property Map
The publishing profile of a gallery image Version.
safetyProfile Property Map
This is the safety profile of the Gallery Image Version.
tags Map<String>
Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the GalleryImageVersion 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.
ReplicationStatus Pulumi.AzureNative.Compute.Outputs.ReplicationStatusResponse
This is the replication status of the gallery image version.
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.
ReplicationStatus ReplicationStatusResponse
This is the replication status of the gallery image version.
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.
replicationStatus ReplicationStatusResponse
This is the replication status of the gallery image version.
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.
replicationStatus ReplicationStatusResponse
This is the replication status of the gallery image version.
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.
replication_status ReplicationStatusResponse
This is the replication status of the gallery image version.
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.
replicationStatus Property Map
This is the replication status of the gallery image version.
type String
Resource type

Supporting Types

AdditionalReplicaSet
, AdditionalReplicaSetArgs

RegionalReplicaCount int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
StorageAccountType string | Pulumi.AzureNative.Compute.StorageAccountType
Specifies the storage account type to be used to create the direct drive replicas
RegionalReplicaCount int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
StorageAccountType string | StorageAccountType
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount Integer
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType String | StorageAccountType
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount number
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType string | StorageAccountType
Specifies the storage account type to be used to create the direct drive replicas
regional_replica_count int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storage_account_type str | StorageAccountType
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount Number
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumV2_LRS"
Specifies the storage account type to be used to create the direct drive replicas

AdditionalReplicaSetResponse
, AdditionalReplicaSetResponseArgs

RegionalReplicaCount int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
StorageAccountType string
Specifies the storage account type to be used to create the direct drive replicas
RegionalReplicaCount int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
StorageAccountType string
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount Integer
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType String
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount number
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType string
Specifies the storage account type to be used to create the direct drive replicas
regional_replica_count int
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storage_account_type str
Specifies the storage account type to be used to create the direct drive replicas
regionalReplicaCount Number
The number of direct drive replicas of the Image Version to be created.This Property is updatable
storageAccountType String
Specifies the storage account type to be used to create the direct drive replicas

ConfidentialVMEncryptionType
, ConfidentialVMEncryptionTypeArgs

EncryptedVMGuestStateOnlyWithPmk
EncryptedVMGuestStateOnlyWithPmk
EncryptedWithPmk
EncryptedWithPmk
EncryptedWithCmk
EncryptedWithCmk
NonPersistedTPM
NonPersistedTPM
ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk
EncryptedVMGuestStateOnlyWithPmk
ConfidentialVMEncryptionTypeEncryptedWithPmk
EncryptedWithPmk
ConfidentialVMEncryptionTypeEncryptedWithCmk
EncryptedWithCmk
ConfidentialVMEncryptionTypeNonPersistedTPM
NonPersistedTPM
EncryptedVMGuestStateOnlyWithPmk
EncryptedVMGuestStateOnlyWithPmk
EncryptedWithPmk
EncryptedWithPmk
EncryptedWithCmk
EncryptedWithCmk
NonPersistedTPM
NonPersistedTPM
EncryptedVMGuestStateOnlyWithPmk
EncryptedVMGuestStateOnlyWithPmk
EncryptedWithPmk
EncryptedWithPmk
EncryptedWithCmk
EncryptedWithCmk
NonPersistedTPM
NonPersistedTPM
ENCRYPTED_VM_GUEST_STATE_ONLY_WITH_PMK
EncryptedVMGuestStateOnlyWithPmk
ENCRYPTED_WITH_PMK
EncryptedWithPmk
ENCRYPTED_WITH_CMK
EncryptedWithCmk
NON_PERSISTED_TPM
NonPersistedTPM
"EncryptedVMGuestStateOnlyWithPmk"
EncryptedVMGuestStateOnlyWithPmk
"EncryptedWithPmk"
EncryptedWithPmk
"EncryptedWithCmk"
EncryptedWithCmk
"NonPersistedTPM"
NonPersistedTPM

DataDiskImageEncryption
, DataDiskImageEncryptionArgs

Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. Integer
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
disk_encryption_set_id str
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. Number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.

DataDiskImageEncryptionResponse
, DataDiskImageEncryptionResponseArgs

Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. Integer
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
disk_encryption_set_id str
A relative URI containing the resource ID of the disk encryption set.
lun This property is required. Number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.

EdgeZoneStorageAccountType
, EdgeZoneStorageAccountTypeArgs

Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
StandardSSD_LRS
StandardSSD_LRS
Premium_LRS
Premium_LRS
EdgeZoneStorageAccountType_Standard_LRS
Standard_LRS
EdgeZoneStorageAccountType_Standard_ZRS
Standard_ZRS
EdgeZoneStorageAccountType_StandardSSD_LRS
StandardSSD_LRS
EdgeZoneStorageAccountType_Premium_LRS
Premium_LRS
Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
StandardSSD_LRS
StandardSSD_LRS
Premium_LRS
Premium_LRS
Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
StandardSSD_LRS
StandardSSD_LRS
Premium_LRS
Premium_LRS
STANDARD_LRS
Standard_LRS
STANDARD_ZRS
Standard_ZRS
STANDARD_SS_D_LRS
StandardSSD_LRS
PREMIUM_LRS
Premium_LRS
"Standard_LRS"
Standard_LRS
"Standard_ZRS"
Standard_ZRS
"StandardSSD_LRS"
StandardSSD_LRS
"Premium_LRS"
Premium_LRS

EncryptionImages
, EncryptionImagesArgs

DataDiskImages List<Pulumi.AzureNative.Compute.Inputs.DataDiskImageEncryption>
A list of encryption specifications for data disk images.
OsDiskImage Pulumi.AzureNative.Compute.Inputs.OSDiskImageEncryption
Contains encryption settings for an OS disk image.
DataDiskImages []DataDiskImageEncryption
A list of encryption specifications for data disk images.
OsDiskImage OSDiskImageEncryption
Contains encryption settings for an OS disk image.
dataDiskImages List<DataDiskImageEncryption>
A list of encryption specifications for data disk images.
osDiskImage OSDiskImageEncryption
Contains encryption settings for an OS disk image.
dataDiskImages DataDiskImageEncryption[]
A list of encryption specifications for data disk images.
osDiskImage OSDiskImageEncryption
Contains encryption settings for an OS disk image.
data_disk_images Sequence[DataDiskImageEncryption]
A list of encryption specifications for data disk images.
os_disk_image OSDiskImageEncryption
Contains encryption settings for an OS disk image.
dataDiskImages List<Property Map>
A list of encryption specifications for data disk images.
osDiskImage Property Map
Contains encryption settings for an OS disk image.

EncryptionImagesResponse
, EncryptionImagesResponseArgs

DataDiskImages List<Pulumi.AzureNative.Compute.Inputs.DataDiskImageEncryptionResponse>
A list of encryption specifications for data disk images.
OsDiskImage Pulumi.AzureNative.Compute.Inputs.OSDiskImageEncryptionResponse
Contains encryption settings for an OS disk image.
DataDiskImages []DataDiskImageEncryptionResponse
A list of encryption specifications for data disk images.
OsDiskImage OSDiskImageEncryptionResponse
Contains encryption settings for an OS disk image.
dataDiskImages List<DataDiskImageEncryptionResponse>
A list of encryption specifications for data disk images.
osDiskImage OSDiskImageEncryptionResponse
Contains encryption settings for an OS disk image.
dataDiskImages DataDiskImageEncryptionResponse[]
A list of encryption specifications for data disk images.
osDiskImage OSDiskImageEncryptionResponse
Contains encryption settings for an OS disk image.
data_disk_images Sequence[DataDiskImageEncryptionResponse]
A list of encryption specifications for data disk images.
os_disk_image OSDiskImageEncryptionResponse
Contains encryption settings for an OS disk image.
dataDiskImages List<Property Map>
A list of encryption specifications for data disk images.
osDiskImage Property Map
Contains encryption settings for an OS disk image.

GalleryArtifactVersionFullSource
, GalleryArtifactVersionFullSourceArgs

CommunityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
CommunityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId String
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
community_gallery_image_id str
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id str
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId String
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.

GalleryArtifactVersionFullSourceResponse
, GalleryArtifactVersionFullSourceResponseArgs

CommunityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
CommunityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId String
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId string
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
community_gallery_image_id str
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id str
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
communityGalleryImageId String
The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.

GalleryDataDiskImage
, GalleryDataDiskImageArgs

Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
HostCaching Pulumi.AzureNative.Compute.HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source Pulumi.AzureNative.Compute.Inputs.GalleryDiskImageSource
The source for the disk image.
Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
HostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source GalleryDiskImageSource
The source for the disk image.
lun This property is required. Integer
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
hostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
lun This property is required. number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
hostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
host_caching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
lun This property is required. Number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
hostCaching "None" | "ReadOnly" | "ReadWrite"
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source Property Map
The source for the disk image.

GalleryDataDiskImageResponse
, GalleryDataDiskImageResponseArgs

Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
SizeInGB This property is required. int
This property indicates the size of the VHD to be created.
HostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source Pulumi.AzureNative.Compute.Inputs.GalleryDiskImageSourceResponse
The source for the disk image.
Lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
SizeInGB This property is required. int
This property indicates the size of the VHD to be created.
HostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source GalleryDiskImageSourceResponse
The source for the disk image.
lun This property is required. Integer
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
sizeInGB This property is required. Integer
This property indicates the size of the VHD to be created.
hostCaching String
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
lun This property is required. number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
sizeInGB This property is required. number
This property indicates the size of the VHD to be created.
hostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
lun This property is required. int
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
size_in_gb This property is required. int
This property indicates the size of the VHD to be created.
host_caching str
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
lun This property is required. Number
This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
sizeInGB This property is required. Number
This property indicates the size of the VHD to be created.
hostCaching String
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source Property Map
The source for the disk image.

GalleryDiskImageSource
, GalleryDiskImageSourceArgs

Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
StorageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
Uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
StorageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
Uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId String
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri String
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id str
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storage_account_id str
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri str
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId String
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri String
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.

GalleryDiskImageSourceResponse
, GalleryDiskImageSourceResponseArgs

Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
StorageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
Uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
Id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
StorageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
Uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId String
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri String
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id string
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId string
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri string
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id str
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storage_account_id str
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri str
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
id String
The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
storageAccountId String
The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
uri String
The uri of the gallery artifact version source. Currently used to specify vhd/blob source.

GalleryExtendedLocation
, GalleryExtendedLocationArgs

Name string
Type string | Pulumi.AzureNative.Compute.GalleryExtendedLocationType
It is type of the extended location.
Name string
Type string | GalleryExtendedLocationType
It is type of the extended location.
name String
type String | GalleryExtendedLocationType
It is type of the extended location.
name string
type string | GalleryExtendedLocationType
It is type of the extended location.
name str
type str | GalleryExtendedLocationType
It is type of the extended location.
name String
type String | "EdgeZone" | "Unknown"
It is type of the extended location.

GalleryExtendedLocationResponse
, GalleryExtendedLocationResponseArgs

Name string
Type string
It is type of the extended location.
Name string
Type string
It is type of the extended location.
name String
type String
It is type of the extended location.
name string
type string
It is type of the extended location.
name str
type str
It is type of the extended location.
name String
type String
It is type of the extended location.

GalleryExtendedLocationType
, GalleryExtendedLocationTypeArgs

EdgeZone
EdgeZone
Unknown
Unknown
GalleryExtendedLocationTypeEdgeZone
EdgeZone
GalleryExtendedLocationTypeUnknown
Unknown
EdgeZone
EdgeZone
Unknown
Unknown
EdgeZone
EdgeZone
Unknown
Unknown
EDGE_ZONE
EdgeZone
UNKNOWN
Unknown
"EdgeZone"
EdgeZone
"Unknown"
Unknown

GalleryImageVersionPublishingProfile
, GalleryImageVersionPublishingProfileArgs

EndOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
ExcludeFromLatest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
ReplicaCount int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
ReplicationMode string | Pulumi.AzureNative.Compute.ReplicationMode
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
StorageAccountType string | Pulumi.AzureNative.Compute.StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
TargetExtendedLocations List<Pulumi.AzureNative.Compute.Inputs.GalleryTargetExtendedLocation>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
TargetRegions List<Pulumi.AzureNative.Compute.Inputs.TargetRegion>
The target regions where the Image Version is going to be replicated to. This property is updatable.
EndOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
ExcludeFromLatest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
ReplicaCount int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
ReplicationMode string | ReplicationMode
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
StorageAccountType string | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
TargetExtendedLocations []GalleryTargetExtendedLocation
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
TargetRegions []TargetRegion
The target regions where the Image Version is going to be replicated to. This property is updatable.
endOfLifeDate String
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest Boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount Integer
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode String | ReplicationMode
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType String | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations List<GalleryTargetExtendedLocation>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions List<TargetRegion>
The target regions where the Image Version is going to be replicated to. This property is updatable.
endOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount number
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode string | ReplicationMode
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType string | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations GalleryTargetExtendedLocation[]
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions TargetRegion[]
The target regions where the Image Version is going to be replicated to. This property is updatable.
end_of_life_date str
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
exclude_from_latest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replica_count int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replication_mode str | ReplicationMode
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storage_account_type str | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
target_extended_locations Sequence[GalleryTargetExtendedLocation]
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
target_regions Sequence[TargetRegion]
The target regions where the Image Version is going to be replicated to. This property is updatable.
endOfLifeDate String
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest Boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount Number
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode String | "Full" | "Shallow"
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumV2_LRS"
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations List<Property Map>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions List<Property Map>
The target regions where the Image Version is going to be replicated to. This property is updatable.

GalleryImageVersionPublishingProfileResponse
, GalleryImageVersionPublishingProfileResponseArgs

PublishedDate This property is required. string
The timestamp for when the gallery image version is published.
EndOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
ExcludeFromLatest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
ReplicaCount int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
ReplicationMode string
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
TargetExtendedLocations List<Pulumi.AzureNative.Compute.Inputs.GalleryTargetExtendedLocationResponse>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
TargetRegions List<Pulumi.AzureNative.Compute.Inputs.TargetRegionResponse>
The target regions where the Image Version is going to be replicated to. This property is updatable.
PublishedDate This property is required. string
The timestamp for when the gallery image version is published.
EndOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
ExcludeFromLatest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
ReplicaCount int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
ReplicationMode string
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
TargetExtendedLocations []GalleryTargetExtendedLocationResponse
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
TargetRegions []TargetRegionResponse
The target regions where the Image Version is going to be replicated to. This property is updatable.
publishedDate This property is required. String
The timestamp for when the gallery image version is published.
endOfLifeDate String
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest Boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount Integer
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode String
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations List<GalleryTargetExtendedLocationResponse>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions List<TargetRegionResponse>
The target regions where the Image Version is going to be replicated to. This property is updatable.
publishedDate This property is required. string
The timestamp for when the gallery image version is published.
endOfLifeDate string
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount number
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode string
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations GalleryTargetExtendedLocationResponse[]
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions TargetRegionResponse[]
The target regions where the Image Version is going to be replicated to. This property is updatable.
published_date This property is required. str
The timestamp for when the gallery image version is published.
end_of_life_date str
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
exclude_from_latest bool
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replica_count int
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replication_mode str
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storage_account_type str
Specifies the storage account type to be used to store the image. This property is not updatable.
target_extended_locations Sequence[GalleryTargetExtendedLocationResponse]
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
target_regions Sequence[TargetRegionResponse]
The target regions where the Image Version is going to be replicated to. This property is updatable.
publishedDate This property is required. String
The timestamp for when the gallery image version is published.
endOfLifeDate String
The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatest Boolean
If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
replicaCount Number
The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
replicationMode String
Optional parameter which specifies the mode to be used for replication. This property is not updatable.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.
targetExtendedLocations List<Property Map>
The target extended locations where the Image Version is going to be replicated to. This property is updatable.
targetRegions List<Property Map>
The target regions where the Image Version is going to be replicated to. This property is updatable.

GalleryImageVersionSafetyProfile
, GalleryImageVersionSafetyProfileArgs

AllowDeletionOfReplicatedLocations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
AllowDeletionOfReplicatedLocations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
allowDeletionOfReplicatedLocations Boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
allowDeletionOfReplicatedLocations boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
allow_deletion_of_replicated_locations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
allowDeletionOfReplicatedLocations Boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.

GalleryImageVersionSafetyProfileResponse
, GalleryImageVersionSafetyProfileResponseArgs

PolicyViolations This property is required. List<Pulumi.AzureNative.Compute.Inputs.PolicyViolationResponse>
A list of Policy Violations that have been reported for this Gallery Image Version.
ReportedForPolicyViolation This property is required. bool
Indicates whether this image has been reported as violating Microsoft's policies.
AllowDeletionOfReplicatedLocations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
PolicyViolations This property is required. []PolicyViolationResponse
A list of Policy Violations that have been reported for this Gallery Image Version.
ReportedForPolicyViolation This property is required. bool
Indicates whether this image has been reported as violating Microsoft's policies.
AllowDeletionOfReplicatedLocations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
policyViolations This property is required. List<PolicyViolationResponse>
A list of Policy Violations that have been reported for this Gallery Image Version.
reportedForPolicyViolation This property is required. Boolean
Indicates whether this image has been reported as violating Microsoft's policies.
allowDeletionOfReplicatedLocations Boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
policyViolations This property is required. PolicyViolationResponse[]
A list of Policy Violations that have been reported for this Gallery Image Version.
reportedForPolicyViolation This property is required. boolean
Indicates whether this image has been reported as violating Microsoft's policies.
allowDeletionOfReplicatedLocations boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
policy_violations This property is required. Sequence[PolicyViolationResponse]
A list of Policy Violations that have been reported for this Gallery Image Version.
reported_for_policy_violation This property is required. bool
Indicates whether this image has been reported as violating Microsoft's policies.
allow_deletion_of_replicated_locations bool
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
policyViolations This property is required. List<Property Map>
A list of Policy Violations that have been reported for this Gallery Image Version.
reportedForPolicyViolation This property is required. Boolean
Indicates whether this image has been reported as violating Microsoft's policies.
allowDeletionOfReplicatedLocations Boolean
Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.

GalleryImageVersionStorageProfile
, GalleryImageVersionStorageProfileArgs

DataDiskImages []GalleryDataDiskImage
A list of data disk images.
OsDiskImage GalleryOSDiskImage
This is the OS disk image.
Source GalleryArtifactVersionFullSource
The source of the gallery artifact version.
dataDiskImages List<GalleryDataDiskImage>
A list of data disk images.
osDiskImage GalleryOSDiskImage
This is the OS disk image.
source GalleryArtifactVersionFullSource
The source of the gallery artifact version.
dataDiskImages GalleryDataDiskImage[]
A list of data disk images.
osDiskImage GalleryOSDiskImage
This is the OS disk image.
source GalleryArtifactVersionFullSource
The source of the gallery artifact version.
data_disk_images Sequence[GalleryDataDiskImage]
A list of data disk images.
os_disk_image GalleryOSDiskImage
This is the OS disk image.
source GalleryArtifactVersionFullSource
The source of the gallery artifact version.
dataDiskImages List<Property Map>
A list of data disk images.
osDiskImage Property Map
This is the OS disk image.
source Property Map
The source of the gallery artifact version.

GalleryImageVersionStorageProfileResponse
, GalleryImageVersionStorageProfileResponseArgs

DataDiskImages []GalleryDataDiskImageResponse
A list of data disk images.
OsDiskImage GalleryOSDiskImageResponse
This is the OS disk image.
Source GalleryArtifactVersionFullSourceResponse
The source of the gallery artifact version.
dataDiskImages List<GalleryDataDiskImageResponse>
A list of data disk images.
osDiskImage GalleryOSDiskImageResponse
This is the OS disk image.
source GalleryArtifactVersionFullSourceResponse
The source of the gallery artifact version.
dataDiskImages GalleryDataDiskImageResponse[]
A list of data disk images.
osDiskImage GalleryOSDiskImageResponse
This is the OS disk image.
source GalleryArtifactVersionFullSourceResponse
The source of the gallery artifact version.
data_disk_images Sequence[GalleryDataDiskImageResponse]
A list of data disk images.
os_disk_image GalleryOSDiskImageResponse
This is the OS disk image.
source GalleryArtifactVersionFullSourceResponse
The source of the gallery artifact version.
dataDiskImages List<Property Map>
A list of data disk images.
osDiskImage Property Map
This is the OS disk image.
source Property Map
The source of the gallery artifact version.

GalleryOSDiskImage
, GalleryOSDiskImageArgs

HostCaching Pulumi.AzureNative.Compute.HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source Pulumi.AzureNative.Compute.Inputs.GalleryDiskImageSource
The source for the disk image.
HostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source GalleryDiskImageSource
The source for the disk image.
hostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
hostCaching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
host_caching HostCaching
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSource
The source for the disk image.
hostCaching "None" | "ReadOnly" | "ReadWrite"
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source Property Map
The source for the disk image.

GalleryOSDiskImageResponse
, GalleryOSDiskImageResponseArgs

SizeInGB This property is required. int
This property indicates the size of the VHD to be created.
HostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source Pulumi.AzureNative.Compute.Inputs.GalleryDiskImageSourceResponse
The source for the disk image.
SizeInGB This property is required. int
This property indicates the size of the VHD to be created.
HostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
Source GalleryDiskImageSourceResponse
The source for the disk image.
sizeInGB This property is required. Integer
This property indicates the size of the VHD to be created.
hostCaching String
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
sizeInGB This property is required. number
This property indicates the size of the VHD to be created.
hostCaching string
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
size_in_gb This property is required. int
This property indicates the size of the VHD to be created.
host_caching str
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source GalleryDiskImageSourceResponse
The source for the disk image.
sizeInGB This property is required. Number
This property indicates the size of the VHD to be created.
hostCaching String
The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
source Property Map
The source for the disk image.

GalleryTargetExtendedLocation
, GalleryTargetExtendedLocationArgs

Encryption Pulumi.AzureNative.Compute.Inputs.EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExtendedLocation Pulumi.AzureNative.Compute.Inputs.GalleryExtendedLocation
The name of the extended location.
ExtendedLocationReplicaCount int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
Name string
The name of the region.
StorageAccountType string | Pulumi.AzureNative.Compute.EdgeZoneStorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
Encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExtendedLocation GalleryExtendedLocation
The name of the extended location.
ExtendedLocationReplicaCount int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
Name string
The name of the region.
StorageAccountType string | EdgeZoneStorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation GalleryExtendedLocation
The name of the extended location.
extendedLocationReplicaCount Integer
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name String
The name of the region.
storageAccountType String | EdgeZoneStorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation GalleryExtendedLocation
The name of the extended location.
extendedLocationReplicaCount number
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name string
The name of the region.
storageAccountType string | EdgeZoneStorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extended_location GalleryExtendedLocation
The name of the extended location.
extended_location_replica_count int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name str
The name of the region.
storage_account_type str | EdgeZoneStorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption Property Map
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation Property Map
The name of the extended location.
extendedLocationReplicaCount Number
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name String
The name of the region.
storageAccountType String | "Standard_LRS" | "Standard_ZRS" | "StandardSSD_LRS" | "Premium_LRS"
Specifies the storage account type to be used to store the image. This property is not updatable.

GalleryTargetExtendedLocationResponse
, GalleryTargetExtendedLocationResponseArgs

Encryption Pulumi.AzureNative.Compute.Inputs.EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExtendedLocation Pulumi.AzureNative.Compute.Inputs.GalleryExtendedLocationResponse
The name of the extended location.
ExtendedLocationReplicaCount int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
Name string
The name of the region.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
Encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExtendedLocation GalleryExtendedLocationResponse
The name of the extended location.
ExtendedLocationReplicaCount int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
Name string
The name of the region.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation GalleryExtendedLocationResponse
The name of the extended location.
extendedLocationReplicaCount Integer
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name String
The name of the region.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation GalleryExtendedLocationResponse
The name of the extended location.
extendedLocationReplicaCount number
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name string
The name of the region.
storageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extended_location GalleryExtendedLocationResponse
The name of the extended location.
extended_location_replica_count int
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name str
The name of the region.
storage_account_type str
Specifies the storage account type to be used to store the image. This property is not updatable.
encryption Property Map
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
extendedLocation Property Map
The name of the extended location.
extendedLocationReplicaCount Number
The number of replicas of the Image Version to be created per extended location. This property is updatable.
name String
The name of the region.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.

HostCaching
, HostCachingArgs

None
None
ReadOnly
ReadOnly
ReadWrite
ReadWrite
HostCachingNone
None
HostCachingReadOnly
ReadOnly
HostCachingReadWrite
ReadWrite
None
None
ReadOnly
ReadOnly
ReadWrite
ReadWrite
None
None
ReadOnly
ReadOnly
ReadWrite
ReadWrite
NONE
None
READ_ONLY
ReadOnly
READ_WRITE
ReadWrite
"None"
None
"ReadOnly"
ReadOnly
"ReadWrite"
ReadWrite

OSDiskImageEncryption
, OSDiskImageEncryptionArgs

DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
SecurityProfile Pulumi.AzureNative.Compute.Inputs.OSDiskImageSecurityProfile
This property specifies the security profile of an OS disk image.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
SecurityProfile OSDiskImageSecurityProfile
This property specifies the security profile of an OS disk image.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
securityProfile OSDiskImageSecurityProfile
This property specifies the security profile of an OS disk image.
diskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
securityProfile OSDiskImageSecurityProfile
This property specifies the security profile of an OS disk image.
disk_encryption_set_id str
A relative URI containing the resource ID of the disk encryption set.
security_profile OSDiskImageSecurityProfile
This property specifies the security profile of an OS disk image.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
securityProfile Property Map
This property specifies the security profile of an OS disk image.

OSDiskImageEncryptionResponse
, OSDiskImageEncryptionResponseArgs

DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
SecurityProfile Pulumi.AzureNative.Compute.Inputs.OSDiskImageSecurityProfileResponse
This property specifies the security profile of an OS disk image.
DiskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
SecurityProfile OSDiskImageSecurityProfileResponse
This property specifies the security profile of an OS disk image.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
securityProfile OSDiskImageSecurityProfileResponse
This property specifies the security profile of an OS disk image.
diskEncryptionSetId string
A relative URI containing the resource ID of the disk encryption set.
securityProfile OSDiskImageSecurityProfileResponse
This property specifies the security profile of an OS disk image.
disk_encryption_set_id str
A relative URI containing the resource ID of the disk encryption set.
security_profile OSDiskImageSecurityProfileResponse
This property specifies the security profile of an OS disk image.
diskEncryptionSetId String
A relative URI containing the resource ID of the disk encryption set.
securityProfile Property Map
This property specifies the security profile of an OS disk image.

OSDiskImageSecurityProfile
, OSDiskImageSecurityProfileArgs

ConfidentialVMEncryptionType string | Pulumi.AzureNative.Compute.ConfidentialVMEncryptionType
confidential VM encryption types
SecureVMDiskEncryptionSetId string
secure VM disk encryption set id
ConfidentialVMEncryptionType string | ConfidentialVMEncryptionType
confidential VM encryption types
SecureVMDiskEncryptionSetId string
secure VM disk encryption set id
confidentialVMEncryptionType String | ConfidentialVMEncryptionType
confidential VM encryption types
secureVMDiskEncryptionSetId String
secure VM disk encryption set id
confidentialVMEncryptionType string | ConfidentialVMEncryptionType
confidential VM encryption types
secureVMDiskEncryptionSetId string
secure VM disk encryption set id
confidential_vm_encryption_type str | ConfidentialVMEncryptionType
confidential VM encryption types
secure_vm_disk_encryption_set_id str
secure VM disk encryption set id

OSDiskImageSecurityProfileResponse
, OSDiskImageSecurityProfileResponseArgs

ConfidentialVMEncryptionType string
confidential VM encryption types
SecureVMDiskEncryptionSetId string
secure VM disk encryption set id
ConfidentialVMEncryptionType string
confidential VM encryption types
SecureVMDiskEncryptionSetId string
secure VM disk encryption set id
confidentialVMEncryptionType String
confidential VM encryption types
secureVMDiskEncryptionSetId String
secure VM disk encryption set id
confidentialVMEncryptionType string
confidential VM encryption types
secureVMDiskEncryptionSetId string
secure VM disk encryption set id
confidential_vm_encryption_type str
confidential VM encryption types
secure_vm_disk_encryption_set_id str
secure VM disk encryption set id
confidentialVMEncryptionType String
confidential VM encryption types
secureVMDiskEncryptionSetId String
secure VM disk encryption set id

PolicyViolationResponse
, PolicyViolationResponseArgs

Category string
Describes the nature of the policy violation.
Details string
Describes specific details about why this policy violation was reported.
Category string
Describes the nature of the policy violation.
Details string
Describes specific details about why this policy violation was reported.
category String
Describes the nature of the policy violation.
details String
Describes specific details about why this policy violation was reported.
category string
Describes the nature of the policy violation.
details string
Describes specific details about why this policy violation was reported.
category str
Describes the nature of the policy violation.
details str
Describes specific details about why this policy violation was reported.
category String
Describes the nature of the policy violation.
details String
Describes specific details about why this policy violation was reported.

RegionalReplicationStatusResponse
, RegionalReplicationStatusResponseArgs

Details This property is required. string
The details of the replication status.
Progress This property is required. int
It indicates progress of the replication job.
Region This property is required. string
The region to which the gallery image version is being replicated to.
State This property is required. string
This is the regional replication state.
Details This property is required. string
The details of the replication status.
Progress This property is required. int
It indicates progress of the replication job.
Region This property is required. string
The region to which the gallery image version is being replicated to.
State This property is required. string
This is the regional replication state.
details This property is required. String
The details of the replication status.
progress This property is required. Integer
It indicates progress of the replication job.
region This property is required. String
The region to which the gallery image version is being replicated to.
state This property is required. String
This is the regional replication state.
details This property is required. string
The details of the replication status.
progress This property is required. number
It indicates progress of the replication job.
region This property is required. string
The region to which the gallery image version is being replicated to.
state This property is required. string
This is the regional replication state.
details This property is required. str
The details of the replication status.
progress This property is required. int
It indicates progress of the replication job.
region This property is required. str
The region to which the gallery image version is being replicated to.
state This property is required. str
This is the regional replication state.
details This property is required. String
The details of the replication status.
progress This property is required. Number
It indicates progress of the replication job.
region This property is required. String
The region to which the gallery image version is being replicated to.
state This property is required. String
This is the regional replication state.

ReplicationMode
, ReplicationModeArgs

Full
Full
Shallow
Shallow
ReplicationModeFull
Full
ReplicationModeShallow
Shallow
Full
Full
Shallow
Shallow
Full
Full
Shallow
Shallow
FULL
Full
SHALLOW
Shallow
"Full"
Full
"Shallow"
Shallow

ReplicationStatusResponse
, ReplicationStatusResponseArgs

AggregatedState This property is required. string
This is the aggregated replication status based on all the regional replication status flags.
Summary This property is required. List<Pulumi.AzureNative.Compute.Inputs.RegionalReplicationStatusResponse>
This is a summary of replication status for each region.
AggregatedState This property is required. string
This is the aggregated replication status based on all the regional replication status flags.
Summary This property is required. []RegionalReplicationStatusResponse
This is a summary of replication status for each region.
aggregatedState This property is required. String
This is the aggregated replication status based on all the regional replication status flags.
summary This property is required. List<RegionalReplicationStatusResponse>
This is a summary of replication status for each region.
aggregatedState This property is required. string
This is the aggregated replication status based on all the regional replication status flags.
summary This property is required. RegionalReplicationStatusResponse[]
This is a summary of replication status for each region.
aggregated_state This property is required. str
This is the aggregated replication status based on all the regional replication status flags.
summary This property is required. Sequence[RegionalReplicationStatusResponse]
This is a summary of replication status for each region.
aggregatedState This property is required. String
This is the aggregated replication status based on all the regional replication status flags.
summary This property is required. List<Property Map>
This is a summary of replication status for each region.

StorageAccountType
, StorageAccountTypeArgs

Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
StorageAccountType_Standard_LRS
Standard_LRS
StorageAccountType_Standard_ZRS
Standard_ZRS
StorageAccountType_Premium_LRS
Premium_LRS
StorageAccountType_PremiumV2_LRS
PremiumV2_LRS
Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
Standard_LRS
Standard_LRS
Standard_ZRS
Standard_ZRS
Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
STANDARD_LRS
Standard_LRS
STANDARD_ZRS
Standard_ZRS
PREMIUM_LRS
Premium_LRS
PREMIUM_V2_LRS
PremiumV2_LRS
"Standard_LRS"
Standard_LRS
"Standard_ZRS"
Standard_ZRS
"Premium_LRS"
Premium_LRS
"PremiumV2_LRS"
PremiumV2_LRS

TargetRegion
, TargetRegionArgs

Name This property is required. string
The name of the region.
AdditionalReplicaSets List<Pulumi.AzureNative.Compute.Inputs.AdditionalReplicaSet>
List of storage sku with replica count to create direct drive replicas.
Encryption Pulumi.AzureNative.Compute.Inputs.EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExcludeFromLatest bool
Contains the flag setting to hide an image when users specify version='latest'
RegionalReplicaCount int
The number of replicas of the Image Version to be created per region. This property is updatable.
StorageAccountType string | Pulumi.AzureNative.Compute.StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
Name This property is required. string
The name of the region.
AdditionalReplicaSets []AdditionalReplicaSet
List of storage sku with replica count to create direct drive replicas.
Encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExcludeFromLatest bool
Contains the flag setting to hide an image when users specify version='latest'
RegionalReplicaCount int
The number of replicas of the Image Version to be created per region. This property is updatable.
StorageAccountType string | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. String
The name of the region.
additionalReplicaSets List<AdditionalReplicaSet>
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest Boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount Integer
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType String | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. string
The name of the region.
additionalReplicaSets AdditionalReplicaSet[]
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount number
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType string | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. str
The name of the region.
additional_replica_sets Sequence[AdditionalReplicaSet]
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImages
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
exclude_from_latest bool
Contains the flag setting to hide an image when users specify version='latest'
regional_replica_count int
The number of replicas of the Image Version to be created per region. This property is updatable.
storage_account_type str | StorageAccountType
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. String
The name of the region.
additionalReplicaSets List<Property Map>
List of storage sku with replica count to create direct drive replicas.
encryption Property Map
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest Boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount Number
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumV2_LRS"
Specifies the storage account type to be used to store the image. This property is not updatable.

TargetRegionResponse
, TargetRegionResponseArgs

Name This property is required. string
The name of the region.
AdditionalReplicaSets List<Pulumi.AzureNative.Compute.Inputs.AdditionalReplicaSetResponse>
List of storage sku with replica count to create direct drive replicas.
Encryption Pulumi.AzureNative.Compute.Inputs.EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExcludeFromLatest bool
Contains the flag setting to hide an image when users specify version='latest'
RegionalReplicaCount int
The number of replicas of the Image Version to be created per region. This property is updatable.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
Name This property is required. string
The name of the region.
AdditionalReplicaSets []AdditionalReplicaSetResponse
List of storage sku with replica count to create direct drive replicas.
Encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
ExcludeFromLatest bool
Contains the flag setting to hide an image when users specify version='latest'
RegionalReplicaCount int
The number of replicas of the Image Version to be created per region. This property is updatable.
StorageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. String
The name of the region.
additionalReplicaSets List<AdditionalReplicaSetResponse>
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest Boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount Integer
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. string
The name of the region.
additionalReplicaSets AdditionalReplicaSetResponse[]
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount number
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType string
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. str
The name of the region.
additional_replica_sets Sequence[AdditionalReplicaSetResponse]
List of storage sku with replica count to create direct drive replicas.
encryption EncryptionImagesResponse
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
exclude_from_latest bool
Contains the flag setting to hide an image when users specify version='latest'
regional_replica_count int
The number of replicas of the Image Version to be created per region. This property is updatable.
storage_account_type str
Specifies the storage account type to be used to store the image. This property is not updatable.
name This property is required. String
The name of the region.
additionalReplicaSets List<Property Map>
List of storage sku with replica count to create direct drive replicas.
encryption Property Map
Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
excludeFromLatest Boolean
Contains the flag setting to hide an image when users specify version='latest'
regionalReplicaCount Number
The number of replicas of the Image Version to be created per region. This property is updatable.
storageAccountType String
Specifies the storage account type to be used to store the image. This property is not updatable.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:GalleryImageVersion 1.0.0 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0