azure-native.compute.GalleryImageVersion
Explore with Pulumi AI
Specifies information about the gallery image version that you want to create or update.
Uses Azure REST API version 2024-03-03. In version 2.x of the Azure Native provider, it used API version 2022-03-03.
Other available API versions: 2022-03-03, 2022-08-03, 2023-07-03. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]
. See the version guide for details.
Example Usage
Create or update a simple Gallery Image Version using VM as source.
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,
BlockDeletionBeforeEndOfLife = false,
},
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
VirtualMachineId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: pulumi.Bool(false),
},
StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
Source: &compute.GalleryArtifactVersionFullSourceArgs{
VirtualMachineId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.source(GalleryArtifactVersionFullSourceArgs.builder()
.virtualMachineId("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}")
.build())
.build())
.build());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
virtualMachineId: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"virtual_machine_id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
virtualMachineId: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}
Create or update a simple Gallery Image Version using community gallery image as source.
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,
BlockDeletionBeforeEndOfLife = false,
},
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
CommunityGalleryImageId = "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: pulumi.Bool(false),
},
StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
Source: &compute.GalleryArtifactVersionFullSourceArgs{
CommunityGalleryImageId: pulumi.String("/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.source(GalleryArtifactVersionFullSourceArgs.builder()
.communityGalleryImageId("/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}")
.build())
.build())
.build());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
communityGalleryImageId: "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"community_gallery_image_id": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
communityGalleryImageId: /communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}
Create or update a simple Gallery Image Version using managed image as source.
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,
BlockDeletionBeforeEndOfLife = false,
},
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: 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
})
}
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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.source(GalleryArtifactVersionFullSourceArgs.builder()
.id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
.build())
.build())
.build());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
Create or update a simple Gallery Image Version using mix of disks and snapshots as a source.
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,
BlockDeletionBeforeEndOfLife = 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}",
},
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: 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
})
}
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)
.blockDeletionBeforeEndOfLife(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());
}
}
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,
blockDeletionBeforeEndOfLife: 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}",
},
},
},
});
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,
"block_deletion_before_end_of_life": 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}",
},
},
})
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
blockDeletionBeforeEndOfLife: 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}
Create or update a simple Gallery Image Version using shallow replication mode.
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,
BlockDeletionBeforeEndOfLife = false,
},
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: 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
})
}
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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.source(GalleryArtifactVersionFullSourceArgs.builder()
.id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
.build())
.build())
.build());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
Create or update a simple Gallery Image Version using shared image as source.
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,
BlockDeletionBeforeEndOfLife = 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}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: 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
})
}
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)
.blockDeletionBeforeEndOfLife(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());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}
Create or update a simple Gallery Image Version using vhd as a source with custom UEFI keys.
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,
BlockDeletionBeforeEndOfLife = false,
},
SecurityProfile = new AzureNative.Compute.Inputs.ImageVersionSecurityProfileArgs
{
UefiSettings = new AzureNative.Compute.Inputs.GalleryImageVersionUefiSettingsArgs
{
AdditionalSignatures = new AzureNative.Compute.Inputs.UefiKeySignaturesArgs
{
Db = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = AzureNative.Compute.UefiKeyType.X509,
Value = new[]
{
"<x509 value>",
},
},
},
Dbx = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = AzureNative.Compute.UefiKeyType.X509,
Value = new[]
{
"<x509 value>",
},
},
},
Kek = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = AzureNative.Compute.UefiKeyType.Sha256,
Value = new[]
{
"<sha256 value>",
},
},
},
},
SignatureTemplateNames = new[]
{
AzureNative.Compute.UefiSignatureTemplateName.MicrosoftUefiCertificateAuthorityTemplate,
},
},
},
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
{
StorageAccountId = "/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
{
StorageAccountId = "/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",
},
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: pulumi.Bool(false),
},
SecurityProfile: &compute.ImageVersionSecurityProfileArgs{
UefiSettings: &compute.GalleryImageVersionUefiSettingsArgs{
AdditionalSignatures: &compute.UefiKeySignaturesArgs{
Db: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String(compute.UefiKeyTypeX509),
Value: pulumi.StringArray{
pulumi.String("<x509 value>"),
},
},
},
Dbx: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String(compute.UefiKeyTypeX509),
Value: pulumi.StringArray{
pulumi.String("<x509 value>"),
},
},
},
Kek: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String(compute.UefiKeyTypeSha256),
Value: pulumi.StringArray{
pulumi.String("<sha256 value>"),
},
},
},
},
SignatureTemplateNames: pulumi.StringArray{
pulumi.String(compute.UefiSignatureTemplateNameMicrosoftUefiCertificateAuthorityTemplate),
},
},
},
StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
DataDiskImages: compute.GalleryDataDiskImageArray{
&compute.GalleryDataDiskImageArgs{
HostCaching: compute.HostCachingNone,
Lun: pulumi.Int(1),
Source: &compute.GalleryDiskImageSourceArgs{
StorageAccountId: 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{
StorageAccountId: 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
})
}
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.ImageVersionSecurityProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryImageVersionUefiSettingsArgs;
import com.pulumi.azurenative.compute.inputs.UefiKeySignaturesArgs;
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)
.blockDeletionBeforeEndOfLife(false)
.build())
.securityProfile(ImageVersionSecurityProfileArgs.builder()
.uefiSettings(GalleryImageVersionUefiSettingsArgs.builder()
.additionalSignatures(UefiKeySignaturesArgs.builder()
.db(UefiKeyArgs.builder()
.type("x509")
.value("<x509 value>")
.build())
.dbx(UefiKeyArgs.builder()
.type("x509")
.value("<x509 value>")
.build())
.kek(UefiKeyArgs.builder()
.type("sha256")
.value("<sha256 value>")
.build())
.build())
.signatureTemplateNames("MicrosoftUefiCertificateAuthorityTemplate")
.build())
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.dataDiskImages(GalleryDataDiskImageArgs.builder()
.hostCaching("None")
.lun(1)
.source(GalleryDiskImageSourceArgs.builder()
.storageAccountId("/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()
.storageAccountId("/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());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
securityProfile: {
uefiSettings: {
additionalSignatures: {
db: [{
type: azure_native.compute.UefiKeyType.X509,
value: ["<x509 value>"],
}],
dbx: [{
type: azure_native.compute.UefiKeyType.X509,
value: ["<x509 value>"],
}],
kek: [{
type: azure_native.compute.UefiKeyType.Sha256,
value: ["<sha256 value>"],
}],
},
signatureTemplateNames: [azure_native.compute.UefiSignatureTemplateName.MicrosoftUefiCertificateAuthorityTemplate],
},
},
storageProfile: {
dataDiskImages: [{
hostCaching: azure_native.compute.HostCaching.None,
lun: 1,
source: {
storageAccountId: "/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: {
storageAccountId: "/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",
},
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
security_profile={
"uefi_settings": {
"additional_signatures": {
"db": [{
"type": azure_native.compute.UefiKeyType.X509,
"value": ["<x509 value>"],
}],
"dbx": [{
"type": azure_native.compute.UefiKeyType.X509,
"value": ["<x509 value>"],
}],
"kek": [{
"type": azure_native.compute.UefiKeyType.SHA256,
"value": ["<sha256 value>"],
}],
},
"signature_template_names": [azure_native.compute.UefiSignatureTemplateName.MICROSOFT_UEFI_CERTIFICATE_AUTHORITY_TEMPLATE],
},
},
storage_profile={
"data_disk_images": [{
"host_caching": azure_native.compute.HostCaching.NONE,
"lun": 1,
"source": {
"storage_account_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": {
"storage_account_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",
},
},
})
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
blockDeletionBeforeEndOfLife: false
securityProfile:
uefiSettings:
additionalSignatures:
db:
- type: x509
value:
- <x509 value>
dbx:
- type: x509
value:
- <x509 value>
kek:
- type: sha256
value:
- <sha256 value>
signatureTemplateNames:
- MicrosoftUefiCertificateAuthorityTemplate
storageProfile:
dataDiskImages:
- hostCaching: None
lun: 1
source:
storageAccountId: /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:
storageAccountId: /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
Create or update a simple Gallery Image Version using vhd as a source.
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,
BlockDeletionBeforeEndOfLife = 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
{
StorageAccountId = "/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
{
StorageAccountId = "/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",
},
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: pulumi.Bool(false),
},
StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
DataDiskImages: compute.GalleryDataDiskImageArray{
&compute.GalleryDataDiskImageArgs{
HostCaching: compute.HostCachingNone,
Lun: pulumi.Int(1),
Source: &compute.GalleryDiskImageSourceArgs{
StorageAccountId: 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{
StorageAccountId: 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
})
}
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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.dataDiskImages(GalleryDataDiskImageArgs.builder()
.hostCaching("None")
.lun(1)
.source(GalleryDiskImageSourceArgs.builder()
.storageAccountId("/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()
.storageAccountId("/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());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
dataDiskImages: [{
hostCaching: azure_native.compute.HostCaching.None,
lun: 1,
source: {
storageAccountId: "/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: {
storageAccountId: "/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",
},
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"data_disk_images": [{
"host_caching": azure_native.compute.HostCaching.NONE,
"lun": 1,
"source": {
"storage_account_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": {
"storage_account_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",
},
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
dataDiskImages:
- hostCaching: None
lun: 1
source:
storageAccountId: /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:
storageAccountId: /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
Create or update a simple Gallery Image Version with Direct Drive replicas
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
{
AdditionalReplicaSets = new[]
{
new AzureNative.Compute.Inputs.AdditionalReplicaSetArgs
{
RegionalReplicaCount = 1,
StorageAccountType = "PreviumV2_LRS",
},
},
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}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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{
AdditionalReplicaSets: compute.AdditionalReplicaSetArray{
&compute.AdditionalReplicaSetArgs{
RegionalReplicaCount: pulumi.Int(1),
StorageAccountType: pulumi.String("PreviumV2_LRS"),
},
},
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
})
}
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()
.additionalReplicaSets(AdditionalReplicaSetArgs.builder()
.regionalReplicaCount(1)
.storageAccountType("PreviumV2_LRS")
.build())
.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());
}
}
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: [
{
additionalReplicaSets: [{
regionalReplicaCount: 1,
storageAccountType: "PreviumV2_LRS",
}],
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}",
},
},
});
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": [
{
"additional_replica_sets": [{
"regional_replica_count": 1,
"storage_account_type": "PreviumV2_LRS",
}],
"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}",
},
})
resources:
galleryImageVersion:
type: azure-native:compute:GalleryImageVersion
properties:
galleryImageName: myGalleryImageName
galleryImageVersionName: 1.0.0
galleryName: myGalleryName
location: West US
publishingProfile:
targetRegions:
- additionalReplicaSets:
- regionalReplicaCount: 1
storageAccountType: PreviumV2_LRS
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}
Create or update a simple gallery image version with target extended locations specified.
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,
BlockDeletionBeforeEndOfLife = false,
},
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.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),
BlockDeletionBeforeEndOfLife: 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
})
}
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)
.blockDeletionBeforeEndOfLife(false)
.build())
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.source(GalleryArtifactVersionFullSourceArgs.builder()
.id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")
.build())
.build())
.build());
}
}
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,
blockDeletionBeforeEndOfLife: false,
},
storageProfile: {
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
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,
"block_deletion_before_end_of_life": False,
},
storage_profile={
"source": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
})
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
blockDeletionBeforeEndOfLife: false
storageProfile:
source:
id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
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,
restore: Optional[bool] = None,
safety_profile: Optional[GalleryImageVersionSafetyProfileArgs] = None,
security_profile: Optional[ImageVersionSecurityProfileArgs] = 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 string
- The unique name of the resource.
- args GalleryImageVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args GalleryImageVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GalleryImageVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
DataDiskImages = new[]
{
new AzureNative.Compute.Inputs.GalleryDataDiskImageArgs
{
Lun = 0,
HostCaching = AzureNative.Compute.HostCaching.None,
Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
{
Id = "string",
StorageAccountId = "string",
Uri = "string",
},
},
},
OsDiskImage = new AzureNative.Compute.Inputs.GalleryOSDiskImageArgs
{
HostCaching = AzureNative.Compute.HostCaching.None,
Source = new AzureNative.Compute.Inputs.GalleryDiskImageSourceArgs
{
Id = "string",
StorageAccountId = "string",
Uri = "string",
},
},
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionFullSourceArgs
{
CommunityGalleryImageId = "string",
Id = "string",
VirtualMachineId = "string",
},
},
GalleryImageVersionName = "string",
Location = "string",
PublishingProfile = new AzureNative.Compute.Inputs.GalleryImageVersionPublishingProfileArgs
{
EndOfLifeDate = "string",
ExcludeFromLatest = false,
ReplicaCount = 0,
ReplicationMode = "string",
StorageAccountType = "string",
TargetExtendedLocations = new[]
{
new AzureNative.Compute.Inputs.GalleryTargetExtendedLocationArgs
{
Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
{
DataDiskImages = new[]
{
new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
{
Lun = 0,
DiskEncryptionSetId = "string",
},
},
OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
{
DiskEncryptionSetId = "string",
SecurityProfile = new AzureNative.Compute.Inputs.OSDiskImageSecurityProfileArgs
{
ConfidentialVMEncryptionType = "string",
SecureVMDiskEncryptionSetId = "string",
},
},
},
ExtendedLocation = new AzureNative.Compute.Inputs.GalleryExtendedLocationArgs
{
Name = "string",
Type = "string",
},
ExtendedLocationReplicaCount = 0,
Name = "string",
StorageAccountType = "string",
},
},
TargetRegions = new[]
{
new AzureNative.Compute.Inputs.TargetRegionArgs
{
Name = "string",
AdditionalReplicaSets = new[]
{
new AzureNative.Compute.Inputs.AdditionalReplicaSetArgs
{
RegionalReplicaCount = 0,
StorageAccountType = "string",
},
},
Encryption = new AzureNative.Compute.Inputs.EncryptionImagesArgs
{
DataDiskImages = new[]
{
new AzureNative.Compute.Inputs.DataDiskImageEncryptionArgs
{
Lun = 0,
DiskEncryptionSetId = "string",
},
},
OsDiskImage = new AzureNative.Compute.Inputs.OSDiskImageEncryptionArgs
{
DiskEncryptionSetId = "string",
SecurityProfile = new AzureNative.Compute.Inputs.OSDiskImageSecurityProfileArgs
{
ConfidentialVMEncryptionType = "string",
SecureVMDiskEncryptionSetId = "string",
},
},
},
ExcludeFromLatest = false,
RegionalReplicaCount = 0,
StorageAccountType = "string",
},
},
},
Restore = false,
SafetyProfile = new AzureNative.Compute.Inputs.GalleryImageVersionSafetyProfileArgs
{
AllowDeletionOfReplicatedLocations = false,
BlockDeletionBeforeEndOfLife = false,
},
SecurityProfile = new AzureNative.Compute.Inputs.ImageVersionSecurityProfileArgs
{
UefiSettings = new AzureNative.Compute.Inputs.GalleryImageVersionUefiSettingsArgs
{
AdditionalSignatures = new AzureNative.Compute.Inputs.UefiKeySignaturesArgs
{
Db = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = "string",
Value = new[]
{
"string",
},
},
},
Dbx = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = "string",
Value = new[]
{
"string",
},
},
},
Kek = new[]
{
new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = "string",
Value = new[]
{
"string",
},
},
},
Pk = new AzureNative.Compute.Inputs.UefiKeyArgs
{
Type = "string",
Value = new[]
{
"string",
},
},
},
SignatureTemplateNames = new[]
{
"string",
},
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := compute.NewGalleryImageVersion(ctx, "galleryImageVersionResource", &compute.GalleryImageVersionArgs{
GalleryImageName: pulumi.String("string"),
GalleryName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
StorageProfile: &compute.GalleryImageVersionStorageProfileArgs{
DataDiskImages: compute.GalleryDataDiskImageArray{
&compute.GalleryDataDiskImageArgs{
Lun: pulumi.Int(0),
HostCaching: compute.HostCachingNone,
Source: &compute.GalleryDiskImageSourceArgs{
Id: pulumi.String("string"),
StorageAccountId: pulumi.String("string"),
Uri: pulumi.String("string"),
},
},
},
OsDiskImage: &compute.GalleryOSDiskImageArgs{
HostCaching: compute.HostCachingNone,
Source: &compute.GalleryDiskImageSourceArgs{
Id: pulumi.String("string"),
StorageAccountId: pulumi.String("string"),
Uri: pulumi.String("string"),
},
},
Source: &compute.GalleryArtifactVersionFullSourceArgs{
CommunityGalleryImageId: pulumi.String("string"),
Id: pulumi.String("string"),
VirtualMachineId: pulumi.String("string"),
},
},
GalleryImageVersionName: pulumi.String("string"),
Location: pulumi.String("string"),
PublishingProfile: &compute.GalleryImageVersionPublishingProfileArgs{
EndOfLifeDate: pulumi.String("string"),
ExcludeFromLatest: pulumi.Bool(false),
ReplicaCount: pulumi.Int(0),
ReplicationMode: pulumi.String("string"),
StorageAccountType: pulumi.String("string"),
TargetExtendedLocations: compute.GalleryTargetExtendedLocationArray{
&compute.GalleryTargetExtendedLocationArgs{
Encryption: &compute.EncryptionImagesArgs{
DataDiskImages: compute.DataDiskImageEncryptionArray{
&compute.DataDiskImageEncryptionArgs{
Lun: pulumi.Int(0),
DiskEncryptionSetId: pulumi.String("string"),
},
},
OsDiskImage: &compute.OSDiskImageEncryptionArgs{
DiskEncryptionSetId: pulumi.String("string"),
SecurityProfile: &compute.OSDiskImageSecurityProfileArgs{
ConfidentialVMEncryptionType: pulumi.String("string"),
SecureVMDiskEncryptionSetId: pulumi.String("string"),
},
},
},
ExtendedLocation: &compute.GalleryExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
ExtendedLocationReplicaCount: pulumi.Int(0),
Name: pulumi.String("string"),
StorageAccountType: pulumi.String("string"),
},
},
TargetRegions: compute.TargetRegionArray{
&compute.TargetRegionArgs{
Name: pulumi.String("string"),
AdditionalReplicaSets: compute.AdditionalReplicaSetArray{
&compute.AdditionalReplicaSetArgs{
RegionalReplicaCount: pulumi.Int(0),
StorageAccountType: pulumi.String("string"),
},
},
Encryption: &compute.EncryptionImagesArgs{
DataDiskImages: compute.DataDiskImageEncryptionArray{
&compute.DataDiskImageEncryptionArgs{
Lun: pulumi.Int(0),
DiskEncryptionSetId: pulumi.String("string"),
},
},
OsDiskImage: &compute.OSDiskImageEncryptionArgs{
DiskEncryptionSetId: pulumi.String("string"),
SecurityProfile: &compute.OSDiskImageSecurityProfileArgs{
ConfidentialVMEncryptionType: pulumi.String("string"),
SecureVMDiskEncryptionSetId: pulumi.String("string"),
},
},
},
ExcludeFromLatest: pulumi.Bool(false),
RegionalReplicaCount: pulumi.Int(0),
StorageAccountType: pulumi.String("string"),
},
},
},
Restore: pulumi.Bool(false),
SafetyProfile: &compute.GalleryImageVersionSafetyProfileArgs{
AllowDeletionOfReplicatedLocations: pulumi.Bool(false),
BlockDeletionBeforeEndOfLife: pulumi.Bool(false),
},
SecurityProfile: &compute.ImageVersionSecurityProfileArgs{
UefiSettings: &compute.GalleryImageVersionUefiSettingsArgs{
AdditionalSignatures: &compute.UefiKeySignaturesArgs{
Db: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String("string"),
Value: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Dbx: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String("string"),
Value: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Kek: compute.UefiKeyArray{
&compute.UefiKeyArgs{
Type: pulumi.String("string"),
Value: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Pk: &compute.UefiKeyArgs{
Type: pulumi.String("string"),
Value: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SignatureTemplateNames: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var galleryImageVersionResource = new GalleryImageVersion("galleryImageVersionResource", GalleryImageVersionArgs.builder()
.galleryImageName("string")
.galleryName("string")
.resourceGroupName("string")
.storageProfile(GalleryImageVersionStorageProfileArgs.builder()
.dataDiskImages(GalleryDataDiskImageArgs.builder()
.lun(0)
.hostCaching("None")
.source(GalleryDiskImageSourceArgs.builder()
.id("string")
.storageAccountId("string")
.uri("string")
.build())
.build())
.osDiskImage(GalleryOSDiskImageArgs.builder()
.hostCaching("None")
.source(GalleryDiskImageSourceArgs.builder()
.id("string")
.storageAccountId("string")
.uri("string")
.build())
.build())
.source(GalleryArtifactVersionFullSourceArgs.builder()
.communityGalleryImageId("string")
.id("string")
.virtualMachineId("string")
.build())
.build())
.galleryImageVersionName("string")
.location("string")
.publishingProfile(GalleryImageVersionPublishingProfileArgs.builder()
.endOfLifeDate("string")
.excludeFromLatest(false)
.replicaCount(0)
.replicationMode("string")
.storageAccountType("string")
.targetExtendedLocations(GalleryTargetExtendedLocationArgs.builder()
.encryption(EncryptionImagesArgs.builder()
.dataDiskImages(DataDiskImageEncryptionArgs.builder()
.lun(0)
.diskEncryptionSetId("string")
.build())
.osDiskImage(OSDiskImageEncryptionArgs.builder()
.diskEncryptionSetId("string")
.securityProfile(OSDiskImageSecurityProfileArgs.builder()
.confidentialVMEncryptionType("string")
.secureVMDiskEncryptionSetId("string")
.build())
.build())
.build())
.extendedLocation(GalleryExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.extendedLocationReplicaCount(0)
.name("string")
.storageAccountType("string")
.build())
.targetRegions(TargetRegionArgs.builder()
.name("string")
.additionalReplicaSets(AdditionalReplicaSetArgs.builder()
.regionalReplicaCount(0)
.storageAccountType("string")
.build())
.encryption(EncryptionImagesArgs.builder()
.dataDiskImages(DataDiskImageEncryptionArgs.builder()
.lun(0)
.diskEncryptionSetId("string")
.build())
.osDiskImage(OSDiskImageEncryptionArgs.builder()
.diskEncryptionSetId("string")
.securityProfile(OSDiskImageSecurityProfileArgs.builder()
.confidentialVMEncryptionType("string")
.secureVMDiskEncryptionSetId("string")
.build())
.build())
.build())
.excludeFromLatest(false)
.regionalReplicaCount(0)
.storageAccountType("string")
.build())
.build())
.restore(false)
.safetyProfile(GalleryImageVersionSafetyProfileArgs.builder()
.allowDeletionOfReplicatedLocations(false)
.blockDeletionBeforeEndOfLife(false)
.build())
.securityProfile(ImageVersionSecurityProfileArgs.builder()
.uefiSettings(GalleryImageVersionUefiSettingsArgs.builder()
.additionalSignatures(UefiKeySignaturesArgs.builder()
.db(UefiKeyArgs.builder()
.type("string")
.value("string")
.build())
.dbx(UefiKeyArgs.builder()
.type("string")
.value("string")
.build())
.kek(UefiKeyArgs.builder()
.type("string")
.value("string")
.build())
.pk(UefiKeyArgs.builder()
.type("string")
.value("string")
.build())
.build())
.signatureTemplateNames("string")
.build())
.build())
.tags(Map.of("string", "string"))
.build());
gallery_image_version_resource = azure_native.compute.GalleryImageVersion("galleryImageVersionResource",
gallery_image_name="string",
gallery_name="string",
resource_group_name="string",
storage_profile={
"data_disk_images": [{
"lun": 0,
"host_caching": azure_native.compute.HostCaching.NONE,
"source": {
"id": "string",
"storage_account_id": "string",
"uri": "string",
},
}],
"os_disk_image": {
"host_caching": azure_native.compute.HostCaching.NONE,
"source": {
"id": "string",
"storage_account_id": "string",
"uri": "string",
},
},
"source": {
"community_gallery_image_id": "string",
"id": "string",
"virtual_machine_id": "string",
},
},
gallery_image_version_name="string",
location="string",
publishing_profile={
"end_of_life_date": "string",
"exclude_from_latest": False,
"replica_count": 0,
"replication_mode": "string",
"storage_account_type": "string",
"target_extended_locations": [{
"encryption": {
"data_disk_images": [{
"lun": 0,
"disk_encryption_set_id": "string",
}],
"os_disk_image": {
"disk_encryption_set_id": "string",
"security_profile": {
"confidential_vm_encryption_type": "string",
"secure_vm_disk_encryption_set_id": "string",
},
},
},
"extended_location": {
"name": "string",
"type": "string",
},
"extended_location_replica_count": 0,
"name": "string",
"storage_account_type": "string",
}],
"target_regions": [{
"name": "string",
"additional_replica_sets": [{
"regional_replica_count": 0,
"storage_account_type": "string",
}],
"encryption": {
"data_disk_images": [{
"lun": 0,
"disk_encryption_set_id": "string",
}],
"os_disk_image": {
"disk_encryption_set_id": "string",
"security_profile": {
"confidential_vm_encryption_type": "string",
"secure_vm_disk_encryption_set_id": "string",
},
},
},
"exclude_from_latest": False,
"regional_replica_count": 0,
"storage_account_type": "string",
}],
},
restore=False,
safety_profile={
"allow_deletion_of_replicated_locations": False,
"block_deletion_before_end_of_life": False,
},
security_profile={
"uefi_settings": {
"additional_signatures": {
"db": [{
"type": "string",
"value": ["string"],
}],
"dbx": [{
"type": "string",
"value": ["string"],
}],
"kek": [{
"type": "string",
"value": ["string"],
}],
"pk": {
"type": "string",
"value": ["string"],
},
},
"signature_template_names": ["string"],
},
},
tags={
"string": "string",
})
const galleryImageVersionResource = new azure_native.compute.GalleryImageVersion("galleryImageVersionResource", {
galleryImageName: "string",
galleryName: "string",
resourceGroupName: "string",
storageProfile: {
dataDiskImages: [{
lun: 0,
hostCaching: azure_native.compute.HostCaching.None,
source: {
id: "string",
storageAccountId: "string",
uri: "string",
},
}],
osDiskImage: {
hostCaching: azure_native.compute.HostCaching.None,
source: {
id: "string",
storageAccountId: "string",
uri: "string",
},
},
source: {
communityGalleryImageId: "string",
id: "string",
virtualMachineId: "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",
}],
},
restore: false,
safetyProfile: {
allowDeletionOfReplicatedLocations: false,
blockDeletionBeforeEndOfLife: false,
},
securityProfile: {
uefiSettings: {
additionalSignatures: {
db: [{
type: "string",
value: ["string"],
}],
dbx: [{
type: "string",
value: ["string"],
}],
kek: [{
type: "string",
value: ["string"],
}],
pk: {
type: "string",
value: ["string"],
},
},
signatureTemplateNames: ["string"],
},
},
tags: {
string: "string",
},
});
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
restore: false
safetyProfile:
allowDeletionOfReplicatedLocations: false
blockDeletionBeforeEndOfLife: false
securityProfile:
uefiSettings:
additionalSignatures:
db:
- type: string
value:
- string
dbx:
- type: string
value:
- string
kek:
- type: string
value:
- string
pk:
type: string
value:
- string
signatureTemplateNames:
- string
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
virtualMachineId: string
tags:
string: string
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:
- Gallery
Image stringName - The name of the gallery image definition in which the Image Version is to be created.
- Gallery
Name string - The name of the Shared Image Gallery in which the Image Definition resides.
- Resource
Group stringName - The name of the resource group.
- Storage
Profile Pulumi.Azure Native. Compute. Inputs. Gallery Image Version Storage Profile - This is the storage profile of a Gallery Image Version.
- Gallery
Image stringVersion Name - 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
- Publishing
Profile Pulumi.Azure Native. Compute. Inputs. Gallery Image Version Publishing Profile - The publishing profile of a gallery image Version.
- Restore bool
- Indicates if this is a soft-delete resource restoration request.
- Safety
Profile Pulumi.Azure Native. Compute. Inputs. Gallery Image Version Safety Profile - This is the safety profile of the Gallery Image Version.
- Security
Profile Pulumi.Azure Native. Compute. Inputs. Image Version Security Profile - The security profile of a gallery image version
- Dictionary<string, string>
- Resource tags
- Gallery
Image stringName - The name of the gallery image definition in which the Image Version is to be created.
- Gallery
Name string - The name of the Shared Image Gallery in which the Image Definition resides.
- Resource
Group stringName - The name of the resource group.
- Storage
Profile GalleryImage Version Storage Profile Args - This is the storage profile of a Gallery Image Version.
- Gallery
Image stringVersion Name - 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
- Publishing
Profile GalleryImage Version Publishing Profile Args - The publishing profile of a gallery image Version.
- Restore bool
- Indicates if this is a soft-delete resource restoration request.
- Safety
Profile GalleryImage Version Safety Profile Args - This is the safety profile of the Gallery Image Version.
- Security
Profile ImageVersion Security Profile Args - The security profile of a gallery image version
- map[string]string
- Resource tags
- gallery
Image StringName - The name of the gallery image definition in which the Image Version is to be created.
- gallery
Name String - The name of the Shared Image Gallery in which the Image Definition resides.
- resource
Group StringName - The name of the resource group.
- storage
Profile GalleryImage Version Storage Profile - This is the storage profile of a Gallery Image Version.
- gallery
Image StringVersion Name - 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
- publishing
Profile GalleryImage Version Publishing Profile - The publishing profile of a gallery image Version.
- restore Boolean
- Indicates if this is a soft-delete resource restoration request.
- safety
Profile GalleryImage Version Safety Profile - This is the safety profile of the Gallery Image Version.
- security
Profile ImageVersion Security Profile - The security profile of a gallery image version
- Map<String,String>
- Resource tags
- gallery
Image stringName - The name of the gallery image definition in which the Image Version is to be created.
- gallery
Name string - The name of the Shared Image Gallery in which the Image Definition resides.
- resource
Group stringName - The name of the resource group.
- storage
Profile GalleryImage Version Storage Profile - This is the storage profile of a Gallery Image Version.
- gallery
Image stringVersion Name - 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
- publishing
Profile GalleryImage Version Publishing Profile - The publishing profile of a gallery image Version.
- restore boolean
- Indicates if this is a soft-delete resource restoration request.
- safety
Profile GalleryImage Version Safety Profile - This is the safety profile of the Gallery Image Version.
- security
Profile ImageVersion Security Profile - The security profile of a gallery image version
- {[key: string]: string}
- Resource tags
- gallery_
image_ strname - The name of the gallery image definition in which the Image Version is to be created.
- gallery_
name str - The name of the Shared Image Gallery in which the Image Definition resides.
- resource_
group_ strname - The name of the resource group.
- storage_
profile GalleryImage Version Storage Profile Args - This is the storage profile of a Gallery Image Version.
- gallery_
image_ strversion_ name - 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 GalleryImage Version Publishing Profile Args - The publishing profile of a gallery image Version.
- restore bool
- Indicates if this is a soft-delete resource restoration request.
- safety_
profile GalleryImage Version Safety Profile Args - This is the safety profile of the Gallery Image Version.
- security_
profile ImageVersion Security Profile Args - The security profile of a gallery image version
- Mapping[str, str]
- Resource tags
- gallery
Image StringName - The name of the gallery image definition in which the Image Version is to be created.
- gallery
Name String - The name of the Shared Image Gallery in which the Image Definition resides.
- resource
Group StringName - The name of the resource group.
- storage
Profile Property Map - This is the storage profile of a Gallery Image Version.
- gallery
Image StringVersion Name - 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
- publishing
Profile Property Map - The publishing profile of a gallery image Version.
- restore Boolean
- Indicates if this is a soft-delete resource restoration request.
- safety
Profile Property Map - This is the safety profile of the Gallery Image Version.
- security
Profile Property Map - The security profile of a gallery image version
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryImageVersion resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Provisioning
State string - The provisioning state, which only appears in the response.
- Replication
Status Pulumi.Azure Native. Compute. Outputs. Replication Status Response - This is the replication status of the gallery image version.
- Type string
- Resource type
- Validations
Profile Pulumi.Azure Native. Compute. Outputs. Validations Profile Response - This is the validations profile of a Gallery Image Version.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- Provisioning
State string - The provisioning state, which only appears in the response.
- Replication
Status ReplicationStatus Response - This is the replication status of the gallery image version.
- Type string
- Resource type
- Validations
Profile ValidationsProfile Response - This is the validations profile of a Gallery Image Version.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- provisioning
State String - The provisioning state, which only appears in the response.
- replication
Status ReplicationStatus Response - This is the replication status of the gallery image version.
- type String
- Resource type
- validations
Profile ValidationsProfile Response - This is the validations profile of a Gallery Image Version.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- provisioning
State string - The provisioning state, which only appears in the response.
- replication
Status ReplicationStatus Response - This is the replication status of the gallery image version.
- type string
- Resource type
- validations
Profile ValidationsProfile Response - This is the validations profile of a Gallery Image Version.
- azure_
api_ strversion - The Azure API version of the resource.
- 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 ReplicationStatus Response - This is the replication status of the gallery image version.
- type str
- Resource type
- validations_
profile ValidationsProfile Response - This is the validations profile of a Gallery Image Version.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- provisioning
State String - The provisioning state, which only appears in the response.
- replication
Status Property Map - This is the replication status of the gallery image version.
- type String
- Resource type
- validations
Profile Property Map - This is the validations profile of a Gallery Image Version.
Supporting Types
AdditionalReplicaSet, AdditionalReplicaSetArgs
- Regional
Replica intCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- Storage
Account string | Pulumi.Type Azure Native. Compute. Storage Account Type - Specifies the storage account type to be used to create the direct drive replicas
- Regional
Replica intCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- Storage
Account string | StorageType Account Type - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica IntegerCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account String | StorageType Account Type - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica numberCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account string | StorageType Account Type - Specifies the storage account type to be used to create the direct drive replicas
- regional_
replica_ intcount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage_
account_ str | Storagetype Account Type - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica NumberCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumType V2_LRS" - Specifies the storage account type to be used to create the direct drive replicas
AdditionalReplicaSetResponse, AdditionalReplicaSetResponseArgs
- Regional
Replica intCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- Storage
Account stringType - Specifies the storage account type to be used to create the direct drive replicas
- Regional
Replica intCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- Storage
Account stringType - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica IntegerCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account StringType - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica numberCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account stringType - Specifies the storage account type to be used to create the direct drive replicas
- regional_
replica_ intcount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage_
account_ strtype - Specifies the storage account type to be used to create the direct drive replicas
- regional
Replica NumberCount - The number of direct drive replicas of the Image Version to be created.This Property is updatable
- storage
Account StringType - Specifies the storage account type to be used to create the direct drive replicas
ConfidentialVMEncryptionType, ConfidentialVMEncryptionTypeArgs
- Encrypted
VMGuest State Only With Pmk - EncryptedVMGuestStateOnlyWithPmk
- Encrypted
With Pmk - EncryptedWithPmk
- Encrypted
With Cmk - EncryptedWithCmk
- Non
Persisted TPM - NonPersistedTPM
- Confidential
VMEncryption Type Encrypted VMGuest State Only With Pmk - EncryptedVMGuestStateOnlyWithPmk
- Confidential
VMEncryption Type Encrypted With Pmk - EncryptedWithPmk
- Confidential
VMEncryption Type Encrypted With Cmk - EncryptedWithCmk
- Confidential
VMEncryption Type Non Persisted TPM - NonPersistedTPM
- Encrypted
VMGuest State Only With Pmk - EncryptedVMGuestStateOnlyWithPmk
- Encrypted
With Pmk - EncryptedWithPmk
- Encrypted
With Cmk - EncryptedWithCmk
- Non
Persisted TPM - NonPersistedTPM
- Encrypted
VMGuest State Only With Pmk - EncryptedVMGuestStateOnlyWithPmk
- Encrypted
With Pmk - EncryptedWithPmk
- Encrypted
With Cmk - EncryptedWithCmk
- Non
Persisted TPM - NonPersistedTPM
- ENCRYPTED_VM_GUEST_STATE_ONLY_WITH_PMK
- EncryptedVMGuestStateOnlyWithPmk
- ENCRYPTED_WITH_PMK
- EncryptedWithPmk
- ENCRYPTED_WITH_CMK
- EncryptedWithCmk
- NON_PERSISTED_TPM
- NonPersistedTPM
- "Encrypted
VMGuest State Only With Pmk" - EncryptedVMGuestStateOnlyWithPmk
- "Encrypted
With Pmk" - EncryptedWithPmk
- "Encrypted
With Cmk" - EncryptedWithCmk
- "Non
Persisted TPM" - NonPersistedTPM
DataDiskImageEncryption, DataDiskImageEncryptionArgs
- Lun 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 stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Lun 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 stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
DataDiskImageEncryptionResponse, DataDiskImageEncryptionResponseArgs
- Lun 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 stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Lun 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 stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- lun 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_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- lun 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.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
EdgeZoneStorageAccountType, EdgeZoneStorageAccountTypeArgs
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Standard
SSD_LRS - StandardSSD_LRS
- Premium_LRS
- Premium_LRS
- Edge
Zone Storage Account Type_Standard_LRS - Standard_LRS
- Edge
Zone Storage Account Type_Standard_ZRS - Standard_ZRS
- Edge
Zone Storage Account Type_Standard SSD_LRS - StandardSSD_LRS
- Edge
Zone Storage Account Type_Premium_LRS - Premium_LRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Standard
SSD_LRS - StandardSSD_LRS
- Premium_LRS
- Premium_LRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Standard
SSD_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
- "Standard
SSD_LRS" - StandardSSD_LRS
- "Premium_LRS"
- Premium_LRS
EncryptionImages, EncryptionImagesArgs
- Data
Disk List<Pulumi.Images Azure Native. Compute. Inputs. Data Disk Image Encryption> - A list of encryption specifications for data disk images.
- Os
Disk Pulumi.Image Azure Native. Compute. Inputs. OSDisk Image Encryption - Contains encryption settings for an OS disk image.
- Data
Disk []DataImages Disk Image Encryption - A list of encryption specifications for data disk images.
- Os
Disk OSDiskImage Image Encryption - Contains encryption settings for an OS disk image.
- data
Disk List<DataImages Disk Image Encryption> - A list of encryption specifications for data disk images.
- os
Disk OSDiskImage Image Encryption - Contains encryption settings for an OS disk image.
- data
Disk DataImages Disk Image Encryption[] - A list of encryption specifications for data disk images.
- os
Disk OSDiskImage Image Encryption - Contains encryption settings for an OS disk image.
- data_
disk_ Sequence[Dataimages Disk Image Encryption] - A list of encryption specifications for data disk images.
- os_
disk_ OSDiskimage Image Encryption - Contains encryption settings for an OS disk image.
- data
Disk List<Property Map>Images - A list of encryption specifications for data disk images.
- os
Disk Property MapImage - Contains encryption settings for an OS disk image.
EncryptionImagesResponse, EncryptionImagesResponseArgs
- Data
Disk List<Pulumi.Images Azure Native. Compute. Inputs. Data Disk Image Encryption Response> - A list of encryption specifications for data disk images.
- Os
Disk Pulumi.Image Azure Native. Compute. Inputs. OSDisk Image Encryption Response - Contains encryption settings for an OS disk image.
- Data
Disk []DataImages Disk Image Encryption Response - A list of encryption specifications for data disk images.
- Os
Disk OSDiskImage Image Encryption Response - Contains encryption settings for an OS disk image.
- data
Disk List<DataImages Disk Image Encryption Response> - A list of encryption specifications for data disk images.
- os
Disk OSDiskImage Image Encryption Response - Contains encryption settings for an OS disk image.
- data
Disk DataImages Disk Image Encryption Response[] - A list of encryption specifications for data disk images.
- os
Disk OSDiskImage Image Encryption Response - Contains encryption settings for an OS disk image.
- data_
disk_ Sequence[Dataimages Disk Image Encryption Response] - A list of encryption specifications for data disk images.
- os_
disk_ OSDiskimage Image Encryption Response - Contains encryption settings for an OS disk image.
- data
Disk List<Property Map>Images - A list of encryption specifications for data disk images.
- os
Disk Property MapImage - Contains encryption settings for an OS disk image.
ExecutedValidationResponse, ExecutedValidationResponseArgs
- Execution
Time string - This property specifies the starting timestamp.
- Status string
- This property specifies the status of the validationProfile of the image version.
- Type string
- This property specifies the type of image version validation.
- Version string
- This property specifies the valid version of the validation.
- Execution
Time string - This property specifies the starting timestamp.
- Status string
- This property specifies the status of the validationProfile of the image version.
- Type string
- This property specifies the type of image version validation.
- Version string
- This property specifies the valid version of the validation.
- execution
Time String - This property specifies the starting timestamp.
- status String
- This property specifies the status of the validationProfile of the image version.
- type String
- This property specifies the type of image version validation.
- version String
- This property specifies the valid version of the validation.
- execution
Time string - This property specifies the starting timestamp.
- status string
- This property specifies the status of the validationProfile of the image version.
- type string
- This property specifies the type of image version validation.
- version string
- This property specifies the valid version of the validation.
- execution_
time str - This property specifies the starting timestamp.
- status str
- This property specifies the status of the validationProfile of the image version.
- type str
- This property specifies the type of image version validation.
- version str
- This property specifies the valid version of the validation.
- execution
Time String - This property specifies the starting timestamp.
- status String
- This property specifies the status of the validationProfile of the image version.
- type String
- This property specifies the type of image version validation.
- version String
- This property specifies the valid version of the validation.
GalleryArtifactVersionFullSource, GalleryArtifactVersionFullSourceArgs
- Community
Gallery stringImage Id - 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.
- Virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- Community
Gallery stringImage Id - 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.
- Virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery StringImage Id - 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.
- virtual
Machine StringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery stringImage Id - 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.
- virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community_
gallery_ strimage_ id - 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.
- virtual_
machine_ strid - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery StringImage Id - 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.
- virtual
Machine StringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
GalleryArtifactVersionFullSourceResponse, GalleryArtifactVersionFullSourceResponseArgs
- Community
Gallery stringImage Id - 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.
- Virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- Community
Gallery stringImage Id - 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.
- Virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery StringImage Id - 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.
- virtual
Machine StringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery stringImage Id - 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.
- virtual
Machine stringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community_
gallery_ strimage_ id - 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.
- virtual_
machine_ strid - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
- community
Gallery StringImage Id - 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.
- virtual
Machine StringId - The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
GalleryDataDiskImage, GalleryDataDiskImageArgs
- Lun 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 Pulumi.Azure Native. Compute. Host Caching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Disk Image Source - The source for the disk image.
- Lun 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
Gallery
Disk Image Source - The source for the disk image.
- lun 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.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source - The source for the disk image.
- lun 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.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source - The source for the disk image.
- lun 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
Gallery
Disk Image Source - The source for the disk image.
- lun 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.
- host
Caching "None" | "ReadOnly" | "Read Write" - 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 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 intGB - This property indicates the size of the VHD to be created.
- Host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Disk Image Source Response - The source for the disk image.
- Lun 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 intGB - This property indicates the size of the VHD to be created.
- Host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Gallery
Disk Image Source Response - The source for the disk image.
- lun 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.
- size
In IntegerGB - This property indicates the size of the VHD to be created.
- host
Caching String - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source Response - The source for the disk image.
- lun 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.
- size
In numberGB - This property indicates the size of the VHD to be created.
- host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source Response - The source for the disk image.
- lun 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_ intgb - 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
Gallery
Disk Image Source Response - The source for the disk image.
- lun 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.
- size
In NumberGB - This property indicates the size of the VHD to be created.
- host
Caching 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.
- Storage
Account stringId - 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.
- Storage
Account stringId - 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.
- storage
Account StringId - 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.
- storage
Account stringId - 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.
- storage_
account_ strid - 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.
- storage
Account StringId - 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.
- Storage
Account stringId - 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.
- Storage
Account stringId - 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.
- storage
Account StringId - 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.
- storage
Account stringId - 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.
- storage_
account_ strid - 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.
- storage
Account StringId - 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.
Azure Native. Compute. Gallery Extended Location Type - It is type of the extended location.
- Name string
- Type
string | Gallery
Extended Location Type - It is type of the extended location.
- name String
- type
String | Gallery
Extended Location Type - It is type of the extended location.
- name string
- type
string | Gallery
Extended Location Type - It is type of the extended location.
- name str
- type
str | Gallery
Extended Location Type - It is type of the extended location.
- name String
- type
String | "Edge
Zone" | "Unknown" - It is type of the extended location.
GalleryExtendedLocationResponse, GalleryExtendedLocationResponseArgs
GalleryExtendedLocationType, GalleryExtendedLocationTypeArgs
- Edge
Zone - EdgeZone
- Unknown
- Unknown
- Gallery
Extended Location Type Edge Zone - EdgeZone
- Gallery
Extended Location Type Unknown - Unknown
- Edge
Zone - EdgeZone
- Unknown
- Unknown
- Edge
Zone - EdgeZone
- Unknown
- Unknown
- EDGE_ZONE
- EdgeZone
- UNKNOWN
- Unknown
- "Edge
Zone" - EdgeZone
- "Unknown"
- Unknown
GalleryImageVersionPublishingProfile, GalleryImageVersionPublishingProfileArgs
- End
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- Exclude
From boolLatest - 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 string | Pulumi.Azure Native. Compute. Replication Mode - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- Storage
Account string | Pulumi.Type Azure Native. Compute. Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- Target
Extended List<Pulumi.Locations Azure Native. Compute. Inputs. Gallery Target Extended Location> - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- Target
Regions List<Pulumi.Azure Native. Compute. Inputs. Target Region> - The target regions where the Image Version is going to be replicated to. This property is updatable.
- End
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- Exclude
From boolLatest - 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 string | ReplicationMode - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- Storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- Target
Extended []GalleryLocations Target Extended Location - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- Target
Regions []TargetRegion - The target regions where the Image Version is going to be replicated to. This property is updatable.
- end
Of StringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From BooleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode String | ReplicationMode - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account String | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended List<GalleryLocations Target Extended Location> - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions List<TargetRegion> - The target regions where the Image Version is going to be replicated to. This property is updatable.
- end
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From booleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode string | ReplicationMode - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended GalleryLocations Target Extended Location[] - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions TargetRegion[] - The target regions where the Image Version is going to be replicated to. This property is updatable.
- end_
of_ strlife_ date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude_
from_ boollatest - 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_ str | Storagetype Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- target_
extended_ Sequence[Gallerylocations Target Extended Location] - 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.
- end
Of StringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From BooleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode String | "Full" | "Shallow" - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumType V2_LRS" - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended List<Property Map>Locations - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions List<Property Map> - The target regions where the Image Version is going to be replicated to. This property is updatable.
GalleryImageVersionPublishingProfileResponse, GalleryImageVersionPublishingProfileResponseArgs
- Published
Date string - The timestamp for when the gallery image version is published.
- End
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- Exclude
From boolLatest - 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 string - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- Target
Extended List<Pulumi.Locations Azure Native. Compute. Inputs. Gallery Target Extended Location Response> - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- Target
Regions List<Pulumi.Azure Native. Compute. Inputs. Target Region Response> - The target regions where the Image Version is going to be replicated to. This property is updatable.
- Published
Date string - The timestamp for when the gallery image version is published.
- End
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- Exclude
From boolLatest - 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 string - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- Target
Extended []GalleryLocations Target Extended Location Response - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- Target
Regions []TargetRegion Response - The target regions where the Image Version is going to be replicated to. This property is updatable.
- published
Date String - The timestamp for when the gallery image version is published.
- end
Of StringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From BooleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode String - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended List<GalleryLocations Target Extended Location Response> - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions List<TargetRegion Response> - The target regions where the Image Version is going to be replicated to. This property is updatable.
- published
Date string - The timestamp for when the gallery image version is published.
- end
Of stringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From booleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode string - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended GalleryLocations Target Extended Location Response[] - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions TargetRegion Response[] - The target regions where the Image Version is going to be replicated to. This property is updatable.
- published_
date str - The timestamp for when the gallery image version is published.
- end_
of_ strlife_ date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude_
from_ boollatest - 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_ strtype - Specifies the storage account type to be used to store the image. This property is not updatable.
- target_
extended_ Sequence[Gallerylocations Target Extended Location Response] - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target_
regions Sequence[TargetRegion Response] - The target regions where the Image Version is going to be replicated to. This property is updatable.
- published
Date String - The timestamp for when the gallery image version is published.
- end
Of StringLife Date - The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.
- exclude
From BooleanLatest - If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
- replica
Count 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.
- replication
Mode String - Optional parameter which specifies the mode to be used for replication. This property is not updatable.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Extended List<Property Map>Locations - The target extended locations where the Image Version is going to be replicated to. This property is updatable.
- target
Regions List<Property Map> - The target regions where the Image Version is going to be replicated to. This property is updatable.
GalleryImageVersionSafetyProfile, GalleryImageVersionSafetyProfileArgs
- Allow
Deletion boolOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- Block
Deletion boolBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- Allow
Deletion boolOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- Block
Deletion boolBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- allow
Deletion BooleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion BooleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- allow
Deletion booleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion booleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- allow_
deletion_ boolof_ replicated_ locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block_
deletion_ boolbefore_ end_ of_ life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- allow
Deletion BooleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion BooleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
GalleryImageVersionSafetyProfileResponse, GalleryImageVersionSafetyProfileResponseArgs
- Policy
Violations List<Pulumi.Azure Native. Compute. Inputs. Policy Violation Response> - A list of Policy Violations that have been reported for this Gallery Image Version.
- Reported
For boolPolicy Violation - Indicates whether this image has been reported as violating Microsoft's policies.
- Allow
Deletion boolOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- Block
Deletion boolBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- Policy
Violations []PolicyViolation Response - A list of Policy Violations that have been reported for this Gallery Image Version.
- Reported
For boolPolicy Violation - Indicates whether this image has been reported as violating Microsoft's policies.
- Allow
Deletion boolOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- Block
Deletion boolBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- policy
Violations List<PolicyViolation Response> - A list of Policy Violations that have been reported for this Gallery Image Version.
- reported
For BooleanPolicy Violation - Indicates whether this image has been reported as violating Microsoft's policies.
- allow
Deletion BooleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion BooleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- policy
Violations PolicyViolation Response[] - A list of Policy Violations that have been reported for this Gallery Image Version.
- reported
For booleanPolicy Violation - Indicates whether this image has been reported as violating Microsoft's policies.
- allow
Deletion booleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion booleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- policy_
violations Sequence[PolicyViolation Response] - A list of Policy Violations that have been reported for this Gallery Image Version.
- reported_
for_ boolpolicy_ violation - Indicates whether this image has been reported as violating Microsoft's policies.
- allow_
deletion_ boolof_ replicated_ locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block_
deletion_ boolbefore_ end_ of_ life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
- policy
Violations List<Property Map> - A list of Policy Violations that have been reported for this Gallery Image Version.
- reported
For BooleanPolicy Violation - Indicates whether this image has been reported as violating Microsoft's policies.
- allow
Deletion BooleanOf Replicated Locations - Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
- block
Deletion BooleanBefore End Of Life - Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
GalleryImageVersionStorageProfile, GalleryImageVersionStorageProfileArgs
- Data
Disk List<Pulumi.Images Azure Native. Compute. Inputs. Gallery Data Disk Image> - A list of data disk images.
- Os
Disk Pulumi.Image Azure Native. Compute. Inputs. Gallery OSDisk Image - This is the OS disk image.
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Artifact Version Full Source - The source of the gallery artifact version.
- Data
Disk []GalleryImages Data Disk Image - A list of data disk images.
- Os
Disk GalleryImage OSDisk Image - This is the OS disk image.
- Source
Gallery
Artifact Version Full Source - The source of the gallery artifact version.
- data
Disk List<GalleryImages Data Disk Image> - A list of data disk images.
- os
Disk GalleryImage OSDisk Image - This is the OS disk image.
- source
Gallery
Artifact Version Full Source - The source of the gallery artifact version.
- data
Disk GalleryImages Data Disk Image[] - A list of data disk images.
- os
Disk GalleryImage OSDisk Image - This is the OS disk image.
- source
Gallery
Artifact Version Full Source - The source of the gallery artifact version.
- data_
disk_ Sequence[Galleryimages Data Disk Image] - A list of data disk images.
- os_
disk_ Galleryimage OSDisk Image - This is the OS disk image.
- source
Gallery
Artifact Version Full Source - The source of the gallery artifact version.
- data
Disk List<Property Map>Images - A list of data disk images.
- os
Disk Property MapImage - This is the OS disk image.
- source Property Map
- The source of the gallery artifact version.
GalleryImageVersionStorageProfileResponse, GalleryImageVersionStorageProfileResponseArgs
- Data
Disk List<Pulumi.Images Azure Native. Compute. Inputs. Gallery Data Disk Image Response> - A list of data disk images.
- Os
Disk Pulumi.Image Azure Native. Compute. Inputs. Gallery OSDisk Image Response - This is the OS disk image.
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Artifact Version Full Source Response - The source of the gallery artifact version.
- Data
Disk []GalleryImages Data Disk Image Response - A list of data disk images.
- Os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- Source
Gallery
Artifact Version Full Source Response - The source of the gallery artifact version.
- data
Disk List<GalleryImages Data Disk Image Response> - A list of data disk images.
- os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- source
Gallery
Artifact Version Full Source Response - The source of the gallery artifact version.
- data
Disk GalleryImages Data Disk Image Response[] - A list of data disk images.
- os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- source
Gallery
Artifact Version Full Source Response - The source of the gallery artifact version.
- data_
disk_ Sequence[Galleryimages Data Disk Image Response] - A list of data disk images.
- os_
disk_ Galleryimage OSDisk Image Response - This is the OS disk image.
- source
Gallery
Artifact Version Full Source Response - The source of the gallery artifact version.
- data
Disk List<Property Map>Images - A list of data disk images.
- os
Disk Property MapImage - This is the OS disk image.
- source Property Map
- The source of the gallery artifact version.
GalleryImageVersionUefiSettings, GalleryImageVersionUefiSettingsArgs
- Additional
Signatures Pulumi.Azure Native. Compute. Inputs. Uefi Key Signatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- Signature
Template List<Union<string, Pulumi.Names Azure Native. Compute. Uefi Signature Template Name>> - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- Additional
Signatures UefiKey Signatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- Signature
Template []stringNames - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures UefiKey Signatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template List<Either<String,UefiNames Signature Template Name>> - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures UefiKey Signatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template (string | UefiNames Signature Template Name)[] - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional_
signatures UefiKey Signatures - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature_
template_ Sequence[Union[str, Uefinames Signature Template Name]] - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures Property Map - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template List<String | "NoNames Signature Template" | "Microsoft Uefi Certificate Authority Template" | "Microsoft Windows Template"> - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
GalleryImageVersionUefiSettingsResponse, GalleryImageVersionUefiSettingsResponseArgs
- Additional
Signatures Pulumi.Azure Native. Compute. Inputs. Uefi Key Signatures Response - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- Signature
Template List<string>Names - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- Additional
Signatures UefiKey Signatures Response - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- Signature
Template []stringNames - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures UefiKey Signatures Response - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template List<String>Names - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures UefiKey Signatures Response - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template string[]Names - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional_
signatures UefiKey Signatures Response - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature_
template_ Sequence[str]names - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
- additional
Signatures Property Map - Additional UEFI key signatures that will be added to the image in addition to the signature templates
- signature
Template List<String>Names - The name of the template(s) that contains default UEFI key signatures that will be added to the image.
GalleryOSDiskImage, GalleryOSDiskImageArgs
- Host
Caching Pulumi.Azure Native. Compute. Host Caching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Disk Image Source - The source for the disk image.
- Host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Gallery
Disk Image Source - The source for the disk image.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source - The source for the disk image.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source - The source for the disk image.
- host_
caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source - The source for the disk image.
- host
Caching "None" | "ReadOnly" | "Read Write" - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source Property Map
- The source for the disk image.
GalleryOSDiskImageResponse, GalleryOSDiskImageResponseArgs
- Size
In intGB - This property indicates the size of the VHD to be created.
- Host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Pulumi.
Azure Native. Compute. Inputs. Gallery Disk Image Source Response - The source for the disk image.
- Size
In intGB - This property indicates the size of the VHD to be created.
- Host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Gallery
Disk Image Source Response - The source for the disk image.
- size
In IntegerGB - This property indicates the size of the VHD to be created.
- host
Caching String - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source Response - The source for the disk image.
- size
In numberGB - This property indicates the size of the VHD to be created.
- host
Caching string - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Disk Image Source Response - The source for the disk image.
- size_
in_ intgb - 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
Gallery
Disk Image Source Response - The source for the disk image.
- size
In NumberGB - This property indicates the size of the VHD to be created.
- host
Caching 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.
Azure Native. Compute. Inputs. Encryption Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Extended
Location Pulumi.Azure Native. Compute. Inputs. Gallery Extended Location - The name of the extended location.
- Extended
Location intReplica Count - 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.
- Storage
Account string | Pulumi.Type Azure Native. Compute. Edge Zone Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- Encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Extended
Location GalleryExtended Location - The name of the extended location.
- Extended
Location intReplica Count - 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.
- Storage
Account string | EdgeType Zone Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended
Location GalleryExtended Location - The name of the extended location.
- extended
Location IntegerReplica Count - 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.
- storage
Account String | EdgeType Zone Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended
Location GalleryExtended Location - The name of the extended location.
- extended
Location numberReplica Count - 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.
- storage
Account string | EdgeType Zone Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended_
location GalleryExtended Location - The name of the extended location.
- extended_
location_ intreplica_ count - 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_ str | Edgetype Zone Storage Account Type - 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.
- extended
Location Property Map - The name of the extended location.
- extended
Location NumberReplica Count - 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.
- storage
Account String | "Standard_LRS" | "Standard_ZRS" | "StandardType SSD_LRS" | "Premium_LRS" - Specifies the storage account type to be used to store the image. This property is not updatable.
GalleryTargetExtendedLocationResponse, GalleryTargetExtendedLocationResponseArgs
- Encryption
Pulumi.
Azure Native. Compute. Inputs. Encryption Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Extended
Location Pulumi.Azure Native. Compute. Inputs. Gallery Extended Location Response - The name of the extended location.
- Extended
Location intReplica Count - 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.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- Encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Extended
Location GalleryExtended Location Response - The name of the extended location.
- Extended
Location intReplica Count - 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.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended
Location GalleryExtended Location Response - The name of the extended location.
- extended
Location IntegerReplica Count - 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.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended
Location GalleryExtended Location Response - The name of the extended location.
- extended
Location numberReplica Count - 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.
- storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- extended_
location GalleryExtended Location Response - The name of the extended location.
- extended_
location_ intreplica_ count - 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_ strtype - 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.
- extended
Location Property Map - The name of the extended location.
- extended
Location NumberReplica Count - 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.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
HostCaching, HostCachingArgs
- None
- None
- Read
Only - ReadOnly
- Read
Write - ReadWrite
- Host
Caching None - None
- Host
Caching Read Only - ReadOnly
- Host
Caching Read Write - ReadWrite
- None
- None
- Read
Only - ReadOnly
- Read
Write - ReadWrite
- None
- None
- Read
Only - ReadOnly
- Read
Write - ReadWrite
- NONE
- None
- READ_ONLY
- ReadOnly
- READ_WRITE
- ReadWrite
- "None"
- None
- "Read
Only" - ReadOnly
- "Read
Write" - ReadWrite
ImageVersionSecurityProfile, ImageVersionSecurityProfileArgs
- Uefi
Settings Pulumi.Azure Native. Compute. Inputs. Gallery Image Version Uefi Settings - Contains UEFI settings for the image version.
- Uefi
Settings GalleryImage Version Uefi Settings - Contains UEFI settings for the image version.
- uefi
Settings GalleryImage Version Uefi Settings - Contains UEFI settings for the image version.
- uefi
Settings GalleryImage Version Uefi Settings - Contains UEFI settings for the image version.
- uefi_
settings GalleryImage Version Uefi Settings - Contains UEFI settings for the image version.
- uefi
Settings Property Map - Contains UEFI settings for the image version.
ImageVersionSecurityProfileResponse, ImageVersionSecurityProfileResponseArgs
- Uefi
Settings Pulumi.Azure Native. Compute. Inputs. Gallery Image Version Uefi Settings Response - Contains UEFI settings for the image version.
- Uefi
Settings GalleryImage Version Uefi Settings Response - Contains UEFI settings for the image version.
- uefi
Settings GalleryImage Version Uefi Settings Response - Contains UEFI settings for the image version.
- uefi
Settings GalleryImage Version Uefi Settings Response - Contains UEFI settings for the image version.
- uefi_
settings GalleryImage Version Uefi Settings Response - Contains UEFI settings for the image version.
- uefi
Settings Property Map - Contains UEFI settings for the image version.
OSDiskImageEncryption, OSDiskImageEncryptionArgs
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Security
Profile Pulumi.Azure Native. Compute. Inputs. OSDisk Image Security Profile - This property specifies the security profile of an OS disk image.
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Security
Profile OSDiskImage Security Profile - This property specifies the security profile of an OS disk image.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile OSDiskImage Security Profile - This property specifies the security profile of an OS disk image.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile OSDiskImage Security Profile - This property specifies the security profile of an OS disk image.
- disk_
encryption_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- security_
profile OSDiskImage Security Profile - This property specifies the security profile of an OS disk image.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile Property Map - This property specifies the security profile of an OS disk image.
OSDiskImageEncryptionResponse, OSDiskImageEncryptionResponseArgs
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Security
Profile Pulumi.Azure Native. Compute. Inputs. OSDisk Image Security Profile Response - This property specifies the security profile of an OS disk image.
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Security
Profile OSDiskImage Security Profile Response - This property specifies the security profile of an OS disk image.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile OSDiskImage Security Profile Response - This property specifies the security profile of an OS disk image.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile OSDiskImage Security Profile Response - This property specifies the security profile of an OS disk image.
- disk_
encryption_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- security_
profile OSDiskImage Security Profile Response - This property specifies the security profile of an OS disk image.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- security
Profile Property Map - This property specifies the security profile of an OS disk image.
OSDiskImageSecurityProfile, OSDiskImageSecurityProfileArgs
- Confidential
VMEncryption string | Pulumi.Type Azure Native. Compute. Confidential VMEncryption Type - confidential VM encryption types
- Secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- Confidential
VMEncryption string | ConfidentialType VMEncryption Type - confidential VM encryption types
- Secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- confidential
VMEncryption String | ConfidentialType VMEncryption Type - confidential VM encryption types
- secure
VMDisk StringEncryption Set Id - secure VM disk encryption set id
- confidential
VMEncryption string | ConfidentialType VMEncryption Type - confidential VM encryption types
- secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- confidential_
vm_ str | Confidentialencryption_ type VMEncryption Type - confidential VM encryption types
- secure_
vm_ strdisk_ encryption_ set_ id - secure VM disk encryption set id
- confidential
VMEncryption String | "EncryptedType VMGuest State Only With Pmk" | "Encrypted With Pmk" | "Encrypted With Cmk" | "Non Persisted TPM" - confidential VM encryption types
- secure
VMDisk StringEncryption Set Id - secure VM disk encryption set id
OSDiskImageSecurityProfileResponse, OSDiskImageSecurityProfileResponseArgs
- Confidential
VMEncryption stringType - confidential VM encryption types
- Secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- Confidential
VMEncryption stringType - confidential VM encryption types
- Secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- confidential
VMEncryption StringType - confidential VM encryption types
- secure
VMDisk StringEncryption Set Id - secure VM disk encryption set id
- confidential
VMEncryption stringType - confidential VM encryption types
- secure
VMDisk stringEncryption Set Id - secure VM disk encryption set id
- confidential_
vm_ strencryption_ type - confidential VM encryption types
- secure_
vm_ strdisk_ encryption_ set_ id - secure VM disk encryption set id
- confidential
VMEncryption StringType - confidential VM encryption types
- secure
VMDisk StringEncryption Set Id - secure VM disk encryption set id
PlatformAttributeResponse, PlatformAttributeResponseArgs
PolicyViolationResponse, PolicyViolationResponseArgs
RegionalReplicationStatusResponse, RegionalReplicationStatusResponseArgs
ReplicationMode, ReplicationModeArgs
- Full
- Full
- Shallow
- Shallow
- Replication
Mode Full - Full
- Replication
Mode Shallow - Shallow
- Full
- Full
- Shallow
- Shallow
- Full
- Full
- Shallow
- Shallow
- FULL
- Full
- SHALLOW
- Shallow
- "Full"
- Full
- "Shallow"
- Shallow
ReplicationStatusResponse, ReplicationStatusResponseArgs
- Aggregated
State string - This is the aggregated replication status based on all the regional replication status flags.
- Summary
List<Pulumi.
Azure Native. Compute. Inputs. Regional Replication Status Response> - This is a summary of replication status for each region.
- Aggregated
State string - This is the aggregated replication status based on all the regional replication status flags.
- Summary
[]Regional
Replication Status Response - This is a summary of replication status for each region.
- aggregated
State String - This is the aggregated replication status based on all the regional replication status flags.
- summary
List<Regional
Replication Status Response> - This is a summary of replication status for each region.
- aggregated
State string - This is the aggregated replication status based on all the regional replication status flags.
- summary
Regional
Replication Status Response[] - This is a summary of replication status for each region.
- aggregated_
state str - This is the aggregated replication status based on all the regional replication status flags.
- summary
Sequence[Regional
Replication Status Response] - This is a summary of replication status for each region.
- aggregated
State String - This is the aggregated replication status based on all the regional replication status flags.
- summary 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
- Premium
V2_LRS - PremiumV2_LRS
- Storage
Account Type_Standard_LRS - Standard_LRS
- Storage
Account Type_Standard_ZRS - Standard_ZRS
- Storage
Account Type_Premium_LRS - Premium_LRS
- Storage
Account Type_Premium V2_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
- Premium
V2_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
- "Premium
V2_LRS" - PremiumV2_LRS
TargetRegion, TargetRegionArgs
- Name string
- The name of the region.
- Additional
Replica List<Pulumi.Sets Azure Native. Compute. Inputs. Additional Replica Set> - List of storage sku with replica count to create direct drive replicas.
- Encryption
Pulumi.
Azure Native. Compute. Inputs. Encryption Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Exclude
From boolLatest - Contains the flag setting to hide an image when users specify version='latest'
- Regional
Replica intCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- Storage
Account string | Pulumi.Type Azure Native. Compute. Storage Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- Name string
- The name of the region.
- Additional
Replica []AdditionalSets Replica Set - List of storage sku with replica count to create direct drive replicas.
- Encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Exclude
From boolLatest - Contains the flag setting to hide an image when users specify version='latest'
- Regional
Replica intCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- Storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- name String
- The name of the region.
- additional
Replica List<AdditionalSets Replica Set> - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude
From BooleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica IntegerCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account String | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- name string
- The name of the region.
- additional
Replica AdditionalSets Replica Set[] - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude
From booleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica numberCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- name str
- The name of the region.
- additional_
replica_ Sequence[Additionalsets Replica Set] - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude_
from_ boollatest - Contains the flag setting to hide an image when users specify version='latest'
- regional_
replica_ intcount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage_
account_ str | Storagetype Account Type - Specifies the storage account type to be used to store the image. This property is not updatable.
- name String
- The name of the region.
- additional
Replica List<Property Map>Sets - 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.
- exclude
From BooleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica NumberCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" | "PremiumType V2_LRS" - Specifies the storage account type to be used to store the image. This property is not updatable.
TargetRegionResponse, TargetRegionResponseArgs
- Name string
- The name of the region.
- Additional
Replica List<Pulumi.Sets Azure Native. Compute. Inputs. Additional Replica Set Response> - List of storage sku with replica count to create direct drive replicas.
- Encryption
Pulumi.
Azure Native. Compute. Inputs. Encryption Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Exclude
From boolLatest - Contains the flag setting to hide an image when users specify version='latest'
- Regional
Replica intCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- Name string
- The name of the region.
- Additional
Replica []AdditionalSets Replica Set Response - List of storage sku with replica count to create direct drive replicas.
- Encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- Exclude
From boolLatest - Contains the flag setting to hide an image when users specify version='latest'
- Regional
Replica intCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- name String
- The name of the region.
- additional
Replica List<AdditionalSets Replica Set Response> - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude
From BooleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica IntegerCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- name string
- The name of the region.
- additional
Replica AdditionalSets Replica Set Response[] - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude
From booleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica numberCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- name str
- The name of the region.
- additional_
replica_ Sequence[Additionalsets Replica Set Response] - List of storage sku with replica count to create direct drive replicas.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- exclude_
from_ boollatest - Contains the flag setting to hide an image when users specify version='latest'
- regional_
replica_ intcount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage_
account_ strtype - Specifies the storage account type to be used to store the image. This property is not updatable.
- name String
- The name of the region.
- additional
Replica List<Property Map>Sets - 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.
- exclude
From BooleanLatest - Contains the flag setting to hide an image when users specify version='latest'
- regional
Replica NumberCount - The number of replicas of the Image Version to be created per region. This property is updatable.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
UefiKey, UefiKeyArgs
- Type
string | Pulumi.
Azure Native. Compute. Uefi Key Type - The type of key signature.
- Value List<string>
- The value of the key signature.
- Type
string | Uefi
Key Type - The type of key signature.
- Value []string
- The value of the key signature.
- type
String | Uefi
Key Type - The type of key signature.
- value List<String>
- The value of the key signature.
- type
string | Uefi
Key Type - The type of key signature.
- value string[]
- The value of the key signature.
- type
str | Uefi
Key Type - The type of key signature.
- value Sequence[str]
- The value of the key signature.
- type String | "sha256" | "x509"
- The type of key signature.
- value List<String>
- The value of the key signature.
UefiKeyResponse, UefiKeyResponseArgs
UefiKeySignatures, UefiKeySignaturesArgs
- Db
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key> - The database of UEFI keys for this image version.
- Dbx
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key> - The database of revoked UEFI keys for this image version.
- Kek
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key> - The Key Encryption Keys of this image version.
- Pk
Pulumi.
Azure Native. Compute. Inputs. Uefi Key - The Platform Key of this image version.
- db
List<Uefi
Key> - The database of UEFI keys for this image version.
- dbx
List<Uefi
Key> - The database of revoked UEFI keys for this image version.
- kek
List<Uefi
Key> - The Key Encryption Keys of this image version.
- pk
Uefi
Key - The Platform Key of this image version.
- db
Sequence[Uefi
Key] - The database of UEFI keys for this image version.
- dbx
Sequence[Uefi
Key] - The database of revoked UEFI keys for this image version.
- kek
Sequence[Uefi
Key] - The Key Encryption Keys of this image version.
- pk
Uefi
Key - The Platform Key of this image version.
- db List<Property Map>
- The database of UEFI keys for this image version.
- dbx List<Property Map>
- The database of revoked UEFI keys for this image version.
- kek List<Property Map>
- The Key Encryption Keys of this image version.
- pk Property Map
- The Platform Key of this image version.
UefiKeySignaturesResponse, UefiKeySignaturesResponseArgs
- Db
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key Response> - The database of UEFI keys for this image version.
- Dbx
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key Response> - The database of revoked UEFI keys for this image version.
- Kek
List<Pulumi.
Azure Native. Compute. Inputs. Uefi Key Response> - The Key Encryption Keys of this image version.
- Pk
Pulumi.
Azure Native. Compute. Inputs. Uefi Key Response - The Platform Key of this image version.
- Db
[]Uefi
Key Response - The database of UEFI keys for this image version.
- Dbx
[]Uefi
Key Response - The database of revoked UEFI keys for this image version.
- Kek
[]Uefi
Key Response - The Key Encryption Keys of this image version.
- Pk
Uefi
Key Response - The Platform Key of this image version.
- db
List<Uefi
Key Response> - The database of UEFI keys for this image version.
- dbx
List<Uefi
Key Response> - The database of revoked UEFI keys for this image version.
- kek
List<Uefi
Key Response> - The Key Encryption Keys of this image version.
- pk
Uefi
Key Response - The Platform Key of this image version.
- db
Uefi
Key Response[] - The database of UEFI keys for this image version.
- dbx
Uefi
Key Response[] - The database of revoked UEFI keys for this image version.
- kek
Uefi
Key Response[] - The Key Encryption Keys of this image version.
- pk
Uefi
Key Response - The Platform Key of this image version.
- db
Sequence[Uefi
Key Response] - The database of UEFI keys for this image version.
- dbx
Sequence[Uefi
Key Response] - The database of revoked UEFI keys for this image version.
- kek
Sequence[Uefi
Key Response] - The Key Encryption Keys of this image version.
- pk
Uefi
Key Response - The Platform Key of this image version.
- db List<Property Map>
- The database of UEFI keys for this image version.
- dbx List<Property Map>
- The database of revoked UEFI keys for this image version.
- kek List<Property Map>
- The Key Encryption Keys of this image version.
- pk Property Map
- The Platform Key of this image version.
UefiKeyType, UefiKeyTypeArgs
- Sha256
- sha256
- X509
- x509
- Uefi
Key Type Sha256 - sha256
- Uefi
Key Type X509 - x509
- Sha256
- sha256
- X509
- x509
- Sha256
- sha256
- X509
- x509
- SHA256
- sha256
- X509
- x509
- "sha256"
- sha256
- "x509"
- x509
UefiSignatureTemplateName, UefiSignatureTemplateNameArgs
- No
Signature Template - NoSignatureTemplate
- Microsoft
Uefi Certificate Authority Template - MicrosoftUefiCertificateAuthorityTemplate
- Microsoft
Windows Template - MicrosoftWindowsTemplate
- Uefi
Signature Template Name No Signature Template - NoSignatureTemplate
- Uefi
Signature Template Name Microsoft Uefi Certificate Authority Template - MicrosoftUefiCertificateAuthorityTemplate
- Uefi
Signature Template Name Microsoft Windows Template - MicrosoftWindowsTemplate
- No
Signature Template - NoSignatureTemplate
- Microsoft
Uefi Certificate Authority Template - MicrosoftUefiCertificateAuthorityTemplate
- Microsoft
Windows Template - MicrosoftWindowsTemplate
- No
Signature Template - NoSignatureTemplate
- Microsoft
Uefi Certificate Authority Template - MicrosoftUefiCertificateAuthorityTemplate
- Microsoft
Windows Template - MicrosoftWindowsTemplate
- NO_SIGNATURE_TEMPLATE
- NoSignatureTemplate
- MICROSOFT_UEFI_CERTIFICATE_AUTHORITY_TEMPLATE
- MicrosoftUefiCertificateAuthorityTemplate
- MICROSOFT_WINDOWS_TEMPLATE
- MicrosoftWindowsTemplate
- "No
Signature Template" - NoSignatureTemplate
- "Microsoft
Uefi Certificate Authority Template" - MicrosoftUefiCertificateAuthorityTemplate
- "Microsoft
Windows Template" - MicrosoftWindowsTemplate
ValidationsProfileResponse, ValidationsProfileResponseArgs
- Executed
Validations List<Pulumi.Azure Native. Compute. Inputs. Executed Validation Response> - Platform
Attributes List<Pulumi.Azure Native. Compute. Inputs. Platform Attribute Response> - This specifies the pub, offer, sku and version of the image version metadata
- Validation
Etag string - The published time of the image version
- Executed
Validations []ExecutedValidation Response - Platform
Attributes []PlatformAttribute Response - This specifies the pub, offer, sku and version of the image version metadata
- Validation
Etag string - The published time of the image version
- executed
Validations List<ExecutedValidation Response> - platform
Attributes List<PlatformAttribute Response> - This specifies the pub, offer, sku and version of the image version metadata
- validation
Etag String - The published time of the image version
- executed
Validations ExecutedValidation Response[] - platform
Attributes PlatformAttribute Response[] - This specifies the pub, offer, sku and version of the image version metadata
- validation
Etag string - The published time of the image version
- executed_
validations Sequence[ExecutedValidation Response] - platform_
attributes Sequence[PlatformAttribute Response] - This specifies the pub, offer, sku and version of the image version metadata
- validation_
etag str - The published time of the image version
- executed
Validations List<Property Map> - platform
Attributes List<Property Map> - This specifies the pub, offer, sku and version of the image version metadata
- validation
Etag String - The published time of the image version
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0