azure-native.virtualmachineimages.VirtualMachineImageTemplate
Explore with Pulumi AI
Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider API Version: 2020-02-14.
Example Usage
Create an Image Template for Linux.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineImageTemplate = new AzureNative.VirtualMachineImages.VirtualMachineImageTemplate("virtualMachineImageTemplate", new()
{
Customize = new[]
{
new AzureNative.VirtualMachineImages.Inputs.ImageTemplateShellCustomizerArgs
{
Name = "Shell Customizer Example",
ScriptUri = "https://example.com/path/to/script.sh",
Type = "Shell",
},
},
Distribute = new[]
{
new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageDistributorArgs
{
ArtifactTags =
{
{ "tagName", "value" },
},
ImageId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
Location = "1_location",
RunOutputName = "image_it_pir_1",
Type = "ManagedImage",
},
},
Identity = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentityArgs
{
Type = AzureNative.VirtualMachineImages.ResourceIdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", null },
},
},
ImageTemplateName = "myImageTemplate",
Location = "westus",
ResourceGroupName = "myResourceGroup",
Source = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageSourceArgs
{
ImageId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
Type = "ManagedImage",
},
Tags =
{
{ "imagetemplate_tag1", "IT_T1" },
{ "imagetemplate_tag2", "IT_T2" },
},
VmProfile = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateVmProfileArgs
{
OsDiskSizeGB = 64,
VmSize = "Standard_D2s_v3",
VnetConfig = new AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfigArgs
{
SubnetId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
},
},
});
});
package main
import (
virtualmachineimages "github.com/pulumi/pulumi-azure-native-sdk/virtualmachineimages"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := virtualmachineimages.NewVirtualMachineImageTemplate(ctx, "virtualMachineImageTemplate", &virtualmachineimages.VirtualMachineImageTemplateArgs{
Customize: pulumi.AnyArray{
virtualmachineimages.ImageTemplateShellCustomizer{
Name: "Shell Customizer Example",
ScriptUri: "https://example.com/path/to/script.sh",
Type: "Shell",
},
},
Distribute: pulumi.AnyArray{
virtualmachineimages.ImageTemplateManagedImageDistributor{
ArtifactTags: map[string]interface{}{
"tagName": "value",
},
ImageId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
Location: "1_location",
RunOutputName: "image_it_pir_1",
Type: "ManagedImage",
},
},
Identity: &virtualmachineimages.ImageTemplateIdentityArgs{
Type: virtualmachineimages.ResourceIdentityTypeUserAssigned,
UserAssignedIdentities: pulumi.AnyMap{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": nil,
},
},
ImageTemplateName: pulumi.String("myImageTemplate"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Source: virtualmachineimages.ImageTemplateManagedImageSource{
ImageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
Type: "ManagedImage",
},
Tags: pulumi.StringMap{
"imagetemplate_tag1": pulumi.String("IT_T1"),
"imagetemplate_tag2": pulumi.String("IT_T2"),
},
VmProfile: virtualmachineimages.ImageTemplateVmProfileResponse{
OsDiskSizeGB: pulumi.Int(64),
VmSize: pulumi.String("Standard_D2s_v3"),
VnetConfig: &virtualmachineimages.VirtualNetworkConfigArgs{
SubnetId: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplate;
import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplateArgs;
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 virtualMachineImageTemplate = new VirtualMachineImageTemplate("virtualMachineImageTemplate", VirtualMachineImageTemplateArgs.builder()
.customize(Map.ofEntries(
Map.entry("name", "Shell Customizer Example"),
Map.entry("scriptUri", "https://example.com/path/to/script.sh"),
Map.entry("type", "Shell")
))
.distribute(Map.ofEntries(
Map.entry("artifactTags", ImageTemplateManagedImageDistributorArgs.builder()
.tagName("value")
.build()),
Map.entry("imageId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1"),
Map.entry("location", "1_location"),
Map.entry("runOutputName", "image_it_pir_1"),
Map.entry("type", "ManagedImage")
))
.identity(Map.ofEntries(
Map.entry("type", "UserAssigned"),
Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", ))
))
.imageTemplateName("myImageTemplate")
.location("westus")
.resourceGroupName("myResourceGroup")
.source(Map.ofEntries(
Map.entry("imageId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"),
Map.entry("type", "ManagedImage")
))
.tags(Map.ofEntries(
Map.entry("imagetemplate_tag1", "IT_T1"),
Map.entry("imagetemplate_tag2", "IT_T2")
))
.vmProfile(Map.ofEntries(
Map.entry("osDiskSizeGB", 64),
Map.entry("vmSize", "Standard_D2s_v3"),
Map.entry("vnetConfig", Map.of("subnetId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"))
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
virtual_machine_image_template = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate",
customize=[azure_native.virtualmachineimages.ImageTemplateShellCustomizerArgs(
name="Shell Customizer Example",
script_uri="https://example.com/path/to/script.sh",
type="Shell",
)],
distribute=[azure_native.virtualmachineimages.ImageTemplateManagedImageDistributorArgs(
artifact_tags={
"tagName": "value",
},
image_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
location="1_location",
run_output_name="image_it_pir_1",
type="ManagedImage",
)],
identity=azure_native.virtualmachineimages.ImageTemplateIdentityArgs(
type=azure_native.virtualmachineimages.ResourceIdentityType.USER_ASSIGNED,
user_assigned_identities={
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
},
),
image_template_name="myImageTemplate",
location="westus",
resource_group_name="myResourceGroup",
source=azure_native.virtualmachineimages.ImageTemplateManagedImageSourceArgs(
image_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
type="ManagedImage",
),
tags={
"imagetemplate_tag1": "IT_T1",
"imagetemplate_tag2": "IT_T2",
},
vm_profile=azure_native.virtualmachineimages.ImageTemplateVmProfileResponseArgs(
os_disk_size_gb=64,
vm_size="Standard_D2s_v3",
vnet_config=azure_native.virtualmachineimages.VirtualNetworkConfigArgs(
subnet_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
),
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const virtualMachineImageTemplate = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate", {
customize: [{
name: "Shell Customizer Example",
scriptUri: "https://example.com/path/to/script.sh",
type: "Shell",
}],
distribute: [{
artifactTags: {
tagName: "value",
},
imageId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
location: "1_location",
runOutputName: "image_it_pir_1",
type: "ManagedImage",
}],
identity: {
type: azure_native.virtualmachineimages.ResourceIdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
},
},
imageTemplateName: "myImageTemplate",
location: "westus",
resourceGroupName: "myResourceGroup",
source: {
imageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
type: "ManagedImage",
},
tags: {
imagetemplate_tag1: "IT_T1",
imagetemplate_tag2: "IT_T2",
},
vmProfile: {
osDiskSizeGB: 64,
vmSize: "Standard_D2s_v3",
vnetConfig: {
subnetId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
},
},
});
resources:
virtualMachineImageTemplate:
type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
properties:
customize:
- name: Shell Customizer Example
scriptUri: https://example.com/path/to/script.sh
type: Shell
distribute:
- artifactTags:
tagName: value
imageId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1
location: 1_location
runOutputName: image_it_pir_1
type: ManagedImage
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1
: {}
imageTemplateName: myImageTemplate
location: westus
resourceGroupName: myResourceGroup
source:
imageId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image
type: ManagedImage
tags:
imagetemplate_tag1: IT_T1
imagetemplate_tag2: IT_T2
vmProfile:
osDiskSizeGB: 64
vmSize: Standard_D2s_v3
vnetConfig:
subnetId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
Create an Image Template for Windows.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineImageTemplate = new AzureNative.VirtualMachineImages.VirtualMachineImageTemplate("virtualMachineImageTemplate", new()
{
Customize = new[]
{
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Inline = new[]
{
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
},
Name = "PowerShell (inline) Customizer Example",
Type = "PowerShell",
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Inline = new[]
{
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
},
Name = "PowerShell (inline) Customizer Elevated user Example",
RunElevated = true,
Type = "PowerShell",
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Inline = new[]
{
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
},
Name = "PowerShell (inline) Customizer Elevated Local System user Example",
RunAsSystem = true,
RunElevated = true,
Type = "PowerShell",
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Name = "PowerShell (script) Customizer Example",
ScriptUri = "https://example.com/path/to/script.ps1",
Type = "PowerShell",
ValidExitCodes = new[]
{
0,
1,
},
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Name = "PowerShell (script) Customizer Elevated Local System user Example",
RunElevated = true,
ScriptUri = "https://example.com/path/to/script.ps1",
Type = "PowerShell",
ValidExitCodes = new[]
{
0,
1,
},
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplatePowerShellCustomizerArgs
{
Name = "PowerShell (script) Customizer Elevated Local System user Example",
RunAsSystem = true,
RunElevated = true,
ScriptUri = "https://example.com/path/to/script.ps1",
Type = "PowerShell",
ValidExitCodes = new[]
{
0,
1,
},
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplateRestartCustomizerArgs
{
Name = "Restart Customizer Example",
RestartCheckCommand = "powershell -command \"& {Write-Output 'restarted.'}\"",
RestartCommand = "shutdown /f /r /t 0 /c \"packer restart\"",
RestartTimeout = "10m",
Type = "WindowsRestart",
},
new AzureNative.VirtualMachineImages.Inputs.ImageTemplateWindowsUpdateCustomizerArgs
{
Filters = new[]
{
"$_.BrowseOnly",
},
Name = "Windows Update Customizer Example",
SearchCriteria = "BrowseOnly=0 and IsInstalled=0",
Type = "WindowsUpdate",
UpdateLimit = 100,
},
},
Distribute = new[]
{
new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageDistributorArgs
{
ArtifactTags =
{
{ "tagName", "value" },
},
ImageId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
Location = "1_location",
RunOutputName = "image_it_pir_1",
Type = "ManagedImage",
},
},
Identity = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateIdentityArgs
{
Type = AzureNative.VirtualMachineImages.ResourceIdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", null },
},
},
ImageTemplateName = "myImageTemplate",
Location = "westus",
ResourceGroupName = "myResourceGroup",
Source = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateManagedImageSourceArgs
{
ImageId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
Type = "ManagedImage",
},
Tags =
{
{ "imagetemplate_tag1", "IT_T1" },
{ "imagetemplate_tag2", "IT_T2" },
},
VmProfile = new AzureNative.VirtualMachineImages.Inputs.ImageTemplateVmProfileArgs
{
OsDiskSizeGB = 64,
VmSize = "Standard_D2s_v3",
VnetConfig = new AzureNative.VirtualMachineImages.Inputs.VirtualNetworkConfigArgs
{
SubnetId = "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
},
},
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplate;
import com.pulumi.azurenative.virtualmachineimages.VirtualMachineImageTemplateArgs;
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 virtualMachineImageTemplate = new VirtualMachineImageTemplate("virtualMachineImageTemplate", VirtualMachineImageTemplateArgs.builder()
.customize(
Map.ofEntries(
Map.entry("inline",
"Powershell command-1",
"Powershell command-2",
"Powershell command-3"),
Map.entry("name", "PowerShell (inline) Customizer Example"),
Map.entry("type", "PowerShell")
),
Map.ofEntries(
Map.entry("inline",
"Powershell command-1",
"Powershell command-2",
"Powershell command-3"),
Map.entry("name", "PowerShell (inline) Customizer Elevated user Example"),
Map.entry("runElevated", true),
Map.entry("type", "PowerShell")
),
Map.ofEntries(
Map.entry("inline",
"Powershell command-1",
"Powershell command-2",
"Powershell command-3"),
Map.entry("name", "PowerShell (inline) Customizer Elevated Local System user Example"),
Map.entry("runAsSystem", true),
Map.entry("runElevated", true),
Map.entry("type", "PowerShell")
),
Map.ofEntries(
Map.entry("name", "PowerShell (script) Customizer Example"),
Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
Map.entry("type", "PowerShell"),
Map.entry("validExitCodes",
0,
1)
),
Map.ofEntries(
Map.entry("name", "PowerShell (script) Customizer Elevated Local System user Example"),
Map.entry("runElevated", true),
Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
Map.entry("type", "PowerShell"),
Map.entry("validExitCodes",
0,
1)
),
Map.ofEntries(
Map.entry("name", "PowerShell (script) Customizer Elevated Local System user Example"),
Map.entry("runAsSystem", true),
Map.entry("runElevated", true),
Map.entry("scriptUri", "https://example.com/path/to/script.ps1"),
Map.entry("type", "PowerShell"),
Map.entry("validExitCodes",
0,
1)
),
Map.ofEntries(
Map.entry("name", "Restart Customizer Example"),
Map.entry("restartCheckCommand", "powershell -command \"& {Write-Output 'restarted.'}\""),
Map.entry("restartCommand", "shutdown /f /r /t 0 /c \"packer restart\""),
Map.entry("restartTimeout", "10m"),
Map.entry("type", "WindowsRestart")
),
Map.ofEntries(
Map.entry("filters", "$_.BrowseOnly"),
Map.entry("name", "Windows Update Customizer Example"),
Map.entry("searchCriteria", "BrowseOnly=0 and IsInstalled=0"),
Map.entry("type", "WindowsUpdate"),
Map.entry("updateLimit", 100)
))
.distribute(Map.ofEntries(
Map.entry("artifactTags", ImageTemplateManagedImageDistributorArgs.builder()
.tagName("value")
.build()),
Map.entry("imageId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1"),
Map.entry("location", "1_location"),
Map.entry("runOutputName", "image_it_pir_1"),
Map.entry("type", "ManagedImage")
))
.identity(Map.ofEntries(
Map.entry("type", "UserAssigned"),
Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1", ))
))
.imageTemplateName("myImageTemplate")
.location("westus")
.resourceGroupName("myResourceGroup")
.source(Map.ofEntries(
Map.entry("imageId", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"),
Map.entry("type", "ManagedImage")
))
.tags(Map.ofEntries(
Map.entry("imagetemplate_tag1", "IT_T1"),
Map.entry("imagetemplate_tag2", "IT_T2")
))
.vmProfile(Map.ofEntries(
Map.entry("osDiskSizeGB", 64),
Map.entry("vmSize", "Standard_D2s_v3"),
Map.entry("vnetConfig", Map.of("subnetId", "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"))
))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
virtual_machine_image_template = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate",
customize=[
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
inline=[
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name="PowerShell (inline) Customizer Example",
type="PowerShell",
),
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
inline=[
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name="PowerShell (inline) Customizer Elevated user Example",
run_elevated=True,
type="PowerShell",
),
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
inline=[
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name="PowerShell (inline) Customizer Elevated Local System user Example",
run_as_system=True,
run_elevated=True,
type="PowerShell",
),
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
name="PowerShell (script) Customizer Example",
script_uri="https://example.com/path/to/script.ps1",
type="PowerShell",
valid_exit_codes=[
0,
1,
],
),
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
name="PowerShell (script) Customizer Elevated Local System user Example",
run_elevated=True,
script_uri="https://example.com/path/to/script.ps1",
type="PowerShell",
valid_exit_codes=[
0,
1,
],
),
azure_native.virtualmachineimages.ImageTemplatePowerShellCustomizerArgs(
name="PowerShell (script) Customizer Elevated Local System user Example",
run_as_system=True,
run_elevated=True,
script_uri="https://example.com/path/to/script.ps1",
type="PowerShell",
valid_exit_codes=[
0,
1,
],
),
azure_native.virtualmachineimages.ImageTemplateRestartCustomizerArgs(
name="Restart Customizer Example",
restart_check_command="powershell -command \"& {Write-Output 'restarted.'}\"",
restart_command="shutdown /f /r /t 0 /c \"packer restart\"",
restart_timeout="10m",
type="WindowsRestart",
),
azure_native.virtualmachineimages.ImageTemplateWindowsUpdateCustomizerArgs(
filters=["$_.BrowseOnly"],
name="Windows Update Customizer Example",
search_criteria="BrowseOnly=0 and IsInstalled=0",
type="WindowsUpdate",
update_limit=100,
),
],
distribute=[azure_native.virtualmachineimages.ImageTemplateManagedImageDistributorArgs(
artifact_tags={
"tagName": "value",
},
image_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
location="1_location",
run_output_name="image_it_pir_1",
type="ManagedImage",
)],
identity=azure_native.virtualmachineimages.ImageTemplateIdentityArgs(
type=azure_native.virtualmachineimages.ResourceIdentityType.USER_ASSIGNED,
user_assigned_identities={
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
},
),
image_template_name="myImageTemplate",
location="westus",
resource_group_name="myResourceGroup",
source=azure_native.virtualmachineimages.ImageTemplateManagedImageSourceArgs(
image_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
type="ManagedImage",
),
tags={
"imagetemplate_tag1": "IT_T1",
"imagetemplate_tag2": "IT_T2",
},
vm_profile=azure_native.virtualmachineimages.ImageTemplateVmProfileResponseArgs(
os_disk_size_gb=64,
vm_size="Standard_D2s_v3",
vnet_config=azure_native.virtualmachineimages.VirtualNetworkConfigArgs(
subnet_id="/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
),
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const virtualMachineImageTemplate = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplate", {
customize: [
{
inline: [
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name: "PowerShell (inline) Customizer Example",
type: "PowerShell",
},
{
inline: [
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name: "PowerShell (inline) Customizer Elevated user Example",
runElevated: true,
type: "PowerShell",
},
{
inline: [
"Powershell command-1",
"Powershell command-2",
"Powershell command-3",
],
name: "PowerShell (inline) Customizer Elevated Local System user Example",
runAsSystem: true,
runElevated: true,
type: "PowerShell",
},
{
name: "PowerShell (script) Customizer Example",
scriptUri: "https://example.com/path/to/script.ps1",
type: "PowerShell",
validExitCodes: [
0,
1,
],
},
{
name: "PowerShell (script) Customizer Elevated Local System user Example",
runElevated: true,
scriptUri: "https://example.com/path/to/script.ps1",
type: "PowerShell",
validExitCodes: [
0,
1,
],
},
{
name: "PowerShell (script) Customizer Elevated Local System user Example",
runAsSystem: true,
runElevated: true,
scriptUri: "https://example.com/path/to/script.ps1",
type: "PowerShell",
validExitCodes: [
0,
1,
],
},
{
name: "Restart Customizer Example",
restartCheckCommand: "powershell -command \"& {Write-Output 'restarted.'}\"",
restartCommand: "shutdown /f /r /t 0 /c \"packer restart\"",
restartTimeout: "10m",
type: "WindowsRestart",
},
{
filters: ["$_.BrowseOnly"],
name: "Windows Update Customizer Example",
searchCriteria: "BrowseOnly=0 and IsInstalled=0",
type: "WindowsUpdate",
updateLimit: 100,
},
],
distribute: [{
artifactTags: {
tagName: "value",
},
imageId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
location: "1_location",
runOutputName: "image_it_pir_1",
type: "ManagedImage",
}],
identity: {
type: azure_native.virtualmachineimages.ResourceIdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {},
},
},
imageTemplateName: "myImageTemplate",
location: "westus",
resourceGroupName: "myResourceGroup",
source: {
imageId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image",
type: "ManagedImage",
},
tags: {
imagetemplate_tag1: "IT_T1",
imagetemplate_tag2: "IT_T2",
},
vmProfile: {
osDiskSizeGB: 64,
vmSize: "Standard_D2s_v3",
vnetConfig: {
subnetId: "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name",
},
},
});
resources:
virtualMachineImageTemplate:
type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
properties:
customize:
- inline:
- Powershell command-1
- Powershell command-2
- Powershell command-3
name: PowerShell (inline) Customizer Example
type: PowerShell
- inline:
- Powershell command-1
- Powershell command-2
- Powershell command-3
name: PowerShell (inline) Customizer Elevated user Example
runElevated: true
type: PowerShell
- inline:
- Powershell command-1
- Powershell command-2
- Powershell command-3
name: PowerShell (inline) Customizer Elevated Local System user Example
runAsSystem: true
runElevated: true
type: PowerShell
- name: PowerShell (script) Customizer Example
scriptUri: https://example.com/path/to/script.ps1
type: PowerShell
validExitCodes:
- 0
- 1
- name: PowerShell (script) Customizer Elevated Local System user Example
runElevated: true
scriptUri: https://example.com/path/to/script.ps1
type: PowerShell
validExitCodes:
- 0
- 1
- name: PowerShell (script) Customizer Elevated Local System user Example
runAsSystem: true
runElevated: true
scriptUri: https://example.com/path/to/script.ps1
type: PowerShell
validExitCodes:
- 0
- 1
- name: Restart Customizer Example
restartCheckCommand: powershell -command "& {Write-Output 'restarted.'}"
restartCommand: shutdown /f /r /t 0 /c "packer restart"
restartTimeout: 10m
type: WindowsRestart
- filters:
- $_.BrowseOnly
name: Windows Update Customizer Example
searchCriteria: BrowseOnly=0 and IsInstalled=0
type: WindowsUpdate
updateLimit: 100
distribute:
- artifactTags:
tagName: value
imageId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1
location: 1_location
runOutputName: image_it_pir_1
type: ManagedImage
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1
: {}
imageTemplateName: myImageTemplate
location: westus
resourceGroupName: myResourceGroup
source:
imageId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image
type: ManagedImage
tags:
imagetemplate_tag1: IT_T1
imagetemplate_tag2: IT_T2
vmProfile:
osDiskSizeGB: 64
vmSize: Standard_D2s_v3
vnetConfig:
subnetId: /subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
Create VirtualMachineImageTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachineImageTemplate(name: string, args: VirtualMachineImageTemplateArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachineImageTemplate(resource_name: str,
args: VirtualMachineImageTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachineImageTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
distribute: Optional[Sequence[Union[ImageTemplateManagedImageDistributorArgs, ImageTemplateSharedImageDistributorArgs, ImageTemplateVhdDistributorArgs]]] = None,
identity: Optional[ImageTemplateIdentityArgs] = None,
resource_group_name: Optional[str] = None,
source: Optional[Union[ImageTemplateManagedImageSourceArgs, ImageTemplatePlatformImageSourceArgs, ImageTemplateSharedImageVersionSourceArgs]] = None,
build_timeout_in_minutes: Optional[int] = None,
customize: Optional[Sequence[Union[ImageTemplateFileCustomizerArgs, ImageTemplatePowerShellCustomizerArgs, ImageTemplateRestartCustomizerArgs, ImageTemplateShellCustomizerArgs, ImageTemplateWindowsUpdateCustomizerArgs]]] = None,
image_template_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vm_profile: Optional[ImageTemplateVmProfileArgs] = None)
func NewVirtualMachineImageTemplate(ctx *Context, name string, args VirtualMachineImageTemplateArgs, opts ...ResourceOption) (*VirtualMachineImageTemplate, error)
public VirtualMachineImageTemplate(string name, VirtualMachineImageTemplateArgs args, CustomResourceOptions? opts = null)
public VirtualMachineImageTemplate(String name, VirtualMachineImageTemplateArgs args)
public VirtualMachineImageTemplate(String name, VirtualMachineImageTemplateArgs args, CustomResourceOptions options)
type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
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 VirtualMachineImageTemplateArgs
- 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 VirtualMachineImageTemplateArgs
- 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 VirtualMachineImageTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineImageTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineImageTemplateArgs
- 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 virtualMachineImageTemplateResource = new AzureNative.Virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource", new()
{
Distribute = new[]
{
{
{ "imageId", "string" },
{ "location", "string" },
{ "runOutputName", "string" },
{ "type", "ManagedImage" },
{ "artifactTags",
{
{ "string", "string" },
} },
},
},
Identity =
{
{ "type", "UserAssigned" },
{ "userAssignedIdentities",
{
{ "string", "any" },
} },
},
ResourceGroupName = "string",
Source =
{
{ "imageId", "string" },
{ "type", "ManagedImage" },
},
BuildTimeoutInMinutes = 0,
Customize = new[]
{
{
{ "type", "File" },
{ "destination", "string" },
{ "name", "string" },
{ "sha256Checksum", "string" },
{ "sourceUri", "string" },
},
},
ImageTemplateName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
VmProfile =
{
{ "osDiskSizeGB", 0 },
{ "vmSize", "string" },
{ "vnetConfig",
{
{ "subnetId", "string" },
} },
},
});
example, err := virtualmachineimages.NewVirtualMachineImageTemplate(ctx, "virtualMachineImageTemplateResource", &virtualmachineimages.VirtualMachineImageTemplateArgs{
Distribute: []map[string]interface{}{
map[string]interface{}{
"imageId": "string",
"location": "string",
"runOutputName": "string",
"type": "ManagedImage",
"artifactTags": map[string]interface{}{
"string": "string",
},
},
},
Identity: map[string]interface{}{
"type": "UserAssigned",
"userAssignedIdentities": map[string]interface{}{
"string": "any",
},
},
ResourceGroupName: "string",
Source: map[string]interface{}{
"imageId": "string",
"type": "ManagedImage",
},
BuildTimeoutInMinutes: 0,
Customize: []map[string]interface{}{
map[string]interface{}{
"type": "File",
"destination": "string",
"name": "string",
"sha256Checksum": "string",
"sourceUri": "string",
},
},
ImageTemplateName: "string",
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
VmProfile: map[string]interface{}{
"osDiskSizeGB": 0,
"vmSize": "string",
"vnetConfig": map[string]interface{}{
"subnetId": "string",
},
},
})
var virtualMachineImageTemplateResource = new VirtualMachineImageTemplate("virtualMachineImageTemplateResource", VirtualMachineImageTemplateArgs.builder()
.distribute(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.source(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.buildTimeoutInMinutes(0)
.customize(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.imageTemplateName("string")
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.vmProfile(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
virtual_machine_image_template_resource = azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource",
distribute=[{
imageId: string,
location: string,
runOutputName: string,
type: ManagedImage,
artifactTags: {
string: string,
},
}],
identity={
type: UserAssigned,
userAssignedIdentities: {
string: any,
},
},
resource_group_name=string,
source={
imageId: string,
type: ManagedImage,
},
build_timeout_in_minutes=0,
customize=[{
type: File,
destination: string,
name: string,
sha256Checksum: string,
sourceUri: string,
}],
image_template_name=string,
location=string,
tags={
string: string,
},
vm_profile={
osDiskSizeGB: 0,
vmSize: string,
vnetConfig: {
subnetId: string,
},
})
const virtualMachineImageTemplateResource = new azure_native.virtualmachineimages.VirtualMachineImageTemplate("virtualMachineImageTemplateResource", {
distribute: [{
imageId: "string",
location: "string",
runOutputName: "string",
type: "ManagedImage",
artifactTags: {
string: "string",
},
}],
identity: {
type: "UserAssigned",
userAssignedIdentities: {
string: "any",
},
},
resourceGroupName: "string",
source: {
imageId: "string",
type: "ManagedImage",
},
buildTimeoutInMinutes: 0,
customize: [{
type: "File",
destination: "string",
name: "string",
sha256Checksum: "string",
sourceUri: "string",
}],
imageTemplateName: "string",
location: "string",
tags: {
string: "string",
},
vmProfile: {
osDiskSizeGB: 0,
vmSize: "string",
vnetConfig: {
subnetId: "string",
},
},
});
type: azure-native:virtualmachineimages:VirtualMachineImageTemplate
properties:
buildTimeoutInMinutes: 0
customize:
- destination: string
name: string
sha256Checksum: string
sourceUri: string
type: File
distribute:
- artifactTags:
string: string
imageId: string
location: string
runOutputName: string
type: ManagedImage
identity:
type: UserAssigned
userAssignedIdentities:
string: any
imageTemplateName: string
location: string
resourceGroupName: string
source:
imageId: string
type: ManagedImage
tags:
string: string
vmProfile:
osDiskSizeGB: 0
vmSize: string
vnetConfig:
subnetId: string
VirtualMachineImageTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualMachineImageTemplate resource accepts the following input properties:
- Distribute List<object>
- The distribution targets where the image output needs to go to.
- Identity
Pulumi.
Azure Native. Virtual Machine Images. Inputs. Image Template Identity - The identity of the image template, if configured.
- Resource
Group stringName - The name of the resource group.
- Source
Pulumi.
Azure | Pulumi.Native. Virtual Machine Images. Inputs. Image Template Managed Image Source Azure | Pulumi.Native. Virtual Machine Images. Inputs. Image Template Platform Image Source Azure Native. Virtual Machine Images. Inputs. Image Template Shared Image Version Source - Specifies the properties used to describe the source image.
- Build
Timeout intIn Minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- Customize List<object>
- Specifies the properties used to describe the customization steps of the image, like Image source etc
- Image
Template stringName - The name of the image Template
- Location string
- Resource location
- Dictionary<string, string>
- Resource tags
- Vm
Profile Pulumi.Azure Native. Virtual Machine Images. Inputs. Image Template Vm Profile - Describes how virtual machine is set up to build images
- Distribute []interface{}
- The distribution targets where the image output needs to go to.
- Identity
Image
Template Identity Args - The identity of the image template, if configured.
- Resource
Group stringName - The name of the resource group.
- Source
Image
Template | ImageManaged Image Source Args Template | ImagePlatform Image Source Args Template Shared Image Version Source Args - Specifies the properties used to describe the source image.
- Build
Timeout intIn Minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- Customize []interface{}
- Specifies the properties used to describe the customization steps of the image, like Image source etc
- Image
Template stringName - The name of the image Template
- Location string
- Resource location
- map[string]string
- Resource tags
- Vm
Profile ImageTemplate Vm Profile Args - Describes how virtual machine is set up to build images
- distribute List<Object>
- The distribution targets where the image output needs to go to.
- identity
Image
Template Identity - The identity of the image template, if configured.
- resource
Group StringName - The name of the resource group.
- source
Image
Template | ImageManaged Image Source Template | ImagePlatform Image Source Template Shared Image Version Source - Specifies the properties used to describe the source image.
- build
Timeout IntegerIn Minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- customize List<Object>
- Specifies the properties used to describe the customization steps of the image, like Image source etc
- image
Template StringName - The name of the image Template
- location String
- Resource location
- Map<String,String>
- Resource tags
- vm
Profile ImageTemplate Vm Profile - Describes how virtual machine is set up to build images
- distribute
(Image
Template Managed Image Distributor | Image Template Shared Image Distributor Args | Image Template Vhd Distributor Args)[] - The distribution targets where the image output needs to go to.
- identity
Image
Template Identity - The identity of the image template, if configured.
- resource
Group stringName - The name of the resource group.
- source
Image
Template | ImageManaged Image Source Template | ImagePlatform Image Source Template Shared Image Version Source - Specifies the properties used to describe the source image.
- build
Timeout numberIn Minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- customize
(Image
Template File Customizer | Image Template Power Shell Customizer Args | Image Template Restart Customizer Args | Image Template Shell Customizer Args | Image Template Windows Update Customizer Args)[] - Specifies the properties used to describe the customization steps of the image, like Image source etc
- image
Template stringName - The name of the image Template
- location string
- Resource location
- {[key: string]: string}
- Resource tags
- vm
Profile ImageTemplate Vm Profile - Describes how virtual machine is set up to build images
- distribute
Sequence[Union[Image
Template Managed Image Distributor Args, Image Template Shared Image Distributor Args, Image Template Vhd Distributor Args]] - The distribution targets where the image output needs to go to.
- identity
Image
Template Identity Args - The identity of the image template, if configured.
- resource_
group_ strname - The name of the resource group.
- source
Image
Template | ImageManaged Image Source Args Template | ImagePlatform Image Source Args Template Shared Image Version Source Args - Specifies the properties used to describe the source image.
- build_
timeout_ intin_ minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- customize
Sequence[Union[Image
Template File Customizer Args, Image Template Power Shell Customizer Args, Image Template Restart Customizer Args, Image Template Shell Customizer Args, Image Template Windows Update Customizer Args]] - Specifies the properties used to describe the customization steps of the image, like Image source etc
- image_
template_ strname - The name of the image Template
- location str
- Resource location
- Mapping[str, str]
- Resource tags
- vm_
profile ImageTemplate Vm Profile Args - Describes how virtual machine is set up to build images
- distribute List<Property Map | Property Map | Property Map>
- The distribution targets where the image output needs to go to.
- identity Property Map
- The identity of the image template, if configured.
- resource
Group StringName - The name of the resource group.
- source Property Map | Property Map | Property Map
- Specifies the properties used to describe the source image.
- build
Timeout NumberIn Minutes - Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours).
- customize List<Property Map | Property Map | Property Map | Property Map | Property Map>
- Specifies the properties used to describe the customization steps of the image, like Image source etc
- image
Template StringName - The name of the image Template
- location String
- Resource location
- Map<String>
- Resource tags
- vm
Profile Property Map - Describes how virtual machine is set up to build images
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachineImageTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run Pulumi.Status Azure Native. Virtual Machine Images. Outputs. Image Template Last Run Status Response - State of 'run' that is currently executing or was last executed.
- Name string
- Resource name
- Provisioning
Error Pulumi.Azure Native. Virtual Machine Images. Outputs. Provisioning Error Response - Provisioning error, if any
- Provisioning
State string - Provisioning state of the resource
- Type string
- Resource type
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run ImageStatus Template Last Run Status Response - State of 'run' that is currently executing or was last executed.
- Name string
- Resource name
- Provisioning
Error ProvisioningError Response - Provisioning error, if any
- Provisioning
State string - Provisioning state of the resource
- Type string
- Resource type
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run ImageStatus Template Last Run Status Response - State of 'run' that is currently executing or was last executed.
- name String
- Resource name
- provisioning
Error ProvisioningError Response - Provisioning error, if any
- provisioning
State String - Provisioning state of the resource
- type String
- Resource type
- id string
- The provider-assigned unique ID for this managed resource.
- last
Run ImageStatus Template Last Run Status Response - State of 'run' that is currently executing or was last executed.
- name string
- Resource name
- provisioning
Error ProvisioningError Response - Provisioning error, if any
- provisioning
State string - Provisioning state of the resource
- type string
- Resource type
- id str
- The provider-assigned unique ID for this managed resource.
- last_
run_ Imagestatus Template Last Run Status Response - State of 'run' that is currently executing or was last executed.
- name str
- Resource name
- provisioning_
error ProvisioningError Response - Provisioning error, if any
- provisioning_
state str - Provisioning state of the resource
- type str
- Resource type
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run Property MapStatus - State of 'run' that is currently executing or was last executed.
- name String
- Resource name
- provisioning
Error Property Map - Provisioning error, if any
- provisioning
State String - Provisioning state of the resource
- type String
- Resource type
Supporting Types
ImageTemplateFileCustomizer, ImageTemplateFileCustomizerArgs
- Destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- Name string
- Friendly Name to provide context on what this customization step does
- Sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- Source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- Destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- Name string
- Friendly Name to provide context on what this customization step does
- Sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- Source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination String
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name String
- Friendly Name to provide context on what this customization step does
- sha256Checksum String
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri String - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name string
- Friendly Name to provide context on what this customization step does
- sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination str
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name str
- Friendly Name to provide context on what this customization step does
- sha256_
checksum str - SHA256 checksum of the file provided in the sourceUri field above
- source_
uri str - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination String
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name String
- Friendly Name to provide context on what this customization step does
- sha256Checksum String
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri String - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
ImageTemplateFileCustomizerResponse, ImageTemplateFileCustomizerResponseArgs
- Destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- Name string
- Friendly Name to provide context on what this customization step does
- Sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- Source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- Destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- Name string
- Friendly Name to provide context on what this customization step does
- Sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- Source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination String
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name String
- Friendly Name to provide context on what this customization step does
- sha256Checksum String
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri String - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination string
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name string
- Friendly Name to provide context on what this customization step does
- sha256Checksum string
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri string - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination str
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name str
- Friendly Name to provide context on what this customization step does
- sha256_
checksum str - SHA256 checksum of the file provided in the sourceUri field above
- source_
uri str - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
- destination String
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
- name String
- Friendly Name to provide context on what this customization step does
- sha256Checksum String
- SHA256 checksum of the file provided in the sourceUri field above
- source
Uri String - The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
ImageTemplateIdentity, ImageTemplateIdentityArgs
- Type
Pulumi.
Azure Native. Virtual Machine Images. Resource Identity Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- User
Assigned Dictionary<string, object>Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Type
Resource
Identity Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- User
Assigned map[string]interface{}Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned Map<String,Object>Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned {[key: string]: any}Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
Resource
Identity Type - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user_
assigned_ Mapping[str, Any]identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type
"User
Assigned" | "None" - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned Map<Any>Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
ImageTemplateIdentityResponse, ImageTemplateIdentityResponseArgs
- Type string
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Virtual Machine Images. Inputs. Image Template Identity Response User Assigned Identities> - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Type string
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- User
Assigned map[string]ImageIdentities Template Identity Response User Assigned Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type String
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned Map<String,ImageIdentities Template Identity Response User Assigned Identities> - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type string
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned {[key: string]: ImageIdentities Template Identity Response User Assigned Identities} - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type str
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user_
assigned_ Mapping[str, Imageidentities Template Identity Response User Assigned Identities] - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- type String
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
- user
Assigned Map<Property Map>Identities - The list of user identities associated with the image template. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
ImageTemplateIdentityResponseUserAssignedIdentities, ImageTemplateIdentityResponseUserAssignedIdentitiesArgs
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
- client
Id string - The client id of user assigned identity.
- principal
Id string - The principal id of user assigned identity.
- client_
id str - The client id of user assigned identity.
- principal_
id str - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
ImageTemplateLastRunStatusResponse, ImageTemplateLastRunStatusResponseArgs
- End
Time string - End time of the last run (UTC)
- Message string
- Verbose information about the last run state
- Run
State string - State of the last run
- Run
Sub stringState - Sub-state of the last run
- Start
Time string - Start time of the last run (UTC)
- End
Time string - End time of the last run (UTC)
- Message string
- Verbose information about the last run state
- Run
State string - State of the last run
- Run
Sub stringState - Sub-state of the last run
- Start
Time string - Start time of the last run (UTC)
- end
Time String - End time of the last run (UTC)
- message String
- Verbose information about the last run state
- run
State String - State of the last run
- run
Sub StringState - Sub-state of the last run
- start
Time String - Start time of the last run (UTC)
- end
Time string - End time of the last run (UTC)
- message string
- Verbose information about the last run state
- run
State string - State of the last run
- run
Sub stringState - Sub-state of the last run
- start
Time string - Start time of the last run (UTC)
- end_
time str - End time of the last run (UTC)
- message str
- Verbose information about the last run state
- run_
state str - State of the last run
- run_
sub_ strstate - Sub-state of the last run
- start_
time str - Start time of the last run (UTC)
- end
Time String - End time of the last run (UTC)
- message String
- Verbose information about the last run state
- run
State String - State of the last run
- run
Sub StringState - Sub-state of the last run
- start
Time String - Start time of the last run (UTC)
ImageTemplateManagedImageDistributor, ImageTemplateManagedImageDistributorArgs
- Image
Id string - Resource Id of the Managed Disk Image
- Location string
- Azure location for the image, should match if image already exists
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Image
Id string - Resource Id of the Managed Disk Image
- Location string
- Azure location for the image, should match if image already exists
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id String - Resource Id of the Managed Disk Image
- location String
- Azure location for the image, should match if image already exists
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id string - Resource Id of the Managed Disk Image
- location string
- Azure location for the image, should match if image already exists
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image_
id str - Resource Id of the Managed Disk Image
- location str
- Azure location for the image, should match if image already exists
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id String - Resource Id of the Managed Disk Image
- location String
- Azure location for the image, should match if image already exists
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
ImageTemplateManagedImageDistributorResponse, ImageTemplateManagedImageDistributorResponseArgs
- Image
Id string - Resource Id of the Managed Disk Image
- Location string
- Azure location for the image, should match if image already exists
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Image
Id string - Resource Id of the Managed Disk Image
- Location string
- Azure location for the image, should match if image already exists
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id String - Resource Id of the Managed Disk Image
- location String
- Azure location for the image, should match if image already exists
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id string - Resource Id of the Managed Disk Image
- location string
- Azure location for the image, should match if image already exists
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image_
id str - Resource Id of the Managed Disk Image
- location str
- Azure location for the image, should match if image already exists
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- image
Id String - Resource Id of the Managed Disk Image
- location String
- Azure location for the image, should match if image already exists
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
ImageTemplateManagedImageSource, ImageTemplateManagedImageSourceArgs
- Image
Id string - ARM resource id of the managed image in customer subscription
- Image
Id string - ARM resource id of the managed image in customer subscription
- image
Id String - ARM resource id of the managed image in customer subscription
- image
Id string - ARM resource id of the managed image in customer subscription
- image_
id str - ARM resource id of the managed image in customer subscription
- image
Id String - ARM resource id of the managed image in customer subscription
ImageTemplateManagedImageSourceResponse, ImageTemplateManagedImageSourceResponseArgs
- Image
Id string - ARM resource id of the managed image in customer subscription
- Image
Id string - ARM resource id of the managed image in customer subscription
- image
Id String - ARM resource id of the managed image in customer subscription
- image
Id string - ARM resource id of the managed image in customer subscription
- image_
id str - ARM resource id of the managed image in customer subscription
- image
Id String - ARM resource id of the managed image in customer subscription
ImageTemplatePlatformImageSource, ImageTemplatePlatformImageSourceArgs
- Offer string
- Image offer from the Azure Gallery Images.
- Plan
Info Pulumi.Azure Native. Virtual Machine Images. Inputs. Platform Image Purchase Plan - Optional configuration of purchase plan for platform image.
- Publisher string
- Image Publisher in Azure Gallery Images.
- Sku string
- Image sku from the Azure Gallery Images.
- Version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- Offer string
- Image offer from the Azure Gallery Images.
- Plan
Info PlatformImage Purchase Plan - Optional configuration of purchase plan for platform image.
- Publisher string
- Image Publisher in Azure Gallery Images.
- Sku string
- Image sku from the Azure Gallery Images.
- Version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer String
- Image offer from the Azure Gallery Images.
- plan
Info PlatformImage Purchase Plan - Optional configuration of purchase plan for platform image.
- publisher String
- Image Publisher in Azure Gallery Images.
- sku String
- Image sku from the Azure Gallery Images.
- version String
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer string
- Image offer from the Azure Gallery Images.
- plan
Info PlatformImage Purchase Plan - Optional configuration of purchase plan for platform image.
- publisher string
- Image Publisher in Azure Gallery Images.
- sku string
- Image sku from the Azure Gallery Images.
- version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer str
- Image offer from the Azure Gallery Images.
- plan_
info PlatformImage Purchase Plan - Optional configuration of purchase plan for platform image.
- publisher str
- Image Publisher in Azure Gallery Images.
- sku str
- Image sku from the Azure Gallery Images.
- version str
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer String
- Image offer from the Azure Gallery Images.
- plan
Info Property Map - Optional configuration of purchase plan for platform image.
- publisher String
- Image Publisher in Azure Gallery Images.
- sku String
- Image sku from the Azure Gallery Images.
- version String
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
ImageTemplatePlatformImageSourceResponse, ImageTemplatePlatformImageSourceResponseArgs
- Offer string
- Image offer from the Azure Gallery Images.
- Plan
Info Pulumi.Azure Native. Virtual Machine Images. Inputs. Platform Image Purchase Plan Response - Optional configuration of purchase plan for platform image.
- Publisher string
- Image Publisher in Azure Gallery Images.
- Sku string
- Image sku from the Azure Gallery Images.
- Version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- Offer string
- Image offer from the Azure Gallery Images.
- Plan
Info PlatformImage Purchase Plan Response - Optional configuration of purchase plan for platform image.
- Publisher string
- Image Publisher in Azure Gallery Images.
- Sku string
- Image sku from the Azure Gallery Images.
- Version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer String
- Image offer from the Azure Gallery Images.
- plan
Info PlatformImage Purchase Plan Response - Optional configuration of purchase plan for platform image.
- publisher String
- Image Publisher in Azure Gallery Images.
- sku String
- Image sku from the Azure Gallery Images.
- version String
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer string
- Image offer from the Azure Gallery Images.
- plan
Info PlatformImage Purchase Plan Response - Optional configuration of purchase plan for platform image.
- publisher string
- Image Publisher in Azure Gallery Images.
- sku string
- Image sku from the Azure Gallery Images.
- version string
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer str
- Image offer from the Azure Gallery Images.
- plan_
info PlatformImage Purchase Plan Response - Optional configuration of purchase plan for platform image.
- publisher str
- Image Publisher in Azure Gallery Images.
- sku str
- Image sku from the Azure Gallery Images.
- version str
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
- offer String
- Image offer from the Azure Gallery Images.
- plan
Info Property Map - Optional configuration of purchase plan for platform image.
- publisher String
- Image Publisher in Azure Gallery Images.
- sku String
- Image sku from the Azure Gallery Images.
- version String
- Image version from the Azure Gallery Images. If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted. Specifying 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
ImageTemplatePowerShellCustomizer, ImageTemplatePowerShellCustomizerArgs
- Inline List<string>
- Array of PowerShell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Run
As boolSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- Run
Elevated bool - If specified, the PowerShell script will be run with elevated privileges
- Script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- Valid
Exit List<int>Codes - Valid exit codes for the PowerShell script. [Default: 0]
- Inline []string
- Array of PowerShell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Run
As boolSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- Run
Elevated bool - If specified, the PowerShell script will be run with elevated privileges
- Script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- Valid
Exit []intCodes - Valid exit codes for the PowerShell script. [Default: 0]
- inline List<String>
- Array of PowerShell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- run
As BooleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated Boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri String - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit List<Integer>Codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline string[]
- Array of PowerShell commands to execute
- name string
- Friendly Name to provide context on what this customization step does
- run
As booleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit number[]Codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline Sequence[str]
- Array of PowerShell commands to execute
- name str
- Friendly Name to provide context on what this customization step does
- run_
as_ boolsystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run_
elevated bool - If specified, the PowerShell script will be run with elevated privileges
- script_
uri str - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256_
checksum str - SHA256 checksum of the power shell script provided in the scriptUri field above
- valid_
exit_ Sequence[int]codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline List<String>
- Array of PowerShell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- run
As BooleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated Boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri String - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit List<Number>Codes - Valid exit codes for the PowerShell script. [Default: 0]
ImageTemplatePowerShellCustomizerResponse, ImageTemplatePowerShellCustomizerResponseArgs
- Inline List<string>
- Array of PowerShell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Run
As boolSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- Run
Elevated bool - If specified, the PowerShell script will be run with elevated privileges
- Script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- Valid
Exit List<int>Codes - Valid exit codes for the PowerShell script. [Default: 0]
- Inline []string
- Array of PowerShell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Run
As boolSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- Run
Elevated bool - If specified, the PowerShell script will be run with elevated privileges
- Script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- Valid
Exit []intCodes - Valid exit codes for the PowerShell script. [Default: 0]
- inline List<String>
- Array of PowerShell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- run
As BooleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated Boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri String - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit List<Integer>Codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline string[]
- Array of PowerShell commands to execute
- name string
- Friendly Name to provide context on what this customization step does
- run
As booleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri string - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum string
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit number[]Codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline Sequence[str]
- Array of PowerShell commands to execute
- name str
- Friendly Name to provide context on what this customization step does
- run_
as_ boolsystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run_
elevated bool - If specified, the PowerShell script will be run with elevated privileges
- script_
uri str - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256_
checksum str - SHA256 checksum of the power shell script provided in the scriptUri field above
- valid_
exit_ Sequence[int]codes - Valid exit codes for the PowerShell script. [Default: 0]
- inline List<String>
- Array of PowerShell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- run
As BooleanSystem - If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
- run
Elevated Boolean - If specified, the PowerShell script will be run with elevated privileges
- script
Uri String - URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the power shell script provided in the scriptUri field above
- valid
Exit List<Number>Codes - Valid exit codes for the PowerShell script. [Default: 0]
ImageTemplateRestartCustomizer, ImageTemplateRestartCustomizerArgs
- Name string
- Friendly Name to provide context on what this customization step does
- Restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- Restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- Restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- Name string
- Friendly Name to provide context on what this customization step does
- Restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- Restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- Restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name String
- Friendly Name to provide context on what this customization step does
- restart
Check StringCommand - Command to check if restart succeeded [Default: '']
- restart
Command String - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout String - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name string
- Friendly Name to provide context on what this customization step does
- restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name str
- Friendly Name to provide context on what this customization step does
- restart_
check_ strcommand - Command to check if restart succeeded [Default: '']
- restart_
command str - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart_
timeout str - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name String
- Friendly Name to provide context on what this customization step does
- restart
Check StringCommand - Command to check if restart succeeded [Default: '']
- restart
Command String - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout String - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
ImageTemplateRestartCustomizerResponse, ImageTemplateRestartCustomizerResponseArgs
- Name string
- Friendly Name to provide context on what this customization step does
- Restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- Restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- Restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- Name string
- Friendly Name to provide context on what this customization step does
- Restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- Restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- Restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name String
- Friendly Name to provide context on what this customization step does
- restart
Check StringCommand - Command to check if restart succeeded [Default: '']
- restart
Command String - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout String - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name string
- Friendly Name to provide context on what this customization step does
- restart
Check stringCommand - Command to check if restart succeeded [Default: '']
- restart
Command string - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout string - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name str
- Friendly Name to provide context on what this customization step does
- restart_
check_ strcommand - Command to check if restart succeeded [Default: '']
- restart_
command str - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart_
timeout str - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
- name String
- Friendly Name to provide context on what this customization step does
- restart
Check StringCommand - Command to check if restart succeeded [Default: '']
- restart
Command String - Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
- restart
Timeout String - Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
ImageTemplateSharedImageDistributor, ImageTemplateSharedImageDistributorArgs
- Gallery
Image stringId - Resource Id of the Shared Image Gallery image
- Replication
Regions List<string> - A list of regions that the image will be replicated to
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Exclude
From boolLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- Storage
Account string | Pulumi.Type Azure Native. Virtual Machine Images. Shared Image Storage Account Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- Gallery
Image stringId - Resource Id of the Shared Image Gallery image
- Replication
Regions []string - A list of regions that the image will be replicated to
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Exclude
From boolLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- Storage
Account string | SharedType Image Storage Account Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image StringId - Resource Id of the Shared Image Gallery image
- replication
Regions List<String> - A list of regions that the image will be replicated to
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From BooleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account String | SharedType Image Storage Account Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image stringId - Resource Id of the Shared Image Gallery image
- replication
Regions string[] - A list of regions that the image will be replicated to
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From booleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account string | SharedType Image Storage Account Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery_
image_ strid - Resource Id of the Shared Image Gallery image
- replication_
regions Sequence[str] - A list of regions that the image will be replicated to
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude_
from_ boollatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage_
account_ str | Sharedtype Image Storage Account Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image StringId - Resource Id of the Shared Image Gallery image
- replication
Regions List<String> - A list of regions that the image will be replicated to
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From BooleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account String | "Standard_LRS" | "Standard_ZRS"Type - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
ImageTemplateSharedImageDistributorResponse, ImageTemplateSharedImageDistributorResponseArgs
- Gallery
Image stringId - Resource Id of the Shared Image Gallery image
- Replication
Regions List<string> - A list of regions that the image will be replicated to
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Exclude
From boolLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- Storage
Account stringType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- Gallery
Image stringId - Resource Id of the Shared Image Gallery image
- Replication
Regions []string - A list of regions that the image will be replicated to
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Exclude
From boolLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- Storage
Account stringType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image StringId - Resource Id of the Shared Image Gallery image
- replication
Regions List<String> - A list of regions that the image will be replicated to
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From BooleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account StringType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image stringId - Resource Id of the Shared Image Gallery image
- replication
Regions string[] - A list of regions that the image will be replicated to
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From booleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account stringType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery_
image_ strid - Resource Id of the Shared Image Gallery image
- replication_
regions Sequence[str] - A list of regions that the image will be replicated to
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude_
from_ boollatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage_
account_ strtype - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
- gallery
Image StringId - Resource Id of the Shared Image Gallery image
- replication
Regions List<String> - A list of regions that the image will be replicated to
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- exclude
From BooleanLatest - Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
- storage
Account StringType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
ImageTemplateSharedImageVersionSource, ImageTemplateSharedImageVersionSourceArgs
- Image
Version stringId - ARM resource id of the image version in the shared image gallery
- Image
Version stringId - ARM resource id of the image version in the shared image gallery
- image
Version StringId - ARM resource id of the image version in the shared image gallery
- image
Version stringId - ARM resource id of the image version in the shared image gallery
- image_
version_ strid - ARM resource id of the image version in the shared image gallery
- image
Version StringId - ARM resource id of the image version in the shared image gallery
ImageTemplateSharedImageVersionSourceResponse, ImageTemplateSharedImageVersionSourceResponseArgs
- Image
Version stringId - ARM resource id of the image version in the shared image gallery
- Image
Version stringId - ARM resource id of the image version in the shared image gallery
- image
Version StringId - ARM resource id of the image version in the shared image gallery
- image
Version stringId - ARM resource id of the image version in the shared image gallery
- image_
version_ strid - ARM resource id of the image version in the shared image gallery
- image
Version StringId - ARM resource id of the image version in the shared image gallery
ImageTemplateShellCustomizer, ImageTemplateShellCustomizerArgs
- Inline List<string>
- Array of shell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- Inline []string
- Array of shell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- inline List<String>
- Array of shell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- script
Uri String - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the shell script provided in the scriptUri field
- inline string[]
- Array of shell commands to execute
- name string
- Friendly Name to provide context on what this customization step does
- script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- inline Sequence[str]
- Array of shell commands to execute
- name str
- Friendly Name to provide context on what this customization step does
- script_
uri str - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256_
checksum str - SHA256 checksum of the shell script provided in the scriptUri field
- inline List<String>
- Array of shell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- script
Uri String - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the shell script provided in the scriptUri field
ImageTemplateShellCustomizerResponse, ImageTemplateShellCustomizerResponseArgs
- Inline List<string>
- Array of shell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- Inline []string
- Array of shell commands to execute
- Name string
- Friendly Name to provide context on what this customization step does
- Script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- Sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- inline List<String>
- Array of shell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- script
Uri String - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the shell script provided in the scriptUri field
- inline string[]
- Array of shell commands to execute
- name string
- Friendly Name to provide context on what this customization step does
- script
Uri string - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum string
- SHA256 checksum of the shell script provided in the scriptUri field
- inline Sequence[str]
- Array of shell commands to execute
- name str
- Friendly Name to provide context on what this customization step does
- script_
uri str - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256_
checksum str - SHA256 checksum of the shell script provided in the scriptUri field
- inline List<String>
- Array of shell commands to execute
- name String
- Friendly Name to provide context on what this customization step does
- script
Uri String - URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
- sha256Checksum String
- SHA256 checksum of the shell script provided in the scriptUri field
ImageTemplateVhdDistributor, ImageTemplateVhdDistributorArgs
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
ImageTemplateVhdDistributorResponse, ImageTemplateVhdDistributorResponseArgs
- Run
Output stringName - The name to be used for the associated RunOutput.
- Dictionary<string, string>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- Run
Output stringName - The name to be used for the associated RunOutput.
- map[string]string
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String,String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output stringName - The name to be used for the associated RunOutput.
- {[key: string]: string}
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run_
output_ strname - The name to be used for the associated RunOutput.
- Mapping[str, str]
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
- run
Output StringName - The name to be used for the associated RunOutput.
- Map<String>
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
ImageTemplateVmProfile, ImageTemplateVmProfileArgs
- Os
Disk intSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- Vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- Vnet
Config Pulumi.Azure Native. Virtual Machine Images. Inputs. Virtual Network Config - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- Os
Disk intSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- Vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- Vnet
Config VirtualNetwork Config - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk IntegerSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size String - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config VirtualNetwork Config - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk numberSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config VirtualNetwork Config - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os_
disk_ intsize_ gb - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm_
size str - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet_
config VirtualNetwork Config - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk NumberSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size String - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config Property Map - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
ImageTemplateVmProfileResponse, ImageTemplateVmProfileResponseArgs
- Os
Disk intSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- Vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- Vnet
Config Pulumi.Azure Native. Virtual Machine Images. Inputs. Virtual Network Config Response - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- Os
Disk intSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- Vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- Vnet
Config VirtualNetwork Config Response - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk IntegerSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size String - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config VirtualNetwork Config Response - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk numberSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size string - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config VirtualNetwork Config Response - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os_
disk_ intsize_ gb - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm_
size str - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet_
config VirtualNetwork Config Response - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
- os
Disk NumberSize GB - Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
- vm
Size String - Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
- vnet
Config Property Map - Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual network needs to be used.
ImageTemplateWindowsUpdateCustomizer, ImageTemplateWindowsUpdateCustomizerArgs
- Filters List<string>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- Name string
- Friendly Name to provide context on what this customization step does
- Search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- Update
Limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- Filters []string
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- Name string
- Friendly Name to provide context on what this customization step does
- Search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- Update
Limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters List<String>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name String
- Friendly Name to provide context on what this customization step does
- search
Criteria String - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit Integer - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters string[]
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name string
- Friendly Name to provide context on what this customization step does
- search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit number - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters Sequence[str]
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name str
- Friendly Name to provide context on what this customization step does
- search_
criteria str - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update_
limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters List<String>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name String
- Friendly Name to provide context on what this customization step does
- search
Criteria String - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit Number - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
ImageTemplateWindowsUpdateCustomizerResponse, ImageTemplateWindowsUpdateCustomizerResponseArgs
- Filters List<string>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- Name string
- Friendly Name to provide context on what this customization step does
- Search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- Update
Limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- Filters []string
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- Name string
- Friendly Name to provide context on what this customization step does
- Search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- Update
Limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters List<String>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name String
- Friendly Name to provide context on what this customization step does
- search
Criteria String - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit Integer - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters string[]
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name string
- Friendly Name to provide context on what this customization step does
- search
Criteria string - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit number - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters Sequence[str]
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name str
- Friendly Name to provide context on what this customization step does
- search_
criteria str - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update_
limit int - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
- filters List<String>
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
- name String
- Friendly Name to provide context on what this customization step does
- search
Criteria String - Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
- update
Limit Number - Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
PlatformImagePurchasePlan, PlatformImagePurchasePlanArgs
- Plan
Name string - Name of the purchase plan.
- Plan
Product string - Product of the purchase plan.
- Plan
Publisher string - Publisher of the purchase plan.
- Plan
Name string - Name of the purchase plan.
- Plan
Product string - Product of the purchase plan.
- Plan
Publisher string - Publisher of the purchase plan.
- plan
Name String - Name of the purchase plan.
- plan
Product String - Product of the purchase plan.
- plan
Publisher String - Publisher of the purchase plan.
- plan
Name string - Name of the purchase plan.
- plan
Product string - Product of the purchase plan.
- plan
Publisher string - Publisher of the purchase plan.
- plan_
name str - Name of the purchase plan.
- plan_
product str - Product of the purchase plan.
- plan_
publisher str - Publisher of the purchase plan.
- plan
Name String - Name of the purchase plan.
- plan
Product String - Product of the purchase plan.
- plan
Publisher String - Publisher of the purchase plan.
PlatformImagePurchasePlanResponse, PlatformImagePurchasePlanResponseArgs
- Plan
Name string - Name of the purchase plan.
- Plan
Product string - Product of the purchase plan.
- Plan
Publisher string - Publisher of the purchase plan.
- Plan
Name string - Name of the purchase plan.
- Plan
Product string - Product of the purchase plan.
- Plan
Publisher string - Publisher of the purchase plan.
- plan
Name String - Name of the purchase plan.
- plan
Product String - Product of the purchase plan.
- plan
Publisher String - Publisher of the purchase plan.
- plan
Name string - Name of the purchase plan.
- plan
Product string - Product of the purchase plan.
- plan
Publisher string - Publisher of the purchase plan.
- plan_
name str - Name of the purchase plan.
- plan_
product str - Product of the purchase plan.
- plan_
publisher str - Publisher of the purchase plan.
- plan
Name String - Name of the purchase plan.
- plan
Product String - Product of the purchase plan.
- plan
Publisher String - Publisher of the purchase plan.
ProvisioningErrorResponse, ProvisioningErrorResponseArgs
- Message string
- Verbose error message about the provisioning failure
- Provisioning
Error stringCode - Error code of the provisioning failure
- Message string
- Verbose error message about the provisioning failure
- Provisioning
Error stringCode - Error code of the provisioning failure
- message String
- Verbose error message about the provisioning failure
- provisioning
Error StringCode - Error code of the provisioning failure
- message string
- Verbose error message about the provisioning failure
- provisioning
Error stringCode - Error code of the provisioning failure
- message str
- Verbose error message about the provisioning failure
- provisioning_
error_ strcode - Error code of the provisioning failure
- message String
- Verbose error message about the provisioning failure
- provisioning
Error StringCode - Error code of the provisioning failure
ResourceIdentityType, ResourceIdentityTypeArgs
- User
Assigned - UserAssigned
- None
- None
- Resource
Identity Type User Assigned - UserAssigned
- Resource
Identity Type None - None
- User
Assigned - UserAssigned
- None
- None
- User
Assigned - UserAssigned
- None
- None
- USER_ASSIGNED
- UserAssigned
- NONE
- None
- "User
Assigned" - UserAssigned
- "None"
- None
SharedImageStorageAccountType, SharedImageStorageAccountTypeArgs
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Shared
Image Storage Account Type_Standard_LRS - Standard_LRS
- Shared
Image Storage Account Type_Standard_ZRS - Standard_ZRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- Standard_LRS
- Standard_LRS
- Standard_ZRS
- Standard_ZRS
- STANDARD_LRS
- Standard_LRS
- STANDARD_ZRS
- Standard_ZRS
- "Standard_LRS"
- Standard_LRS
- "Standard_ZRS"
- Standard_ZRS
VirtualNetworkConfig, VirtualNetworkConfigArgs
- Subnet
Id string - Resource id of a pre-existing subnet.
- Subnet
Id string - Resource id of a pre-existing subnet.
- subnet
Id String - Resource id of a pre-existing subnet.
- subnet
Id string - Resource id of a pre-existing subnet.
- subnet_
id str - Resource id of a pre-existing subnet.
- subnet
Id String - Resource id of a pre-existing subnet.
VirtualNetworkConfigResponse, VirtualNetworkConfigResponseArgs
- Subnet
Id string - Resource id of a pre-existing subnet.
- Subnet
Id string - Resource id of a pre-existing subnet.
- subnet
Id String - Resource id of a pre-existing subnet.
- subnet
Id string - Resource id of a pre-existing subnet.
- subnet_
id str - Resource id of a pre-existing subnet.
- subnet
Id String - Resource id of a pre-existing subnet.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:virtualmachineimages:VirtualMachineImageTemplate myImageTemplate /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate
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