LinuxVirtualMachineArgs

data class LinuxVirtualMachineArgs(val additionalCapabilities: Output<LinuxVirtualMachineAdditionalCapabilitiesArgs>? = null, val adminPassword: Output<String>? = null, val adminSshKeys: Output<List<LinuxVirtualMachineAdminSshKeyArgs>>? = null, val adminUsername: Output<String>? = null, val allowExtensionOperations: Output<Boolean>? = null, val availabilitySetId: Output<String>? = null, val bootDiagnostics: Output<LinuxVirtualMachineBootDiagnosticsArgs>? = null, val bypassPlatformSafetyChecksOnUserScheduleEnabled: Output<Boolean>? = null, val capacityReservationGroupId: Output<String>? = null, val computerName: Output<String>? = null, val customData: Output<String>? = null, val dedicatedHostGroupId: Output<String>? = null, val dedicatedHostId: Output<String>? = null, val disablePasswordAuthentication: Output<Boolean>? = null, val diskControllerType: Output<String>? = null, val edgeZone: Output<String>? = null, val encryptionAtHostEnabled: Output<Boolean>? = null, val evictionPolicy: Output<String>? = null, val extensionsTimeBudget: Output<String>? = null, val galleryApplications: Output<List<LinuxVirtualMachineGalleryApplicationArgs>>? = null, val identity: Output<LinuxVirtualMachineIdentityArgs>? = null, val licenseType: Output<String>? = null, val location: Output<String>? = null, val maxBidPrice: Output<Double>? = null, val name: Output<String>? = null, val networkInterfaceIds: Output<List<String>>? = null, val osDisk: Output<LinuxVirtualMachineOsDiskArgs>? = null, val osImageNotification: Output<LinuxVirtualMachineOsImageNotificationArgs>? = null, val patchAssessmentMode: Output<String>? = null, val patchMode: Output<String>? = null, val plan: Output<LinuxVirtualMachinePlanArgs>? = null, val platformFaultDomain: Output<Int>? = null, val priority: Output<String>? = null, val provisionVmAgent: Output<Boolean>? = null, val proximityPlacementGroupId: Output<String>? = null, val rebootSetting: Output<String>? = null, val resourceGroupName: Output<String>? = null, val secrets: Output<List<LinuxVirtualMachineSecretArgs>>? = null, val secureBootEnabled: Output<Boolean>? = null, val size: Output<String>? = null, val sourceImageId: Output<String>? = null, val sourceImageReference: Output<LinuxVirtualMachineSourceImageReferenceArgs>? = null, val tags: Output<Map<String, String>>? = null, val terminationNotification: Output<LinuxVirtualMachineTerminationNotificationArgs>? = null, val userData: Output<String>? = null, val virtualMachineScaleSetId: Output<String>? = null, val vmAgentPlatformUpdatesEnabled: Output<Boolean>? = null, val vtpmEnabled: Output<Boolean>? = null, val zone: Output<String>? = null) : ConvertibleToJava<LinuxVirtualMachineArgs>

Manages a Linux Virtual Machine.

Disclaimers

Note This provider will automatically remove the OS Disk by default - this behaviour can be configured using the features configuration within the Provider configuration block. Note All arguments including the administrator login and password will be stored in the raw state as plain-text. Note This resource does not support Unmanaged Disks. If you need to use Unmanaged Disks you can continue to use the azure.compute.VirtualMachine resource instead. Note This resource does not support attaching existing OS Disks. You can instead capture an image of the OS Disk or continue to use the azure.compute.VirtualMachine resource instead. In this release there's a known issue where the public_ip_address and public_ip_addresses fields may not be fully populated for Dynamic Public IP's.

Example Usage

This example provisions a basic Linux Virtual Machine on an internal network.

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-network",
addressSpaces: ["10&#46;0&#46;0&#46;0/16"],
location: example.location,
resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "internal",
resourceGroupName: example.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10&#46;0&#46;2&#46;0/24"],
});
const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
name: "example-nic",
location: example.location,
resourceGroupName: example.name,
ipConfigurations: [{
name: "internal",
subnetId: exampleSubnet.id,
privateIpAddressAllocation: "Dynamic",
}],
});
const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("example", {
name: "example-machine",
resourceGroupName: example.name,
location: example.location,
size: "Standard_F2",
adminUsername: "adminuser",
networkInterfaceIds: [exampleNetworkInterface&#46;id],
adminSshKeys: [{
username: "adminuser",
publicKey: std.file({
input: "~/.ssh/id_rsa.pub",
}).then(invoke => invoke.result),
}],
osDisk: {
caching: "ReadWrite",
storageAccountType: "Standard_LRS",
},
sourceImageReference: {
publisher: "Canonical",
offer: "0001-com-ubuntu-server-jammy",
sku: "22_04-lts",
version: "latest",
},
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-network",
address_spaces=["10&#46;0&#46;0&#46;0/16"],
location=example.location,
resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
name="internal",
resource_group_name=example.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10&#46;0&#46;2&#46;0/24"])
example_network_interface = azure.network.NetworkInterface("example",
name="example-nic",
location=example.location,
resource_group_name=example.name,
ip_configurations=[{
"name": "internal",
"subnet_id": example_subnet.id,
"private_ip_address_allocation": "Dynamic",
}])
example_linux_virtual_machine = azure.compute.LinuxVirtualMachine("example",
name="example-machine",
resource_group_name=example.name,
location=example.location,
size="Standard_F2",
admin_username="adminuser",
network_interface_ids=[example_network_interface&#46;id],
admin_ssh_keys=[{
"username": "adminuser",
"public_key": std.file(input="~/.ssh/id_rsa.pub").result,
}],
os_disk={
"caching": "ReadWrite",
"storage_account_type": "Standard_LRS",
},
source_image_reference={
"publisher": "Canonical",
"offer": "0001-com-ubuntu-server-jammy",
"sku": "22_04-lts",
"version": "latest",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-network",
AddressSpaces = new[]
{
"10.0.0.0/16",
},
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "internal",
ResourceGroupName = example.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"10.0.2.0/24",
},
});
var exampleNetworkInterface = new Azure.Network.NetworkInterface("example", new()
{
Name = "example-nic",
Location = example.Location,
ResourceGroupName = example.Name,
IpConfigurations = new[]
{
new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
{
Name = "internal",
SubnetId = exampleSubnet.Id,
PrivateIpAddressAllocation = "Dynamic",
},
},
});
var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine("example", new()
{
Name = "example-machine",
ResourceGroupName = example.Name,
Location = example.Location,
Size = "Standard_F2",
AdminUsername = "adminuser",
NetworkInterfaceIds = new[]
{
exampleNetworkInterface.Id,
},
AdminSshKeys = new[]
{
new Azure.Compute.Inputs.LinuxVirtualMachineAdminSshKeyArgs
{
Username = "adminuser",
PublicKey = Std.File.Invoke(new()
{
Input = "~/.ssh/id_rsa.pub",
}).Apply(invoke => invoke.Result),
},
},
OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs
{
Caching = "ReadWrite",
StorageAccountType = "Standard_LRS",
},
SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs
{
Publisher = "Canonical",
Offer = "0001-com-ubuntu-server-jammy",
Sku = "22_04-lts",
Version = "latest",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-network"),
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("internal"),
ResourceGroupName: example.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.2.0/24"),
},
})
if err != nil {
return err
}
exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{
Name: pulumi.String("example-nic"),
Location: example.Location,
ResourceGroupName: example.Name,
IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
&network.NetworkInterfaceIpConfigurationArgs{
Name: pulumi.String("internal"),
SubnetId: exampleSubnet.ID(),
PrivateIpAddressAllocation: pulumi.String("Dynamic"),
},
},
})
if err != nil {
return err
}
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "~/.ssh/id_rsa.pub",
}, nil)
if err != nil {
return err
}
_, err = compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{
Name: pulumi.String("example-machine"),
ResourceGroupName: example.Name,
Location: example.Location,
Size: pulumi.String("Standard_F2"),
AdminUsername: pulumi.String("adminuser"),
NetworkInterfaceIds: pulumi.StringArray{
exampleNetworkInterface.ID(),
},
AdminSshKeys: compute.LinuxVirtualMachineAdminSshKeyArray{
&compute.LinuxVirtualMachineAdminSshKeyArgs{
Username: pulumi.String("adminuser"),
PublicKey: pulumi.String(invokeFile.Result),
},
},
OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{
Caching: pulumi.String("ReadWrite"),
StorageAccountType: pulumi.String("Standard_LRS"),
},
SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{
Publisher: pulumi.String("Canonical"),
Offer: pulumi.String("0001-com-ubuntu-server-jammy"),
Sku: pulumi.String("22_04-lts"),
Version: pulumi.String("latest"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import com.pulumi.azure.compute.LinuxVirtualMachine;
import com.pulumi.azure.compute.LinuxVirtualMachineArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineAdminSshKeyArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineOsDiskArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineSourceImageReferenceArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FileArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-network")
.addressSpaces("10.0.0.0/16")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("internal")
.resourceGroupName(example.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.build());
var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()
.name("example-nic")
.location(example.location())
.resourceGroupName(example.name())
.ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
.name("internal")
.subnetId(exampleSubnet.id())
.privateIpAddressAllocation("Dynamic")
.build())
.build());
var exampleLinuxVirtualMachine = new LinuxVirtualMachine("exampleLinuxVirtualMachine", LinuxVirtualMachineArgs.builder()
.name("example-machine")
.resourceGroupName(example.name())
.location(example.location())
.size("Standard_F2")
.adminUsername("adminuser")
.networkInterfaceIds(exampleNetworkInterface.id())
.adminSshKeys(LinuxVirtualMachineAdminSshKeyArgs.builder()
.username("adminuser")
.publicKey(StdFunctions.file(FileArgs.builder()
.input("~/.ssh/id_rsa.pub")
.build()).result())
.build())
.osDisk(LinuxVirtualMachineOsDiskArgs.builder()
.caching("ReadWrite")
.storageAccountType("Standard_LRS")
.build())
.sourceImageReference(LinuxVirtualMachineSourceImageReferenceArgs.builder()
.publisher("Canonical")
.offer("0001-com-ubuntu-server-jammy")
.sku("22_04-lts")
.version("latest")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-network
addressSpaces:
- 10.0.0.0/16
location: ${example.location}
resourceGroupName: ${example.name}
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: internal
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.2.0/24
exampleNetworkInterface:
type: azure:network:NetworkInterface
name: example
properties:
name: example-nic
location: ${example.location}
resourceGroupName: ${example.name}
ipConfigurations:
- name: internal
subnetId: ${exampleSubnet.id}
privateIpAddressAllocation: Dynamic
exampleLinuxVirtualMachine:
type: azure:compute:LinuxVirtualMachine
name: example
properties:
name: example-machine
resourceGroupName: ${example.name}
location: ${example.location}
size: Standard_F2
adminUsername: adminuser
networkInterfaceIds:
- ${exampleNetworkInterface.id}
adminSshKeys:
- username: adminuser
publicKey:
fn::invoke:
function: std:file
arguments:
input: ~/.ssh/id_rsa.pub
return: result
osDisk:
caching: ReadWrite
storageAccountType: Standard_LRS
sourceImageReference:
publisher: Canonical
offer: 0001-com-ubuntu-server-jammy
sku: 22_04-lts
version: latest

Import

Linux Virtual Machines can be imported using the resource id, e.g.

$ pulumi import azure:compute/linuxVirtualMachine:LinuxVirtualMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/virtualMachines/machine1

Constructors

Link copied to clipboard
constructor(additionalCapabilities: Output<LinuxVirtualMachineAdditionalCapabilitiesArgs>? = null, adminPassword: Output<String>? = null, adminSshKeys: Output<List<LinuxVirtualMachineAdminSshKeyArgs>>? = null, adminUsername: Output<String>? = null, allowExtensionOperations: Output<Boolean>? = null, availabilitySetId: Output<String>? = null, bootDiagnostics: Output<LinuxVirtualMachineBootDiagnosticsArgs>? = null, bypassPlatformSafetyChecksOnUserScheduleEnabled: Output<Boolean>? = null, capacityReservationGroupId: Output<String>? = null, computerName: Output<String>? = null, customData: Output<String>? = null, dedicatedHostGroupId: Output<String>? = null, dedicatedHostId: Output<String>? = null, disablePasswordAuthentication: Output<Boolean>? = null, diskControllerType: Output<String>? = null, edgeZone: Output<String>? = null, encryptionAtHostEnabled: Output<Boolean>? = null, evictionPolicy: Output<String>? = null, extensionsTimeBudget: Output<String>? = null, galleryApplications: Output<List<LinuxVirtualMachineGalleryApplicationArgs>>? = null, identity: Output<LinuxVirtualMachineIdentityArgs>? = null, licenseType: Output<String>? = null, location: Output<String>? = null, maxBidPrice: Output<Double>? = null, name: Output<String>? = null, networkInterfaceIds: Output<List<String>>? = null, osDisk: Output<LinuxVirtualMachineOsDiskArgs>? = null, osImageNotification: Output<LinuxVirtualMachineOsImageNotificationArgs>? = null, patchAssessmentMode: Output<String>? = null, patchMode: Output<String>? = null, plan: Output<LinuxVirtualMachinePlanArgs>? = null, platformFaultDomain: Output<Int>? = null, priority: Output<String>? = null, provisionVmAgent: Output<Boolean>? = null, proximityPlacementGroupId: Output<String>? = null, rebootSetting: Output<String>? = null, resourceGroupName: Output<String>? = null, secrets: Output<List<LinuxVirtualMachineSecretArgs>>? = null, secureBootEnabled: Output<Boolean>? = null, size: Output<String>? = null, sourceImageId: Output<String>? = null, sourceImageReference: Output<LinuxVirtualMachineSourceImageReferenceArgs>? = null, tags: Output<Map<String, String>>? = null, terminationNotification: Output<LinuxVirtualMachineTerminationNotificationArgs>? = null, userData: Output<String>? = null, virtualMachineScaleSetId: Output<String>? = null, vmAgentPlatformUpdatesEnabled: Output<Boolean>? = null, vtpmEnabled: Output<Boolean>? = null, zone: Output<String>? = null)

Properties

Link copied to clipboard

A additional_capabilities block as defined below.

Link copied to clipboard
val adminPassword: Output<String>? = null

The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.

Link copied to clipboard

One or more admin_ssh_key blocks as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val adminUsername: Output<String>? = null

The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created.

Link copied to clipboard
val allowExtensionOperations: Output<Boolean>? = null

Should Extension Operations be allowed on this Virtual Machine? Defaults to true.

Link copied to clipboard
val availabilitySetId: Output<String>? = null

Specifies the ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.

Link copied to clipboard

A boot_diagnostics block as defined below.

Specifies whether to skip platform scheduled patching when a user schedule is associated with the VM. Defaults to false.

Link copied to clipboard
val capacityReservationGroupId: Output<String>? = null

Specifies the ID of the Capacity Reservation Group which the Virtual Machine should be allocated to.

Link copied to clipboard
val computerName: Output<String>? = null

Specifies the Hostname which should be used for this Virtual Machine. If unspecified this defaults to the value for the name field. If the value of the name field is not a valid computer_name, then you must specify computer_name. Changing this forces a new resource to be created.

Link copied to clipboard
val customData: Output<String>? = null

The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created.

Link copied to clipboard
val dedicatedHostGroupId: Output<String>? = null

The ID of a Dedicated Host Group that this Linux Virtual Machine should be run within. Conflicts with dedicated_host_id.

Link copied to clipboard
val dedicatedHostId: Output<String>? = null

The ID of a Dedicated Host where this machine should be run on. Conflicts with dedicated_host_group_id.

Link copied to clipboard

Should Password Authentication be disabled on this Virtual Machine? Defaults to true. Changing this forces a new resource to be created.

Link copied to clipboard
val diskControllerType: Output<String>? = null

Specifies the Disk Controller Type used for this Virtual Machine. Possible values are SCSI and NVMe.

Link copied to clipboard
val edgeZone: Output<String>? = null

Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine should exist. Changing this forces a new Linux Virtual Machine to be created.

Link copied to clipboard
val encryptionAtHostEnabled: Output<Boolean>? = null

Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?

Link copied to clipboard
val evictionPolicy: Output<String>? = null

Specifies what should happen when the Virtual Machine is evicted for price reasons when using a Spot instance. Possible values are Deallocate and Delete. Changing this forces a new resource to be created.

Link copied to clipboard
val extensionsTimeBudget: Output<String>? = null

Specifies the duration allocated for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. Defaults to PT1H30M.

Link copied to clipboard

One or more gallery_application blocks as defined below.

Link copied to clipboard

An identity block as defined below.

Link copied to clipboard
val licenseType: Output<String>? = null

Specifies the License Type for this Virtual Machine. Possible values are RHEL_BYOS, RHEL_BASE, RHEL_EUS, RHEL_SAPAPPS, RHEL_SAPHA, RHEL_BASESAPAPPS, RHEL_BASESAPHA, SLES_BYOS, SLES_SAP, SLES_HPC, UBUNTU_PRO.

Link copied to clipboard
val location: Output<String>? = null

The Azure location where the Linux Virtual Machine should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val maxBidPrice: Output<Double>? = null

The maximum price you're willing to pay for this Virtual Machine, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machine will be evicted using the eviction_policy. Defaults to -1, which means that the Virtual Machine should not be evicted for price reasons.

Link copied to clipboard
val name: Output<String>? = null

The name of the Linux Virtual Machine. Changing this forces a new resource to be created.

Link copied to clipboard
val networkInterfaceIds: Output<List<String>>? = null

. A list of Network Interface IDs which should be attached to this Virtual Machine. The first Network Interface ID in this list will be the Primary Network Interface on the Virtual Machine.

Link copied to clipboard

A os_disk block as defined below.

Link copied to clipboard

A os_image_notification block as defined below.

Link copied to clipboard
val patchAssessmentMode: Output<String>? = null

Specifies the mode of VM Guest Patching for the Virtual Machine. Possible values are AutomaticByPlatform or ImageDefault. Defaults to ImageDefault.

Link copied to clipboard
val patchMode: Output<String>? = null

Specifies the mode of in-guest patching to this Linux Virtual Machine. Possible values are AutomaticByPlatform and ImageDefault. Defaults to ImageDefault. For more information on patch modes please see the product documentation.

Link copied to clipboard
val plan: Output<LinuxVirtualMachinePlanArgs>? = null

A plan block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val platformFaultDomain: Output<Int>? = null

Specifies the Platform Fault Domain in which this Linux Virtual Machine should be created. Defaults to -1, which means this will be automatically assigned to a fault domain that best maintains balance across the available fault domains. Changing this forces a new Linux Virtual Machine to be created.

Link copied to clipboard
val priority: Output<String>? = null

Specifies the priority of this Virtual Machine. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created.

Link copied to clipboard
val provisionVmAgent: Output<Boolean>? = null

Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to true. Changing this forces a new resource to be created.

Link copied to clipboard
val proximityPlacementGroupId: Output<String>? = null

The ID of the Proximity Placement Group which the Virtual Machine should be assigned to.

Link copied to clipboard
val rebootSetting: Output<String>? = null

Specifies the reboot setting for platform scheduled patching. Possible values are Always, IfRequired and Never.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group in which the Linux Virtual Machine should be exist. Changing this forces a new resource to be created.

Link copied to clipboard

One or more secret blocks as defined below.

Link copied to clipboard
val secureBootEnabled: Output<Boolean>? = null

Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.

Link copied to clipboard
val size: Output<String>? = null

The SKU which should be used for this Virtual Machine, such as Standard_F2.

Link copied to clipboard
val sourceImageId: Output<String>? = null

The ID of the Image which this Virtual Machine should be created from. Changing this forces a new resource to be created. Possible Image ID types include Image IDs, Shared Image IDs, Shared Image Version IDs, Community Gallery Image IDs, Community Gallery Image Version IDs, Shared Gallery Image IDs and Shared Gallery Image Version IDs.

Link copied to clipboard

A source_image_reference block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to this Virtual Machine.

Link copied to clipboard

A termination_notification block as defined below.

Link copied to clipboard
val userData: Output<String>? = null

The Base64-Encoded User Data which should be used for this Virtual Machine.

Link copied to clipboard
val virtualMachineScaleSetId: Output<String>? = null

Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within.

Link copied to clipboard

Specifies whether VMAgent Platform Updates is enabled. Defaults to false.

Link copied to clipboard
val vtpmEnabled: Output<Boolean>? = null

Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.

Link copied to clipboard
val zone: Output<String>? = null

Specifies the Availability Zones in which this Linux Virtual Machine should be located. Changing this forces a new Linux Virtual Machine to be created.

Functions

Link copied to clipboard
open override fun toJava(): LinuxVirtualMachineArgs