azure-native.compute.GalleryImageVersion
Explore with Pulumi AI
Specifies information about the gallery image version that you want to create or update. API Version: 2020-09-30.
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",
},
},
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",
},
},
Name = "East US",
RegionalReplicaCount = 2,
StorageAccountType = "Standard_ZRS",
},
},
},
ResourceGroupName = "myResourceGroup",
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
},
},
});
});
Coming soon!
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 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(Map.of("targetRegions",
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"))
)),
Map.entry("name", "West US"),
Map.entry("regionalReplicaCount", 1)
),
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"))
)),
Map.entry("name", "East US"),
Map.entry("regionalReplicaCount", 2),
Map.entry("storageAccountType", "Standard_ZRS")
)))
.resourceGroupName("myResourceGroup")
.storageProfile(Map.of("source", Map.of("id", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}")))
.build());
}
}
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=azure_native.compute.GalleryImageVersionPublishingProfileResponseArgs(
target_regions=[
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
),
},
"name": "West US",
"regionalReplicaCount": 1,
},
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
),
},
"name": "East US",
"regionalReplicaCount": 2,
"storageAccountType": "Standard_ZRS",
},
],
),
resource_group_name="myResourceGroup",
storage_profile=azure_native.compute.GalleryImageVersionStorageProfileResponseArgs(
source=azure_native.compute.GalleryArtifactVersionSourceArgs(
id="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}",
),
))
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",
},
},
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",
},
},
name: "East US",
regionalReplicaCount: 2,
storageAccountType: "Standard_ZRS",
},
],
},
resourceGroupName: "myResourceGroup",
storageProfile: {
source: {
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
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
name: East US
regionalReplicaCount: 2
storageAccountType: Standard_ZRS
resourceGroupName: myResourceGroup
storageProfile:
source:
id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}
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",
},
},
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",
},
},
Name = "East US",
RegionalReplicaCount = 2,
StorageAccountType = "Standard_ZRS",
},
},
},
ResourceGroupName = "myResourceGroup",
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
},
},
});
});
Coming soon!
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 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(Map.of("targetRegions",
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"))
)),
Map.entry("name", "West US"),
Map.entry("regionalReplicaCount", 1)
),
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"))
)),
Map.entry("name", "East US"),
Map.entry("regionalReplicaCount", 2),
Map.entry("storageAccountType", "Standard_ZRS")
)))
.resourceGroupName("myResourceGroup")
.storageProfile(Map.of("source", Map.of("id", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}")))
.build());
}
}
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=azure_native.compute.GalleryImageVersionPublishingProfileResponseArgs(
target_regions=[
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
),
},
"name": "West US",
"regionalReplicaCount": 1,
},
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
),
},
"name": "East US",
"regionalReplicaCount": 2,
"storageAccountType": "Standard_ZRS",
},
],
),
resource_group_name="myResourceGroup",
storage_profile=azure_native.compute.GalleryImageVersionStorageProfileResponseArgs(
source=azure_native.compute.GalleryArtifactVersionSourceArgs(
id="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}",
),
))
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",
},
},
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",
},
},
name: "East US",
regionalReplicaCount: 2,
storageAccountType: "Standard_ZRS",
},
],
},
resourceGroupName: "myResourceGroup",
storageProfile: {
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
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
name: East US
regionalReplicaCount: 2
storageAccountType: Standard_ZRS
resourceGroupName: myResourceGroup
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",
},
},
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",
},
},
Name = "East US",
RegionalReplicaCount = 2,
StorageAccountType = "Standard_ZRS",
},
},
},
ResourceGroupName = "myResourceGroup",
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.GalleryArtifactVersionSourceArgs
{
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.GalleryArtifactVersionSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}",
},
},
},
});
});
Coming soon!
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 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(Map.of("targetRegions",
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages", Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"))
)),
Map.entry("name", "West US"),
Map.entry("regionalReplicaCount", 1)
),
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages", Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"))
)),
Map.entry("name", "East US"),
Map.entry("regionalReplicaCount", 2),
Map.entry("storageAccountType", "Standard_ZRS")
)))
.resourceGroupName("myResourceGroup")
.storageProfile(Map.ofEntries(
Map.entry("dataDiskImages", Map.ofEntries(
Map.entry("hostCaching", "None"),
Map.entry("lun", 1),
Map.entry("source", Map.of("id", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}"))
)),
Map.entry("osDiskImage", Map.ofEntries(
Map.entry("hostCaching", "ReadOnly"),
Map.entry("source", Map.of("id", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}"))
))
))
.build());
}
}
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=azure_native.compute.GalleryImageVersionPublishingProfileResponseArgs(
target_regions=[
{
"encryption": {
"dataDiskImages": [azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
lun=1,
)],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
),
},
"name": "West US",
"regionalReplicaCount": 1,
},
{
"encryption": {
"dataDiskImages": [azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
lun=1,
)],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
),
},
"name": "East US",
"regionalReplicaCount": 2,
"storageAccountType": "Standard_ZRS",
},
],
),
resource_group_name="myResourceGroup",
storage_profile=azure_native.compute.GalleryImageVersionStorageProfileResponseArgs(
data_disk_images=[{
"hostCaching": azure_native.compute.HostCaching.NONE,
"lun": 1,
"source": azure_native.compute.GalleryArtifactVersionSourceArgs(
id="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}",
),
}],
os_disk_image={
"hostCaching": azure_native.compute.HostCaching.READ_ONLY,
"source": azure_native.compute.GalleryArtifactVersionSourceArgs(
id="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}",
),
},
))
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",
},
},
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",
},
},
name: "East US",
regionalReplicaCount: 2,
storageAccountType: "Standard_ZRS",
},
],
},
resourceGroupName: "myResourceGroup",
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}",
},
},
},
});
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
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
name: East US
regionalReplicaCount: 2
storageAccountType: Standard_ZRS
resourceGroupName: myResourceGroup
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 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",
},
},
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",
},
},
Name = "East US",
RegionalReplicaCount = 2,
StorageAccountType = "Standard_ZRS",
},
},
},
ResourceGroupName = "myResourceGroup",
StorageProfile = new AzureNative.Compute.Inputs.GalleryImageVersionStorageProfileArgs
{
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
},
},
});
});
Coming soon!
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 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(Map.of("targetRegions",
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"))
)),
Map.entry("name", "West US"),
Map.entry("regionalReplicaCount", 1)
),
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages",
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"),
Map.entry("lun", 0)
),
Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"))
)),
Map.entry("name", "East US"),
Map.entry("regionalReplicaCount", 2),
Map.entry("storageAccountType", "Standard_ZRS")
)))
.resourceGroupName("myResourceGroup")
.storageProfile(Map.of("source", Map.of("id", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}")))
.build());
}
}
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=azure_native.compute.GalleryImageVersionPublishingProfileResponseArgs(
target_regions=[
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet",
),
},
"name": "West US",
"regionalReplicaCount": 1,
},
{
"encryption": {
"dataDiskImages": [
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet",
lun=0,
),
azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
lun=1,
),
],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet",
),
},
"name": "East US",
"regionalReplicaCount": 2,
"storageAccountType": "Standard_ZRS",
},
],
),
resource_group_name="myResourceGroup",
storage_profile=azure_native.compute.GalleryImageVersionStorageProfileResponseArgs(
source=azure_native.compute.GalleryArtifactVersionSourceArgs(
id="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}",
),
))
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",
},
},
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",
},
},
name: "East US",
regionalReplicaCount: 2,
storageAccountType: "Standard_ZRS",
},
],
},
resourceGroupName: "myResourceGroup",
storageProfile: {
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
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
name: East US
regionalReplicaCount: 2
storageAccountType: Standard_ZRS
resourceGroupName: myResourceGroup
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.
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",
},
},
Name = "West US",
RegionalReplicaCount = 1,
},
new AzureNative.Compute.Inputs.TargetRegionArgs
{
Name = "East US",
RegionalReplicaCount = 2,
StorageAccountType = "Standard_ZRS",
},
},
},
ResourceGroupName = "myResourceGroup",
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.GalleryArtifactVersionSourceArgs
{
Id = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
Uri = "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
},
},
},
OsDiskImage = new AzureNative.Compute.Inputs.GalleryOSDiskImageArgs
{
HostCaching = AzureNative.Compute.HostCaching.ReadOnly,
Source = new AzureNative.Compute.Inputs.GalleryArtifactVersionSourceArgs
{
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",
},
},
},
});
});
Coming soon!
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 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(Map.of("targetRegions",
Map.ofEntries(
Map.entry("encryption", Map.ofEntries(
Map.entry("dataDiskImages", Map.ofEntries(
Map.entry("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet"),
Map.entry("lun", 1)
)),
Map.entry("osDiskImage", Map.of("diskEncryptionSetId", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet"))
)),
Map.entry("name", "West US"),
Map.entry("regionalReplicaCount", 1)
),
Map.ofEntries(
Map.entry("name", "East US"),
Map.entry("regionalReplicaCount", 2),
Map.entry("storageAccountType", "Standard_ZRS")
)))
.resourceGroupName("myResourceGroup")
.storageProfile(Map.ofEntries(
Map.entry("dataDiskImages", Map.ofEntries(
Map.entry("hostCaching", "None"),
Map.entry("lun", 1),
Map.entry("source", Map.ofEntries(
Map.entry("id", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"),
Map.entry("uri", "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd")
))
)),
Map.entry("osDiskImage", Map.ofEntries(
Map.entry("hostCaching", "ReadOnly"),
Map.entry("source", Map.ofEntries(
Map.entry("id", "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}"),
Map.entry("uri", "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd")
))
))
))
.build());
}
}
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=azure_native.compute.GalleryImageVersionPublishingProfileResponseArgs(
target_regions=[
{
"encryption": {
"dataDiskImages": [azure_native.compute.DataDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet",
lun=1,
)],
"osDiskImage": azure_native.compute.OSDiskImageEncryptionArgs(
disk_encryption_set_id="/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet",
),
},
"name": "West US",
"regionalReplicaCount": 1,
},
azure_native.compute.TargetRegionArgs(
name="East US",
regional_replica_count=2,
storage_account_type="Standard_ZRS",
),
],
),
resource_group_name="myResourceGroup",
storage_profile=azure_native.compute.GalleryImageVersionStorageProfileResponseArgs(
data_disk_images=[{
"hostCaching": azure_native.compute.HostCaching.NONE,
"lun": 1,
"source": azure_native.compute.GalleryArtifactVersionSourceArgs(
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={
"hostCaching": azure_native.compute.HostCaching.READ_ONLY,
"source": azure_native.compute.GalleryArtifactVersionSourceArgs(
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",
),
},
))
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",
},
},
name: "West US",
regionalReplicaCount: 1,
},
{
name: "East US",
regionalReplicaCount: 2,
storageAccountType: "Standard_ZRS",
},
],
},
resourceGroupName: "myResourceGroup",
storageProfile: {
dataDiskImages: [{
hostCaching: azure_native.compute.HostCaching.None,
lun: 1,
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
},
}],
osDiskImage: {
hostCaching: azure_native.compute.HostCaching.ReadOnly,
source: {
id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd",
},
},
},
});
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
name: West US
regionalReplicaCount: 1
- name: East US
regionalReplicaCount: 2
storageAccountType: Standard_ZRS
resourceGroupName: myResourceGroup
storageProfile:
dataDiskImages:
- hostCaching: None
lun: 1
source:
id: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}
uri: https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd
osDiskImage:
hostCaching: ReadOnly
source:
id: /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}
uri: https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd
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,
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 =
{
{ "dataDiskImages", new[]
{
{
{ "lun", 0 },
{ "hostCaching", "None" },
{ "source",
{
{ "id", "string" },
{ "uri", "string" },
} },
},
} },
{ "osDiskImage",
{
{ "hostCaching", "None" },
{ "source",
{
{ "id", "string" },
{ "uri", "string" },
} },
} },
{ "source",
{
{ "id", "string" },
{ "uri", "string" },
} },
},
GalleryImageVersionName = "string",
Location = "string",
PublishingProfile =
{
{ "endOfLifeDate", "string" },
{ "excludeFromLatest", false },
{ "replicaCount", 0 },
{ "storageAccountType", "string" },
{ "targetRegions", new[]
{
{
{ "name", "string" },
{ "encryption",
{
{ "dataDiskImages", new[]
{
{
{ "lun", 0 },
{ "diskEncryptionSetId", "string" },
},
} },
{ "osDiskImage",
{
{ "diskEncryptionSetId", "string" },
} },
} },
{ "regionalReplicaCount", 0 },
{ "storageAccountType", "string" },
},
} },
},
Tags =
{
{ "string", "string" },
},
});
example, err := compute.NewGalleryImageVersion(ctx, "galleryImageVersionResource", &compute.GalleryImageVersionArgs{
GalleryImageName: "string",
GalleryName: "string",
ResourceGroupName: "string",
StorageProfile: map[string]interface{}{
"dataDiskImages": []map[string]interface{}{
map[string]interface{}{
"lun": 0,
"hostCaching": "None",
"source": map[string]interface{}{
"id": "string",
"uri": "string",
},
},
},
"osDiskImage": map[string]interface{}{
"hostCaching": "None",
"source": map[string]interface{}{
"id": "string",
"uri": "string",
},
},
"source": map[string]interface{}{
"id": "string",
"uri": "string",
},
},
GalleryImageVersionName: "string",
Location: "string",
PublishingProfile: map[string]interface{}{
"endOfLifeDate": "string",
"excludeFromLatest": false,
"replicaCount": 0,
"storageAccountType": "string",
"targetRegions": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"encryption": map[string]interface{}{
"dataDiskImages": []map[string]interface{}{
map[string]interface{}{
"lun": 0,
"diskEncryptionSetId": "string",
},
},
"osDiskImage": map[string]interface{}{
"diskEncryptionSetId": "string",
},
},
"regionalReplicaCount": 0,
"storageAccountType": "string",
},
},
},
Tags: map[string]interface{}{
"string": "string",
},
})
var galleryImageVersionResource = new GalleryImageVersion("galleryImageVersionResource", GalleryImageVersionArgs.builder()
.galleryImageName("string")
.galleryName("string")
.resourceGroupName("string")
.storageProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.galleryImageVersionName("string")
.location("string")
.publishingProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
gallery_image_version_resource = azure_native.compute.GalleryImageVersion("galleryImageVersionResource",
gallery_image_name=string,
gallery_name=string,
resource_group_name=string,
storage_profile={
dataDiskImages: [{
lun: 0,
hostCaching: None,
source: {
id: string,
uri: string,
},
}],
osDiskImage: {
hostCaching: None,
source: {
id: string,
uri: string,
},
},
source: {
id: string,
uri: string,
},
},
gallery_image_version_name=string,
location=string,
publishing_profile={
endOfLifeDate: string,
excludeFromLatest: False,
replicaCount: 0,
storageAccountType: string,
targetRegions: [{
name: string,
encryption: {
dataDiskImages: [{
lun: 0,
diskEncryptionSetId: string,
}],
osDiskImage: {
diskEncryptionSetId: string,
},
},
regionalReplicaCount: 0,
storageAccountType: string,
}],
},
tags={
string: string,
})
const galleryImageVersionResource = new azure_native.compute.GalleryImageVersion("galleryImageVersionResource", {
galleryImageName: "string",
galleryName: "string",
resourceGroupName: "string",
storageProfile: {
dataDiskImages: [{
lun: 0,
hostCaching: "None",
source: {
id: "string",
uri: "string",
},
}],
osDiskImage: {
hostCaching: "None",
source: {
id: "string",
uri: "string",
},
},
source: {
id: "string",
uri: "string",
},
},
galleryImageVersionName: "string",
location: "string",
publishingProfile: {
endOfLifeDate: "string",
excludeFromLatest: false,
replicaCount: 0,
storageAccountType: "string",
targetRegions: [{
name: "string",
encryption: {
dataDiskImages: [{
lun: 0,
diskEncryptionSetId: "string",
}],
osDiskImage: {
diskEncryptionSetId: "string",
},
},
regionalReplicaCount: 0,
storageAccountType: "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
storageAccountType: string
targetRegions:
- encryption:
dataDiskImages:
- diskEncryptionSetId: string
lun: 0
osDiskImage:
diskEncryptionSetId: string
name: string
regionalReplicaCount: 0
storageAccountType: string
resourceGroupName: string
storageProfile:
dataDiskImages:
- hostCaching: None
lun: 0
source:
id: string
uri: string
osDiskImage:
hostCaching: None
source:
id: string
uri: string
source:
id: string
uri: 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
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.
- 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.
- 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.
- 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.
- {[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.
- 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.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the GalleryImageVersion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- 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
- 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
- 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
- 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
- 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
- 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
Supporting Types
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.
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.
GalleryArtifactVersionSource, GalleryArtifactVersionSourceArgs
GalleryArtifactVersionSourceResponse, GalleryArtifactVersionSourceResponseArgs
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 Artifact Version Source - The gallery artifact version source.
- 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
Artifact Version Source - The gallery artifact version source.
- 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
Artifact Version Source - The gallery artifact version source.
- 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
Artifact Version Source - The gallery artifact version source.
- 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
Artifact Version Source - The gallery artifact version source.
- 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 gallery artifact version source.
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 Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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 gallery artifact version source.
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.
- 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
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.
- Storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account String | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account string | StorageType Account Type - Specifies the storage account type to be used to store the image. This property is not 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.
- storage_
account_ str | Storagetype Account Type - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account String | "Standard_LRS" | "Standard_ZRS" | "Premium_LRS"Type - Specifies the storage account type to be used to store the image. This property is not 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.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not 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.
- Storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account stringType - Specifies the storage account type to be used to store the image. This property is not 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.
- storage_
account_ strtype - Specifies the storage account type to be used to store the image. This property is not 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.
- storage
Account StringType - Specifies the storage account type to be used to store the image. This property is not updatable.
- target
Regions List<Property Map> - The target regions where the Image Version is going to be replicated to. This property is updatable.
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 Source - The gallery artifact version source.
- 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 Source - The gallery artifact version source.
- 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 Source - The gallery artifact version source.
- 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 Source - The gallery artifact version source.
- 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 Source - The gallery artifact version source.
- 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 gallery artifact version source.
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 Source Response - The gallery artifact version source.
- 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 Source Response - The gallery artifact version source.
- 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 Source Response - The gallery artifact version source.
- 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 Source Response - The gallery artifact version source.
- 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 Source Response - The gallery artifact version source.
- 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 gallery artifact version source.
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 Artifact Version Source - The gallery artifact version source.
- Host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- Source
Gallery
Artifact Version Source - The gallery artifact version source.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Artifact Version Source - The gallery artifact version source.
- host
Caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Artifact Version Source - The gallery artifact version source.
- host_
caching HostCaching - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source
Gallery
Artifact Version Source - The gallery artifact version source.
- host
Caching "None" | "ReadOnly" | "Read Write" - The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
- source Property Map
- The gallery artifact version source.
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 Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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
Artifact Version Source Response - The gallery artifact version source.
- 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 gallery artifact version source.
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
OSDiskImageEncryption, OSDiskImageEncryptionArgs
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk_
encryption_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
OSDiskImageEncryptionResponse, OSDiskImageEncryptionResponseArgs
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- Disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption stringSet Id - A relative URI containing the resource ID of the disk encryption set.
- disk_
encryption_ strset_ id - A relative URI containing the resource ID of the disk encryption set.
- disk
Encryption StringSet Id - A relative URI containing the resource ID of the disk encryption set.
RegionalReplicationStatusResponse, RegionalReplicationStatusResponseArgs
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
- Storage
Account Type_Standard_LRS - Standard_LRS
- Storage
Account Type_Standard_ZRS - Standard_ZRS
- Storage
Account Type_Premium_LRS - Premium_LRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Premium_LRS
- Premium_LRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Premium_LRS
- Premium_LRS
- STANDARD_LRS
- Standard_LRS
- STANDARD_ZRS
- Standard_ZRS
- PREMIUM_LRS
- Premium_LRS
- "Standard_LRS"
- Standard_LRS
- "Standard_ZRS"
- Standard_ZRS
- "Premium_LRS"
- Premium_LRS
TargetRegion, TargetRegionArgs
- Name string
- The name of the region.
- 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.
- 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.
- Encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption Property Map
- Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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"Type - 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.
- 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.
- 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.
- Encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption
Encryption
Images Response - Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
- encryption Property Map
- Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
- 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.
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-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0