All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.compute.kotlin.WindowsVirtualMachineArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin

import com.pulumi.azure.compute.WindowsVirtualMachineArgs.builder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineAdditionalCapabilitiesArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineAdditionalCapabilitiesArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineAdditionalUnattendContentArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineAdditionalUnattendContentArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineBootDiagnosticsArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineBootDiagnosticsArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineGalleryApplicationArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineGalleryApplicationArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineIdentityArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineIdentityArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineOsDiskArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineOsDiskArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineOsImageNotificationArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineOsImageNotificationArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachinePlanArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachinePlanArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineSecretArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineSecretArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineSourceImageReferenceArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineSourceImageReferenceArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineTerminationNotificationArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineTerminationNotificationArgsBuilder
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineWinrmListenerArgs
import com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineWinrmListenerArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Windows Virtual Machine.
 * ## Disclaimers
 * > **Note** This provider will automatically remove the OS Disk by default - this behaviour can be configured using the `features` setting within the Provider 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 Windows Virtual Machine on an internal network.
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * 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.0.0.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.0.2.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 exampleWindowsVirtualMachine = new azure.compute.WindowsVirtualMachine("example", {
 *     name: "example-machine",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     size: "Standard_F2",
 *     adminUsername: "adminuser",
 *     adminPassword: "P@$$w0rd1234!",
 *     networkInterfaceIds: [exampleNetworkInterface.id],
 *     osDisk: {
 *         caching: "ReadWrite",
 *         storageAccountType: "Standard_LRS",
 *     },
 *     sourceImageReference: {
 *         publisher: "MicrosoftWindowsServer",
 *         offer: "WindowsServer",
 *         sku: "2016-Datacenter",
 *         version: "latest",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_virtual_network = azure.network.VirtualNetwork("example",
 *     name="example-network",
 *     address_spaces=["10.0.0.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.0.2.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_windows_virtual_machine = azure.compute.WindowsVirtualMachine("example",
 *     name="example-machine",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     size="Standard_F2",
 *     admin_username="adminuser",
 *     admin_password="P@$$w0rd1234!",
 *     network_interface_ids=[example_network_interface.id],
 *     os_disk={
 *         "caching": "ReadWrite",
 *         "storage_account_type": "Standard_LRS",
 *     },
 *     source_image_reference={
 *         "publisher": "MicrosoftWindowsServer",
 *         "offer": "WindowsServer",
 *         "sku": "2016-Datacenter",
 *         "version": "latest",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * 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 exampleWindowsVirtualMachine = new Azure.Compute.WindowsVirtualMachine("example", new()
 *     {
 *         Name = "example-machine",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         Size = "Standard_F2",
 *         AdminUsername = "adminuser",
 *         AdminPassword = "P@$$w0rd1234!",
 *         NetworkInterfaceIds = new[]
 *         {
 *             exampleNetworkInterface.Id,
 *         },
 *         OsDisk = new Azure.Compute.Inputs.WindowsVirtualMachineOsDiskArgs
 *         {
 *             Caching = "ReadWrite",
 *             StorageAccountType = "Standard_LRS",
 *         },
 *         SourceImageReference = new Azure.Compute.Inputs.WindowsVirtualMachineSourceImageReferenceArgs
 *         {
 *             Publisher = "MicrosoftWindowsServer",
 *             Offer = "WindowsServer",
 *             Sku = "2016-Datacenter",
 *             Version = "latest",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
 * 	"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
 * 		}
 * 		_, err = compute.NewWindowsVirtualMachine(ctx, "example", &compute.WindowsVirtualMachineArgs{
 * 			Name:              pulumi.String("example-machine"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			Size:              pulumi.String("Standard_F2"),
 * 			AdminUsername:     pulumi.String("adminuser"),
 * 			AdminPassword:     pulumi.String("P@$$w0rd1234!"),
 * 			NetworkInterfaceIds: pulumi.StringArray{
 * 				exampleNetworkInterface.ID(),
 * 			},
 * 			OsDisk: &compute.WindowsVirtualMachineOsDiskArgs{
 * 				Caching:            pulumi.String("ReadWrite"),
 * 				StorageAccountType: pulumi.String("Standard_LRS"),
 * 			},
 * 			SourceImageReference: &compute.WindowsVirtualMachineSourceImageReferenceArgs{
 * 				Publisher: pulumi.String("MicrosoftWindowsServer"),
 * 				Offer:     pulumi.String("WindowsServer"),
 * 				Sku:       pulumi.String("2016-Datacenter"),
 * 				Version:   pulumi.String("latest"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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.WindowsVirtualMachine;
 * import com.pulumi.azure.compute.WindowsVirtualMachineArgs;
 * import com.pulumi.azure.compute.inputs.WindowsVirtualMachineOsDiskArgs;
 * import com.pulumi.azure.compute.inputs.WindowsVirtualMachineSourceImageReferenceArgs;
 * 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 exampleWindowsVirtualMachine = new WindowsVirtualMachine("exampleWindowsVirtualMachine", WindowsVirtualMachineArgs.builder()
 *             .name("example-machine")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .size("Standard_F2")
 *             .adminUsername("adminuser")
 *             .adminPassword("P@$$w0rd1234!")
 *             .networkInterfaceIds(exampleNetworkInterface.id())
 *             .osDisk(WindowsVirtualMachineOsDiskArgs.builder()
 *                 .caching("ReadWrite")
 *                 .storageAccountType("Standard_LRS")
 *                 .build())
 *             .sourceImageReference(WindowsVirtualMachineSourceImageReferenceArgs.builder()
 *                 .publisher("MicrosoftWindowsServer")
 *                 .offer("WindowsServer")
 *                 .sku("2016-Datacenter")
 *                 .version("latest")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * 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
 *   exampleWindowsVirtualMachine:
 *     type: azure:compute:WindowsVirtualMachine
 *     name: example
 *     properties:
 *       name: example-machine
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       size: Standard_F2
 *       adminUsername: adminuser
 *       adminPassword: P@$$w0rd1234!
 *       networkInterfaceIds:
 *         - ${exampleNetworkInterface.id}
 *       osDisk:
 *         caching: ReadWrite
 *         storageAccountType: Standard_LRS
 *       sourceImageReference:
 *         publisher: MicrosoftWindowsServer
 *         offer: WindowsServer
 *         sku: 2016-Datacenter
 *         version: latest
 * ```
 * 
 * ## Import
 * Windows Virtual Machines can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:compute/windowsVirtualMachine:WindowsVirtualMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/virtualMachines/machine1
 * ```
 * @property additionalCapabilities A `additional_capabilities` block as defined below.
 * @property additionalUnattendContents One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
 * @property adminPassword The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
 * @property adminUsername The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created.
 * @property allowExtensionOperations Should Extension Operations be allowed on this Virtual Machine? Defaults to `true`.
 * @property availabilitySetId Specifies the ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.
 * @property bootDiagnostics A `boot_diagnostics` block as defined below.
 * @property bypassPlatformSafetyChecksOnUserScheduleEnabled Specifies whether to skip platform scheduled patching when a user schedule is associated with the VM. Defaults to `false`.
 * > **NOTE:** `bypass_platform_safety_checks_on_user_schedule_enabled` can only be set to `true` when `patch_mode` is set to `AutomaticByPlatform`.
 * @property capacityReservationGroupId Specifies the ID of the Capacity Reservation Group which the Virtual Machine should be allocated to.
 * > **NOTE:** `capacity_reservation_group_id` cannot be used with `availability_set_id` or `proximity_placement_group_id`
 * @property computerName 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.
 * @property customData The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created.
 * @property dedicatedHostGroupId The ID of a Dedicated Host Group that this Windows Virtual Machine should be run within. Conflicts with `dedicated_host_id`.
 * @property dedicatedHostId The ID of a Dedicated Host where this machine should be run on. Conflicts with `dedicated_host_group_id`.
 * @property diskControllerType Specifies the Disk Controller Type used for this Virtual Machine. Possible values are `SCSI` and `NVMe`.
 * @property edgeZone Specifies the Edge Zone within the Azure Region where this Windows Virtual Machine should exist. Changing this forces a new Windows Virtual Machine to be created.
 * @property enableAutomaticUpdates Specifies if Automatic Updates are Enabled for the Windows Virtual Machine. Changing this forces a new resource to be created. Defaults to `true`.
 * @property encryptionAtHostEnabled Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
 * @property evictionPolicy 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.
 * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
 * @property extensionsTimeBudget 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`.
 * @property galleryApplications One or more `gallery_application` blocks as defined below.
 * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
 * @property hotpatchingEnabled Should the VM be patched without requiring a reboot? Possible values are `true` or `false`. Defaults to `false`. For more information about hot patching please see the [product documentation](https://docs.microsoft.com/azure/automanage/automanage-hotpatch).
 * > **NOTE:** Hotpatching can only be enabled if the `patch_mode` is set to `AutomaticByPlatform`, the `provision_vm_agent` is set to `true`, your `source_image_reference` references a hotpatching enabled image, and the VM's `size` is set to a Azure generation 2 directory within the GitHub Repository.
 * @property identity An `identity` block as defined below.
 * @property licenseType Specifies the type of on-premise license (also known as [Azure Hybrid Use Benefit](https://docs.microsoft.com/windows-server/get-started/azure-hybrid-benefit)) which should be used for this Virtual Machine. Possible values are `None`, `Windows_Client` and `Windows_Server`.
 * @property location The Azure location where the Windows Virtual Machine should exist. Changing this forces a new resource to be created.
 * @property maxBidPrice 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.
 * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
 * @property name The name of the Windows Virtual Machine. Changing this forces a new resource to be created.
 * @property networkInterfaceIds . 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.
 * @property osDisk A `os_disk` block as defined below.
 * @property osImageNotification A `os_image_notification` block as defined below.
 * @property patchAssessmentMode Specifies the mode of VM Guest Patching for the Virtual Machine. Possible values are `AutomaticByPlatform` or `ImageDefault`. Defaults to `ImageDefault`.
 * > **NOTE:** If the `patch_assessment_mode` is set to `AutomaticByPlatform` then the `provision_vm_agent` field must be set to `true`.
 * @property patchMode Specifies the mode of in-guest patching to this Windows Virtual Machine. Possible values are `Manual`, `AutomaticByOS` and `AutomaticByPlatform`. Defaults to `AutomaticByOS`. For more information on patch modes please see the [product documentation](https://docs.microsoft.com/azure/virtual-machines/automatic-vm-guest-patching#patch-orchestration-modes).
 * > **NOTE:** If `patch_mode` is set to `AutomaticByPlatform` then `provision_vm_agent` must also be set to `true`. If the Virtual Machine is using a hotpatching enabled image the `patch_mode` must always be set to `AutomaticByPlatform`.
 * @property plan A `plan` block as defined below. Changing this forces a new resource to be created.
 * @property platformFaultDomain Specifies the Platform Fault Domain in which this Windows 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 Windows Virtual Machine to be created.
 * @property priority 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.
 * @property provisionVmAgent Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to `true`. Changing this forces a new resource to be created.
 * > **NOTE:** If `provision_vm_agent` is set to `false` then `allow_extension_operations` must also be set to `false`.
 * @property proximityPlacementGroupId The ID of the Proximity Placement Group which the Virtual Machine should be assigned to.
 * @property rebootSetting Specifies the reboot setting for platform scheduled patching. Possible values are `Always`, `IfRequired` and `Never`.
 * > **NOTE:** `reboot_setting` can only be set when `patch_mode` is set to `AutomaticByPlatform`.
 * @property resourceGroupName The name of the Resource Group in which the Windows Virtual Machine should be exist. Changing this forces a new resource to be created.
 * @property secrets One or more `secret` blocks as defined below.
 * @property secureBootEnabled Specifies if Secure Boot and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
 * @property size The SKU which should be used for this Virtual Machine, such as `Standard_F2`.
 * @property sourceImageId 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 ID`s, `Shared Image ID`s, `Shared Image Version ID`s, `Community Gallery Image ID`s, `Community Gallery Image Version ID`s, `Shared Gallery Image ID`s and `Shared Gallery Image Version ID`s.
 * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
 * @property sourceImageReference A `source_image_reference` block as defined below. Changing this forces a new resource to be created.
 * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
 * @property tags A mapping of tags which should be assigned to this Virtual Machine.
 * @property terminationNotification A `termination_notification` block as defined below.
 * @property timezone Specifies the Time Zone which should be used by the Virtual Machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
 * @property userData The Base64-Encoded User Data which should be used for this Virtual Machine.
 * @property virtualMachineScaleSetId Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within.
 * > **NOTE:** To update `virtual_machine_scale_set_id` the Preview Feature `Microsoft.Compute/SingleFDAttachDetachVMToVmss` needs to be enabled, see [the documentation](https://review.learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm#enroll-in-the-preview) for more information.
 * > **NOTE:** Orchestrated Virtual Machine Scale Sets can be provisioned using [the `azure.compute.OrchestratedVirtualMachineScaleSet` resource](https://www.terraform.io/docs/providers/azurerm/r/orchestrated_virtual_machine_scale_set.html).
 * > **NOTE:** To attach an existing VM to a Virtual Machine Scale Set, the scale set must have `single_placement_group` set to `false`, see [the documentation](https://learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal-1%2Cportal-2%2Cportal-3#limitations-for-attaching-an-existing-vm-to-a-scale-set) for more information.
 * @property vmAgentPlatformUpdatesEnabled Specifies whether VMAgent Platform Updates is enabled. Defaults to `false`.
 * @property vtpmEnabled Specifies if vTPM (virtual Trusted Platform Module) and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
 * @property winrmListeners One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
 * @property zone * `zones` - (Optional) Specifies the Availability Zone in which this Windows Virtual Machine should be located. Changing this forces a new Windows Virtual Machine to be created.
 */
public data class WindowsVirtualMachineArgs(
    public val additionalCapabilities: Output? =
        null,
    public val additionalUnattendContents: Output>? = null,
    public val adminPassword: Output? = null,
    public val adminUsername: Output? = null,
    public val allowExtensionOperations: Output? = null,
    public val availabilitySetId: Output? = null,
    public val bootDiagnostics: Output? = null,
    public val bypassPlatformSafetyChecksOnUserScheduleEnabled: Output? = null,
    public val capacityReservationGroupId: Output? = null,
    public val computerName: Output? = null,
    public val customData: Output? = null,
    public val dedicatedHostGroupId: Output? = null,
    public val dedicatedHostId: Output? = null,
    public val diskControllerType: Output? = null,
    public val edgeZone: Output? = null,
    public val enableAutomaticUpdates: Output? = null,
    public val encryptionAtHostEnabled: Output? = null,
    public val evictionPolicy: Output? = null,
    public val extensionsTimeBudget: Output? = null,
    public val galleryApplications: Output>? = null,
    public val hotpatchingEnabled: Output? = null,
    public val identity: Output? = null,
    public val licenseType: Output? = null,
    public val location: Output? = null,
    public val maxBidPrice: Output? = null,
    public val name: Output? = null,
    public val networkInterfaceIds: Output>? = null,
    public val osDisk: Output? = null,
    public val osImageNotification: Output? = null,
    public val patchAssessmentMode: Output? = null,
    public val patchMode: Output? = null,
    public val plan: Output? = null,
    public val platformFaultDomain: Output? = null,
    public val priority: Output? = null,
    public val provisionVmAgent: Output? = null,
    public val proximityPlacementGroupId: Output? = null,
    public val rebootSetting: Output? = null,
    public val resourceGroupName: Output? = null,
    public val secrets: Output>? = null,
    public val secureBootEnabled: Output? = null,
    public val size: Output? = null,
    public val sourceImageId: Output? = null,
    public val sourceImageReference: Output? = null,
    public val tags: Output>? = null,
    public val terminationNotification: Output? =
        null,
    public val timezone: Output? = null,
    public val userData: Output? = null,
    public val virtualMachineScaleSetId: Output? = null,
    public val vmAgentPlatformUpdatesEnabled: Output? = null,
    public val vtpmEnabled: Output? = null,
    public val winrmListeners: Output>? = null,
    public val zone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.WindowsVirtualMachineArgs =
        com.pulumi.azure.compute.WindowsVirtualMachineArgs.builder()
            .additionalCapabilities(
                additionalCapabilities?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .additionalUnattendContents(
                additionalUnattendContents?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .adminPassword(adminPassword?.applyValue({ args0 -> args0 }))
            .adminUsername(adminUsername?.applyValue({ args0 -> args0 }))
            .allowExtensionOperations(allowExtensionOperations?.applyValue({ args0 -> args0 }))
            .availabilitySetId(availabilitySetId?.applyValue({ args0 -> args0 }))
            .bootDiagnostics(bootDiagnostics?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .bypassPlatformSafetyChecksOnUserScheduleEnabled(
                bypassPlatformSafetyChecksOnUserScheduleEnabled?.applyValue({ args0 ->
                    args0
                }),
            )
            .capacityReservationGroupId(capacityReservationGroupId?.applyValue({ args0 -> args0 }))
            .computerName(computerName?.applyValue({ args0 -> args0 }))
            .customData(customData?.applyValue({ args0 -> args0 }))
            .dedicatedHostGroupId(dedicatedHostGroupId?.applyValue({ args0 -> args0 }))
            .dedicatedHostId(dedicatedHostId?.applyValue({ args0 -> args0 }))
            .diskControllerType(diskControllerType?.applyValue({ args0 -> args0 }))
            .edgeZone(edgeZone?.applyValue({ args0 -> args0 }))
            .enableAutomaticUpdates(enableAutomaticUpdates?.applyValue({ args0 -> args0 }))
            .encryptionAtHostEnabled(encryptionAtHostEnabled?.applyValue({ args0 -> args0 }))
            .evictionPolicy(evictionPolicy?.applyValue({ args0 -> args0 }))
            .extensionsTimeBudget(extensionsTimeBudget?.applyValue({ args0 -> args0 }))
            .galleryApplications(
                galleryApplications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .hotpatchingEnabled(hotpatchingEnabled?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .licenseType(licenseType?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .maxBidPrice(maxBidPrice?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkInterfaceIds(networkInterfaceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .osDisk(osDisk?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .osImageNotification(
                osImageNotification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .patchAssessmentMode(patchAssessmentMode?.applyValue({ args0 -> args0 }))
            .patchMode(patchMode?.applyValue({ args0 -> args0 }))
            .plan(plan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .platformFaultDomain(platformFaultDomain?.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .provisionVmAgent(provisionVmAgent?.applyValue({ args0 -> args0 }))
            .proximityPlacementGroupId(proximityPlacementGroupId?.applyValue({ args0 -> args0 }))
            .rebootSetting(rebootSetting?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .secrets(
                secrets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .secureBootEnabled(secureBootEnabled?.applyValue({ args0 -> args0 }))
            .size(size?.applyValue({ args0 -> args0 }))
            .sourceImageId(sourceImageId?.applyValue({ args0 -> args0 }))
            .sourceImageReference(
                sourceImageReference?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .terminationNotification(
                terminationNotification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .timezone(timezone?.applyValue({ args0 -> args0 }))
            .userData(userData?.applyValue({ args0 -> args0 }))
            .virtualMachineScaleSetId(virtualMachineScaleSetId?.applyValue({ args0 -> args0 }))
            .vmAgentPlatformUpdatesEnabled(vmAgentPlatformUpdatesEnabled?.applyValue({ args0 -> args0 }))
            .vtpmEnabled(vtpmEnabled?.applyValue({ args0 -> args0 }))
            .winrmListeners(
                winrmListeners?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .zone(zone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsVirtualMachineArgs].
 */
@PulumiTagMarker
public class WindowsVirtualMachineArgsBuilder internal constructor() {
    private var additionalCapabilities: Output? =
        null

    private var additionalUnattendContents:
        Output>? = null

    private var adminPassword: Output? = null

    private var adminUsername: Output? = null

    private var allowExtensionOperations: Output? = null

    private var availabilitySetId: Output? = null

    private var bootDiagnostics: Output? = null

    private var bypassPlatformSafetyChecksOnUserScheduleEnabled: Output? = null

    private var capacityReservationGroupId: Output? = null

    private var computerName: Output? = null

    private var customData: Output? = null

    private var dedicatedHostGroupId: Output? = null

    private var dedicatedHostId: Output? = null

    private var diskControllerType: Output? = null

    private var edgeZone: Output? = null

    private var enableAutomaticUpdates: Output? = null

    private var encryptionAtHostEnabled: Output? = null

    private var evictionPolicy: Output? = null

    private var extensionsTimeBudget: Output? = null

    private var galleryApplications: Output>? = null

    private var hotpatchingEnabled: Output? = null

    private var identity: Output? = null

    private var licenseType: Output? = null

    private var location: Output? = null

    private var maxBidPrice: Output? = null

    private var name: Output? = null

    private var networkInterfaceIds: Output>? = null

    private var osDisk: Output? = null

    private var osImageNotification: Output? = null

    private var patchAssessmentMode: Output? = null

    private var patchMode: Output? = null

    private var plan: Output? = null

    private var platformFaultDomain: Output? = null

    private var priority: Output? = null

    private var provisionVmAgent: Output? = null

    private var proximityPlacementGroupId: Output? = null

    private var rebootSetting: Output? = null

    private var resourceGroupName: Output? = null

    private var secrets: Output>? = null

    private var secureBootEnabled: Output? = null

    private var size: Output? = null

    private var sourceImageId: Output? = null

    private var sourceImageReference: Output? = null

    private var tags: Output>? = null

    private var terminationNotification: Output? =
        null

    private var timezone: Output? = null

    private var userData: Output? = null

    private var virtualMachineScaleSetId: Output? = null

    private var vmAgentPlatformUpdatesEnabled: Output? = null

    private var vtpmEnabled: Output? = null

    private var winrmListeners: Output>? = null

    private var zone: Output? = null

    /**
     * @param value A `additional_capabilities` block as defined below.
     */
    @JvmName("pdscwyifarbrxljk")
    public suspend fun additionalCapabilities(`value`: Output) {
        this.additionalCapabilities = value
    }

    /**
     * @param value One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("fjybfeafkbdhxima")
    public suspend fun additionalUnattendContents(`value`: Output>) {
        this.additionalUnattendContents = value
    }

    @JvmName("crjkixavhgasacrv")
    public suspend fun additionalUnattendContents(vararg values: Output) {
        this.additionalUnattendContents = Output.all(values.asList())
    }

    /**
     * @param values One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("gqijoobggdgageun")
    public suspend fun additionalUnattendContents(values: List>) {
        this.additionalUnattendContents = Output.all(values)
    }

    /**
     * @param value The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("likphggglrawnbvl")
    public suspend fun adminPassword(`value`: Output) {
        this.adminPassword = value
    }

    /**
     * @param value The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("kwnbricfgyhrulrc")
    public suspend fun adminUsername(`value`: Output) {
        this.adminUsername = value
    }

    /**
     * @param value Should Extension Operations be allowed on this Virtual Machine? Defaults to `true`.
     */
    @JvmName("evtqttkhxdlrmwif")
    public suspend fun allowExtensionOperations(`value`: Output) {
        this.allowExtensionOperations = value
    }

    /**
     * @param value Specifies the ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.
     */
    @JvmName("dnkbyauwxlmgqlbn")
    public suspend fun availabilitySetId(`value`: Output) {
        this.availabilitySetId = value
    }

    /**
     * @param value A `boot_diagnostics` block as defined below.
     */
    @JvmName("lklakuyyhmkstbmq")
    public suspend fun bootDiagnostics(`value`: Output) {
        this.bootDiagnostics = value
    }

    /**
     * @param value Specifies whether to skip platform scheduled patching when a user schedule is associated with the VM. Defaults to `false`.
     * > **NOTE:** `bypass_platform_safety_checks_on_user_schedule_enabled` can only be set to `true` when `patch_mode` is set to `AutomaticByPlatform`.
     */
    @JvmName("fpoxpbmjsahxdnip")
    public suspend fun bypassPlatformSafetyChecksOnUserScheduleEnabled(`value`: Output) {
        this.bypassPlatformSafetyChecksOnUserScheduleEnabled = value
    }

    /**
     * @param value Specifies the ID of the Capacity Reservation Group which the Virtual Machine should be allocated to.
     * > **NOTE:** `capacity_reservation_group_id` cannot be used with `availability_set_id` or `proximity_placement_group_id`
     */
    @JvmName("wgfwsjmbqwgkffyc")
    public suspend fun capacityReservationGroupId(`value`: Output) {
        this.capacityReservationGroupId = value
    }

    /**
     * @param value 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.
     */
    @JvmName("ssvkykwhactraimc")
    public suspend fun computerName(`value`: Output) {
        this.computerName = value
    }

    /**
     * @param value The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("kbhuivoepaydpcfn")
    public suspend fun customData(`value`: Output) {
        this.customData = value
    }

    /**
     * @param value The ID of a Dedicated Host Group that this Windows Virtual Machine should be run within. Conflicts with `dedicated_host_id`.
     */
    @JvmName("lvygfbvwluqyjsuk")
    public suspend fun dedicatedHostGroupId(`value`: Output) {
        this.dedicatedHostGroupId = value
    }

    /**
     * @param value The ID of a Dedicated Host where this machine should be run on. Conflicts with `dedicated_host_group_id`.
     */
    @JvmName("kqubdyvijtwxektn")
    public suspend fun dedicatedHostId(`value`: Output) {
        this.dedicatedHostId = value
    }

    /**
     * @param value Specifies the Disk Controller Type used for this Virtual Machine. Possible values are `SCSI` and `NVMe`.
     */
    @JvmName("pvapvhwrrncdoxda")
    public suspend fun diskControllerType(`value`: Output) {
        this.diskControllerType = value
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Windows Virtual Machine should exist. Changing this forces a new Windows Virtual Machine to be created.
     */
    @JvmName("uathdayaesenweiv")
    public suspend fun edgeZone(`value`: Output) {
        this.edgeZone = value
    }

    /**
     * @param value Specifies if Automatic Updates are Enabled for the Windows Virtual Machine. Changing this forces a new resource to be created. Defaults to `true`.
     */
    @JvmName("xaalxfnupgbcjlyx")
    public suspend fun enableAutomaticUpdates(`value`: Output) {
        this.enableAutomaticUpdates = value
    }

    /**
     * @param value Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
     */
    @JvmName("vrtgmpbinqesuwbc")
    public suspend fun encryptionAtHostEnabled(`value`: Output) {
        this.encryptionAtHostEnabled = value
    }

    /**
     * @param value 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.
     * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
     */
    @JvmName("sewcgxswxofnlapy")
    public suspend fun evictionPolicy(`value`: Output) {
        this.evictionPolicy = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("ckaonfnpmdqkaoqx")
    public suspend fun extensionsTimeBudget(`value`: Output) {
        this.extensionsTimeBudget = value
    }

    /**
     * @param value One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("vnjpaciewflwimfx")
    public suspend fun galleryApplications(`value`: Output>) {
        this.galleryApplications = value
    }

    @JvmName("mxrxknqbbbxbkiyw")
    public suspend fun galleryApplications(vararg values: Output) {
        this.galleryApplications = Output.all(values.asList())
    }

    /**
     * @param values One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("wdaaumnahygmwajc")
    public suspend fun galleryApplications(values: List>) {
        this.galleryApplications = Output.all(values)
    }

    /**
     * @param value Should the VM be patched without requiring a reboot? Possible values are `true` or `false`. Defaults to `false`. For more information about hot patching please see the [product documentation](https://docs.microsoft.com/azure/automanage/automanage-hotpatch).
     * > **NOTE:** Hotpatching can only be enabled if the `patch_mode` is set to `AutomaticByPlatform`, the `provision_vm_agent` is set to `true`, your `source_image_reference` references a hotpatching enabled image, and the VM's `size` is set to a Azure generation 2 directory within the GitHub Repository.
     */
    @JvmName("yxxbumwbqifayoaa")
    public suspend fun hotpatchingEnabled(`value`: Output) {
        this.hotpatchingEnabled = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("acnjxmabdwiosevc")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Specifies the type of on-premise license (also known as [Azure Hybrid Use Benefit](https://docs.microsoft.com/windows-server/get-started/azure-hybrid-benefit)) which should be used for this Virtual Machine. Possible values are `None`, `Windows_Client` and `Windows_Server`.
     */
    @JvmName("axhppxtjlfdnlsdx")
    public suspend fun licenseType(`value`: Output) {
        this.licenseType = value
    }

    /**
     * @param value The Azure location where the Windows Virtual Machine should exist. Changing this forces a new resource to be created.
     */
    @JvmName("opxxufsayjpqntjw")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value 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.
     * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
     */
    @JvmName("nbpvdblxxlahlsdp")
    public suspend fun maxBidPrice(`value`: Output) {
        this.maxBidPrice = value
    }

    /**
     * @param value The name of the Windows Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("mhvsyufpbnjenqgp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value . 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.
     */
    @JvmName("kygvthuuynfhtedi")
    public suspend fun networkInterfaceIds(`value`: Output>) {
        this.networkInterfaceIds = value
    }

    @JvmName("sftcnowuhbimednl")
    public suspend fun networkInterfaceIds(vararg values: Output) {
        this.networkInterfaceIds = Output.all(values.asList())
    }

    /**
     * @param values . 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.
     */
    @JvmName("ucthwcdnrkpqstqf")
    public suspend fun networkInterfaceIds(values: List>) {
        this.networkInterfaceIds = Output.all(values)
    }

    /**
     * @param value A `os_disk` block as defined below.
     */
    @JvmName("jwnajoxrwrassgrp")
    public suspend fun osDisk(`value`: Output) {
        this.osDisk = value
    }

    /**
     * @param value A `os_image_notification` block as defined below.
     */
    @JvmName("ssotudaokavjaurs")
    public suspend fun osImageNotification(`value`: Output) {
        this.osImageNotification = value
    }

    /**
     * @param value Specifies the mode of VM Guest Patching for the Virtual Machine. Possible values are `AutomaticByPlatform` or `ImageDefault`. Defaults to `ImageDefault`.
     * > **NOTE:** If the `patch_assessment_mode` is set to `AutomaticByPlatform` then the `provision_vm_agent` field must be set to `true`.
     */
    @JvmName("coxafsxnaqgogonj")
    public suspend fun patchAssessmentMode(`value`: Output) {
        this.patchAssessmentMode = value
    }

    /**
     * @param value Specifies the mode of in-guest patching to this Windows Virtual Machine. Possible values are `Manual`, `AutomaticByOS` and `AutomaticByPlatform`. Defaults to `AutomaticByOS`. For more information on patch modes please see the [product documentation](https://docs.microsoft.com/azure/virtual-machines/automatic-vm-guest-patching#patch-orchestration-modes).
     * > **NOTE:** If `patch_mode` is set to `AutomaticByPlatform` then `provision_vm_agent` must also be set to `true`. If the Virtual Machine is using a hotpatching enabled image the `patch_mode` must always be set to `AutomaticByPlatform`.
     */
    @JvmName("ctxgpqhjsjxdvdev")
    public suspend fun patchMode(`value`: Output) {
        this.patchMode = value
    }

    /**
     * @param value A `plan` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("dgefwqigrsyhlqqg")
    public suspend fun plan(`value`: Output) {
        this.plan = value
    }

    /**
     * @param value Specifies the Platform Fault Domain in which this Windows 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 Windows Virtual Machine to be created.
     */
    @JvmName("xwnywhxjpriuikxg")
    public suspend fun platformFaultDomain(`value`: Output) {
        this.platformFaultDomain = value
    }

    /**
     * @param value 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.
     */
    @JvmName("xxmqqpvicoxnnskb")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to `true`. Changing this forces a new resource to be created.
     * > **NOTE:** If `provision_vm_agent` is set to `false` then `allow_extension_operations` must also be set to `false`.
     */
    @JvmName("cdfspgdkdnueoaqc")
    public suspend fun provisionVmAgent(`value`: Output) {
        this.provisionVmAgent = value
    }

    /**
     * @param value The ID of the Proximity Placement Group which the Virtual Machine should be assigned to.
     */
    @JvmName("ldshabbrrponiyok")
    public suspend fun proximityPlacementGroupId(`value`: Output) {
        this.proximityPlacementGroupId = value
    }

    /**
     * @param value Specifies the reboot setting for platform scheduled patching. Possible values are `Always`, `IfRequired` and `Never`.
     * > **NOTE:** `reboot_setting` can only be set when `patch_mode` is set to `AutomaticByPlatform`.
     */
    @JvmName("nuodwdmoarowbtdd")
    public suspend fun rebootSetting(`value`: Output) {
        this.rebootSetting = value
    }

    /**
     * @param value The name of the Resource Group in which the Windows Virtual Machine should be exist. Changing this forces a new resource to be created.
     */
    @JvmName("wuwuouqyarfmeukw")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value One or more `secret` blocks as defined below.
     */
    @JvmName("uvvopnvfgebbtjqa")
    public suspend fun secrets(`value`: Output>) {
        this.secrets = value
    }

    @JvmName("ahoqdrxejlgpddis")
    public suspend fun secrets(vararg values: Output) {
        this.secrets = Output.all(values.asList())
    }

    /**
     * @param values One or more `secret` blocks as defined below.
     */
    @JvmName("uvgmpgbtonpyuutw")
    public suspend fun secrets(values: List>) {
        this.secrets = Output.all(values)
    }

    /**
     * @param value Specifies if Secure Boot and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("ojaweoolfsdchqjk")
    public suspend fun secureBootEnabled(`value`: Output) {
        this.secureBootEnabled = value
    }

    /**
     * @param value The SKU which should be used for this Virtual Machine, such as `Standard_F2`.
     */
    @JvmName("ajawoiogoeuhqbei")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value 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 ID`s, `Shared Image ID`s, `Shared Image Version ID`s, `Community Gallery Image ID`s, `Community Gallery Image Version ID`s, `Shared Gallery Image ID`s and `Shared Gallery Image Version ID`s.
     * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
     */
    @JvmName("cpajaubedpkwxoqf")
    public suspend fun sourceImageId(`value`: Output) {
        this.sourceImageId = value
    }

    /**
     * @param value A `source_image_reference` block as defined below. Changing this forces a new resource to be created.
     * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
     */
    @JvmName("hnichavrsrojlohg")
    public suspend fun sourceImageReference(`value`: Output) {
        this.sourceImageReference = value
    }

    /**
     * @param value A mapping of tags which should be assigned to this Virtual Machine.
     */
    @JvmName("ghrrvyxndbrbbpgh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A `termination_notification` block as defined below.
     */
    @JvmName("lrojjremvkqwaabl")
    public suspend fun terminationNotification(`value`: Output) {
        this.terminationNotification = value
    }

    /**
     * @param value Specifies the Time Zone which should be used by the Virtual Machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
     */
    @JvmName("ayyjoogmjnldrrta")
    public suspend fun timezone(`value`: Output) {
        this.timezone = value
    }

    /**
     * @param value The Base64-Encoded User Data which should be used for this Virtual Machine.
     */
    @JvmName("wyjemjhsqpseovry")
    public suspend fun userData(`value`: Output) {
        this.userData = value
    }

    /**
     * @param value Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within.
     * > **NOTE:** To update `virtual_machine_scale_set_id` the Preview Feature `Microsoft.Compute/SingleFDAttachDetachVMToVmss` needs to be enabled, see [the documentation](https://review.learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm#enroll-in-the-preview) for more information.
     * > **NOTE:** Orchestrated Virtual Machine Scale Sets can be provisioned using [the `azure.compute.OrchestratedVirtualMachineScaleSet` resource](https://www.terraform.io/docs/providers/azurerm/r/orchestrated_virtual_machine_scale_set.html).
     * > **NOTE:** To attach an existing VM to a Virtual Machine Scale Set, the scale set must have `single_placement_group` set to `false`, see [the documentation](https://learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal-1%2Cportal-2%2Cportal-3#limitations-for-attaching-an-existing-vm-to-a-scale-set) for more information.
     */
    @JvmName("jtkxdfdlnvvfgsxr")
    public suspend fun virtualMachineScaleSetId(`value`: Output) {
        this.virtualMachineScaleSetId = value
    }

    /**
     * @param value Specifies whether VMAgent Platform Updates is enabled. Defaults to `false`.
     */
    @JvmName("dgnacooltyejfeqb")
    public suspend fun vmAgentPlatformUpdatesEnabled(`value`: Output) {
        this.vmAgentPlatformUpdatesEnabled = value
    }

    /**
     * @param value Specifies if vTPM (virtual Trusted Platform Module) and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("tdkvkxslyavarlri")
    public suspend fun vtpmEnabled(`value`: Output) {
        this.vtpmEnabled = value
    }

    /**
     * @param value One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("klxjogidrnxhxpni")
    public suspend fun winrmListeners(`value`: Output>) {
        this.winrmListeners = value
    }

    @JvmName("jbeiwrfrlqgqiwfe")
    public suspend fun winrmListeners(vararg values: Output) {
        this.winrmListeners = Output.all(values.asList())
    }

    /**
     * @param values One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("foqkdtjoejxwlfyb")
    public suspend fun winrmListeners(values: List>) {
        this.winrmListeners = Output.all(values)
    }

    /**
     * @param value * `zones` - (Optional) Specifies the Availability Zone in which this Windows Virtual Machine should be located. Changing this forces a new Windows Virtual Machine to be created.
     */
    @JvmName("ahytruaroymlbnbs")
    public suspend fun zone(`value`: Output) {
        this.zone = value
    }

    /**
     * @param value A `additional_capabilities` block as defined below.
     */
    @JvmName("frtpsnmqhuljthqy")
    public suspend fun additionalCapabilities(`value`: WindowsVirtualMachineAdditionalCapabilitiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalCapabilities = mapped
    }

    /**
     * @param argument A `additional_capabilities` block as defined below.
     */
    @JvmName("cwnaonljsvsmcjoy")
    public suspend fun additionalCapabilities(argument: suspend WindowsVirtualMachineAdditionalCapabilitiesArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineAdditionalCapabilitiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.additionalCapabilities = mapped
    }

    /**
     * @param value One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("vbadhajjcetptwst")
    public suspend fun additionalUnattendContents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalUnattendContents = mapped
    }

    /**
     * @param argument One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("wcdwuovkaspbjrly")
    public suspend fun additionalUnattendContents(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineAdditionalUnattendContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalUnattendContents = mapped
    }

    /**
     * @param argument One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("kbyatwwbhgshuwnq")
    public suspend fun additionalUnattendContents(vararg argument: suspend WindowsVirtualMachineAdditionalUnattendContentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineAdditionalUnattendContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalUnattendContents = mapped
    }

    /**
     * @param argument One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("icbtorvhqxxbvsbr")
    public suspend fun additionalUnattendContents(argument: suspend WindowsVirtualMachineAdditionalUnattendContentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WindowsVirtualMachineAdditionalUnattendContentArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.additionalUnattendContents = mapped
    }

    /**
     * @param values One or more `additional_unattend_content` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("vpjukajhrrdehoxv")
    public suspend fun additionalUnattendContents(vararg values: WindowsVirtualMachineAdditionalUnattendContentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalUnattendContents = mapped
    }

    /**
     * @param value The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("gawnxjgovkwllcie")
    public suspend fun adminPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminPassword = mapped
    }

    /**
     * @param value The username of the local administrator used for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("wdkiprwugbkcbcpr")
    public suspend fun adminUsername(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminUsername = mapped
    }

    /**
     * @param value Should Extension Operations be allowed on this Virtual Machine? Defaults to `true`.
     */
    @JvmName("tnmfemphmnaqraae")
    public suspend fun allowExtensionOperations(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowExtensionOperations = mapped
    }

    /**
     * @param value Specifies the ID of the Availability Set in which the Virtual Machine should exist. Changing this forces a new resource to be created.
     */
    @JvmName("qcmqrhhtckbrlnmk")
    public suspend fun availabilitySetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilitySetId = mapped
    }

    /**
     * @param value A `boot_diagnostics` block as defined below.
     */
    @JvmName("jkcgntyqgragflit")
    public suspend fun bootDiagnostics(`value`: WindowsVirtualMachineBootDiagnosticsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bootDiagnostics = mapped
    }

    /**
     * @param argument A `boot_diagnostics` block as defined below.
     */
    @JvmName("owrrsvstludwaarm")
    public suspend fun bootDiagnostics(argument: suspend WindowsVirtualMachineBootDiagnosticsArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineBootDiagnosticsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.bootDiagnostics = mapped
    }

    /**
     * @param value Specifies whether to skip platform scheduled patching when a user schedule is associated with the VM. Defaults to `false`.
     * > **NOTE:** `bypass_platform_safety_checks_on_user_schedule_enabled` can only be set to `true` when `patch_mode` is set to `AutomaticByPlatform`.
     */
    @JvmName("atstpultuvgstcej")
    public suspend fun bypassPlatformSafetyChecksOnUserScheduleEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bypassPlatformSafetyChecksOnUserScheduleEnabled = mapped
    }

    /**
     * @param value Specifies the ID of the Capacity Reservation Group which the Virtual Machine should be allocated to.
     * > **NOTE:** `capacity_reservation_group_id` cannot be used with `availability_set_id` or `proximity_placement_group_id`
     */
    @JvmName("cidnwtylhwftstqw")
    public suspend fun capacityReservationGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityReservationGroupId = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("mddymrmofglnytip")
    public suspend fun computerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.computerName = mapped
    }

    /**
     * @param value The Base64-Encoded Custom Data which should be used for this Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("rxlxrkjtrplubgre")
    public suspend fun customData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customData = mapped
    }

    /**
     * @param value The ID of a Dedicated Host Group that this Windows Virtual Machine should be run within. Conflicts with `dedicated_host_id`.
     */
    @JvmName("gvpwweylnylimfoj")
    public suspend fun dedicatedHostGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dedicatedHostGroupId = mapped
    }

    /**
     * @param value The ID of a Dedicated Host where this machine should be run on. Conflicts with `dedicated_host_group_id`.
     */
    @JvmName("klnuxodksamdifmq")
    public suspend fun dedicatedHostId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dedicatedHostId = mapped
    }

    /**
     * @param value Specifies the Disk Controller Type used for this Virtual Machine. Possible values are `SCSI` and `NVMe`.
     */
    @JvmName("allgedrjtohgbwqf")
    public suspend fun diskControllerType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskControllerType = mapped
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Windows Virtual Machine should exist. Changing this forces a new Windows Virtual Machine to be created.
     */
    @JvmName("pixovaftewekimmt")
    public suspend fun edgeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edgeZone = mapped
    }

    /**
     * @param value Specifies if Automatic Updates are Enabled for the Windows Virtual Machine. Changing this forces a new resource to be created. Defaults to `true`.
     */
    @JvmName("cbklxddddxympwgt")
    public suspend fun enableAutomaticUpdates(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAutomaticUpdates = mapped
    }

    /**
     * @param value Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
     */
    @JvmName("sqbfagbordnndwxu")
    public suspend fun encryptionAtHostEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionAtHostEnabled = mapped
    }

    /**
     * @param value 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.
     * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
     */
    @JvmName("vragjmnwexyqujdw")
    public suspend fun evictionPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.evictionPolicy = mapped
    }

    /**
     * @param value 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`.
     */
    @JvmName("ektjmverfwjuuusd")
    public suspend fun extensionsTimeBudget(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extensionsTimeBudget = mapped
    }

    /**
     * @param value One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("ncwkxvmgablbspva")
    public suspend fun galleryApplications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.galleryApplications = mapped
    }

    /**
     * @param argument One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("qgtumibiubowqbno")
    public suspend fun galleryApplications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineGalleryApplicationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param argument One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("kcbmchpljbiabgup")
    public suspend fun galleryApplications(vararg argument: suspend WindowsVirtualMachineGalleryApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineGalleryApplicationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param argument One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("xlmjpsfihqmigxok")
    public suspend fun galleryApplications(argument: suspend WindowsVirtualMachineGalleryApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WindowsVirtualMachineGalleryApplicationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.galleryApplications = mapped
    }

    /**
     * @param values One or more `gallery_application` blocks as defined below.
     * > **Note** Gallery Application Assignments can be defined either directly on `azure.compute.WindowsVirtualMachine` resource, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. If `azure.compute.GalleryApplicationAssignment` is used, it's recommended to use `ignore_changes` for the `gallery_application` block on the corresponding `azure.compute.WindowsVirtualMachine` resource, to avoid a persistent diff when using this resource.
     */
    @JvmName("ehgdwpdbjsgkdywl")
    public suspend fun galleryApplications(vararg values: WindowsVirtualMachineGalleryApplicationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.galleryApplications = mapped
    }

    /**
     * @param value Should the VM be patched without requiring a reboot? Possible values are `true` or `false`. Defaults to `false`. For more information about hot patching please see the [product documentation](https://docs.microsoft.com/azure/automanage/automanage-hotpatch).
     * > **NOTE:** Hotpatching can only be enabled if the `patch_mode` is set to `AutomaticByPlatform`, the `provision_vm_agent` is set to `true`, your `source_image_reference` references a hotpatching enabled image, and the VM's `size` is set to a Azure generation 2 directory within the GitHub Repository.
     */
    @JvmName("xbpwwvcjddmefpxq")
    public suspend fun hotpatchingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hotpatchingEnabled = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("wlkosgbbpicvdalo")
    public suspend fun identity(`value`: WindowsVirtualMachineIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("khqvjsdcvvemwexs")
    public suspend fun identity(argument: suspend WindowsVirtualMachineIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Specifies the type of on-premise license (also known as [Azure Hybrid Use Benefit](https://docs.microsoft.com/windows-server/get-started/azure-hybrid-benefit)) which should be used for this Virtual Machine. Possible values are `None`, `Windows_Client` and `Windows_Server`.
     */
    @JvmName("byvpjivqkvxafuwa")
    public suspend fun licenseType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenseType = mapped
    }

    /**
     * @param value The Azure location where the Windows Virtual Machine should exist. Changing this forces a new resource to be created.
     */
    @JvmName("gvpivgjapkkiiyms")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value 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.
     * > **NOTE:** This can only be configured when `priority` is set to `Spot`.
     */
    @JvmName("cgphjgaxeaaoxoly")
    public suspend fun maxBidPrice(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBidPrice = mapped
    }

    /**
     * @param value The name of the Windows Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("wknkvvuxqpdqsrpn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value . 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.
     */
    @JvmName("hhlwwabvbhiadimx")
    public suspend fun networkInterfaceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param values . 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.
     */
    @JvmName("svcdkwhoenmnyuwe")
    public suspend fun networkInterfaceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param value A `os_disk` block as defined below.
     */
    @JvmName("mhshlbuxcxiqfcym")
    public suspend fun osDisk(`value`: WindowsVirtualMachineOsDiskArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osDisk = mapped
    }

    /**
     * @param argument A `os_disk` block as defined below.
     */
    @JvmName("umrrtjnelmadulqd")
    public suspend fun osDisk(argument: suspend WindowsVirtualMachineOsDiskArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineOsDiskArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.osDisk = mapped
    }

    /**
     * @param value A `os_image_notification` block as defined below.
     */
    @JvmName("llceanxwklameofw")
    public suspend fun osImageNotification(`value`: WindowsVirtualMachineOsImageNotificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osImageNotification = mapped
    }

    /**
     * @param argument A `os_image_notification` block as defined below.
     */
    @JvmName("ijfdnqbrprmnqred")
    public suspend fun osImageNotification(argument: suspend WindowsVirtualMachineOsImageNotificationArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineOsImageNotificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.osImageNotification = mapped
    }

    /**
     * @param value Specifies the mode of VM Guest Patching for the Virtual Machine. Possible values are `AutomaticByPlatform` or `ImageDefault`. Defaults to `ImageDefault`.
     * > **NOTE:** If the `patch_assessment_mode` is set to `AutomaticByPlatform` then the `provision_vm_agent` field must be set to `true`.
     */
    @JvmName("pklkolpvoaqkclth")
    public suspend fun patchAssessmentMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.patchAssessmentMode = mapped
    }

    /**
     * @param value Specifies the mode of in-guest patching to this Windows Virtual Machine. Possible values are `Manual`, `AutomaticByOS` and `AutomaticByPlatform`. Defaults to `AutomaticByOS`. For more information on patch modes please see the [product documentation](https://docs.microsoft.com/azure/virtual-machines/automatic-vm-guest-patching#patch-orchestration-modes).
     * > **NOTE:** If `patch_mode` is set to `AutomaticByPlatform` then `provision_vm_agent` must also be set to `true`. If the Virtual Machine is using a hotpatching enabled image the `patch_mode` must always be set to `AutomaticByPlatform`.
     */
    @JvmName("jswetwssmrvlsurl")
    public suspend fun patchMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.patchMode = mapped
    }

    /**
     * @param value A `plan` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("agqmnlphhmlaswfk")
    public suspend fun plan(`value`: WindowsVirtualMachinePlanArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.plan = mapped
    }

    /**
     * @param argument A `plan` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("puwybstfgckxjoxi")
    public suspend fun plan(argument: suspend WindowsVirtualMachinePlanArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachinePlanArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.plan = mapped
    }

    /**
     * @param value Specifies the Platform Fault Domain in which this Windows 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 Windows Virtual Machine to be created.
     */
    @JvmName("ivukvukwmghufcay")
    public suspend fun platformFaultDomain(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platformFaultDomain = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("ecivofehrkijgpsm")
    public suspend fun priority(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value Should the Azure VM Agent be provisioned on this Virtual Machine? Defaults to `true`. Changing this forces a new resource to be created.
     * > **NOTE:** If `provision_vm_agent` is set to `false` then `allow_extension_operations` must also be set to `false`.
     */
    @JvmName("upoefortuncyrwih")
    public suspend fun provisionVmAgent(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionVmAgent = mapped
    }

    /**
     * @param value The ID of the Proximity Placement Group which the Virtual Machine should be assigned to.
     */
    @JvmName("qftetmvsuxogegig")
    public suspend fun proximityPlacementGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.proximityPlacementGroupId = mapped
    }

    /**
     * @param value Specifies the reboot setting for platform scheduled patching. Possible values are `Always`, `IfRequired` and `Never`.
     * > **NOTE:** `reboot_setting` can only be set when `patch_mode` is set to `AutomaticByPlatform`.
     */
    @JvmName("adeppdxxqygbakds")
    public suspend fun rebootSetting(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rebootSetting = mapped
    }

    /**
     * @param value The name of the Resource Group in which the Windows Virtual Machine should be exist. Changing this forces a new resource to be created.
     */
    @JvmName("qojfujfmqtkgvvcc")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value One or more `secret` blocks as defined below.
     */
    @JvmName("prnkvitqpyakqvpm")
    public suspend fun secrets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param argument One or more `secret` blocks as defined below.
     */
    @JvmName("rcnmnbsoemfsnnvw")
    public suspend fun secrets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument One or more `secret` blocks as defined below.
     */
    @JvmName("vmapdwgqjiynttua")
    public suspend fun secrets(vararg argument: suspend WindowsVirtualMachineSecretArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument One or more `secret` blocks as defined below.
     */
    @JvmName("fhprghlgbwqpudva")
    public suspend fun secrets(argument: suspend WindowsVirtualMachineSecretArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WindowsVirtualMachineSecretArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param values One or more `secret` blocks as defined below.
     */
    @JvmName("ybodprcwnvpemswm")
    public suspend fun secrets(vararg values: WindowsVirtualMachineSecretArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param value Specifies if Secure Boot and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("yrpatpwfkigbtfhm")
    public suspend fun secureBootEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secureBootEnabled = mapped
    }

    /**
     * @param value The SKU which should be used for this Virtual Machine, such as `Standard_F2`.
     */
    @JvmName("igufvasuhsmlidyy")
    public suspend fun size(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

    /**
     * @param value 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 ID`s, `Shared Image ID`s, `Shared Image Version ID`s, `Community Gallery Image ID`s, `Community Gallery Image Version ID`s, `Shared Gallery Image ID`s and `Shared Gallery Image Version ID`s.
     * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
     */
    @JvmName("yteovosxgbpkuwmy")
    public suspend fun sourceImageId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceImageId = mapped
    }

    /**
     * @param value A `source_image_reference` block as defined below. Changing this forces a new resource to be created.
     * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
     */
    @JvmName("dkvpbbjwdwklssdb")
    public suspend fun sourceImageReference(`value`: WindowsVirtualMachineSourceImageReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceImageReference = mapped
    }

    /**
     * @param argument A `source_image_reference` block as defined below. Changing this forces a new resource to be created.
     * > **NOTE:** One of either `source_image_id` or `source_image_reference` must be set.
     */
    @JvmName("glgiexjtqveqtrkc")
    public suspend fun sourceImageReference(argument: suspend WindowsVirtualMachineSourceImageReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineSourceImageReferenceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sourceImageReference = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to this Virtual Machine.
     */
    @JvmName("jfawxylqhctsjklg")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to this Virtual Machine.
     */
    @JvmName("bpfeaoufemhtptqi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A `termination_notification` block as defined below.
     */
    @JvmName("qdkcefpahvlhplfc")
    public suspend fun terminationNotification(`value`: WindowsVirtualMachineTerminationNotificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.terminationNotification = mapped
    }

    /**
     * @param argument A `termination_notification` block as defined below.
     */
    @JvmName("xhhigwnbpubwxcha")
    public suspend fun terminationNotification(argument: suspend WindowsVirtualMachineTerminationNotificationArgsBuilder.() -> Unit) {
        val toBeMapped = WindowsVirtualMachineTerminationNotificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.terminationNotification = mapped
    }

    /**
     * @param value Specifies the Time Zone which should be used by the Virtual Machine, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). Changing this forces a new resource to be created.
     */
    @JvmName("tfqpowyespivobwc")
    public suspend fun timezone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timezone = mapped
    }

    /**
     * @param value The Base64-Encoded User Data which should be used for this Virtual Machine.
     */
    @JvmName("lrjfajruqbafufwl")
    public suspend fun userData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userData = mapped
    }

    /**
     * @param value Specifies the Orchestrated Virtual Machine Scale Set that this Virtual Machine should be created within.
     * > **NOTE:** To update `virtual_machine_scale_set_id` the Preview Feature `Microsoft.Compute/SingleFDAttachDetachVMToVmss` needs to be enabled, see [the documentation](https://review.learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm#enroll-in-the-preview) for more information.
     * > **NOTE:** Orchestrated Virtual Machine Scale Sets can be provisioned using [the `azure.compute.OrchestratedVirtualMachineScaleSet` resource](https://www.terraform.io/docs/providers/azurerm/r/orchestrated_virtual_machine_scale_set.html).
     * > **NOTE:** To attach an existing VM to a Virtual Machine Scale Set, the scale set must have `single_placement_group` set to `false`, see [the documentation](https://learn.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal-1%2Cportal-2%2Cportal-3#limitations-for-attaching-an-existing-vm-to-a-scale-set) for more information.
     */
    @JvmName("ecofjcgrwftvmucj")
    public suspend fun virtualMachineScaleSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualMachineScaleSetId = mapped
    }

    /**
     * @param value Specifies whether VMAgent Platform Updates is enabled. Defaults to `false`.
     */
    @JvmName("aologjijqagfccqr")
    public suspend fun vmAgentPlatformUpdatesEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmAgentPlatformUpdatesEnabled = mapped
    }

    /**
     * @param value Specifies if vTPM (virtual Trusted Platform Module) and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.
     */
    @JvmName("grlgyueuyubihwnt")
    public suspend fun vtpmEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vtpmEnabled = mapped
    }

    /**
     * @param value One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("akxixqmltalugprd")
    public suspend fun winrmListeners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.winrmListeners = mapped
    }

    /**
     * @param argument One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("tyovavosbkoexmha")
    public suspend fun winrmListeners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineWinrmListenerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.winrmListeners = mapped
    }

    /**
     * @param argument One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("mkxfdardqxnmrkla")
    public suspend fun winrmListeners(vararg argument: suspend WindowsVirtualMachineWinrmListenerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WindowsVirtualMachineWinrmListenerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.winrmListeners = mapped
    }

    /**
     * @param argument One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("neptwdtkuouxhgpa")
    public suspend fun winrmListeners(argument: suspend WindowsVirtualMachineWinrmListenerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            WindowsVirtualMachineWinrmListenerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.winrmListeners = mapped
    }

    /**
     * @param values One or more `winrm_listener` blocks as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("qobiwqjbqmrhxawm")
    public suspend fun winrmListeners(vararg values: WindowsVirtualMachineWinrmListenerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.winrmListeners = mapped
    }

    /**
     * @param value * `zones` - (Optional) Specifies the Availability Zone in which this Windows Virtual Machine should be located. Changing this forces a new Windows Virtual Machine to be created.
     */
    @JvmName("lkwtcmropkwysyon")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zone = mapped
    }

    internal fun build(): WindowsVirtualMachineArgs = WindowsVirtualMachineArgs(
        additionalCapabilities = additionalCapabilities,
        additionalUnattendContents = additionalUnattendContents,
        adminPassword = adminPassword,
        adminUsername = adminUsername,
        allowExtensionOperations = allowExtensionOperations,
        availabilitySetId = availabilitySetId,
        bootDiagnostics = bootDiagnostics,
        bypassPlatformSafetyChecksOnUserScheduleEnabled = bypassPlatformSafetyChecksOnUserScheduleEnabled,
        capacityReservationGroupId = capacityReservationGroupId,
        computerName = computerName,
        customData = customData,
        dedicatedHostGroupId = dedicatedHostGroupId,
        dedicatedHostId = dedicatedHostId,
        diskControllerType = diskControllerType,
        edgeZone = edgeZone,
        enableAutomaticUpdates = enableAutomaticUpdates,
        encryptionAtHostEnabled = encryptionAtHostEnabled,
        evictionPolicy = evictionPolicy,
        extensionsTimeBudget = extensionsTimeBudget,
        galleryApplications = galleryApplications,
        hotpatchingEnabled = hotpatchingEnabled,
        identity = identity,
        licenseType = licenseType,
        location = location,
        maxBidPrice = maxBidPrice,
        name = name,
        networkInterfaceIds = networkInterfaceIds,
        osDisk = osDisk,
        osImageNotification = osImageNotification,
        patchAssessmentMode = patchAssessmentMode,
        patchMode = patchMode,
        plan = plan,
        platformFaultDomain = platformFaultDomain,
        priority = priority,
        provisionVmAgent = provisionVmAgent,
        proximityPlacementGroupId = proximityPlacementGroupId,
        rebootSetting = rebootSetting,
        resourceGroupName = resourceGroupName,
        secrets = secrets,
        secureBootEnabled = secureBootEnabled,
        size = size,
        sourceImageId = sourceImageId,
        sourceImageReference = sourceImageReference,
        tags = tags,
        terminationNotification = terminationNotification,
        timezone = timezone,
        userData = userData,
        virtualMachineScaleSetId = virtualMachineScaleSetId,
        vmAgentPlatformUpdatesEnabled = vmAgentPlatformUpdatesEnabled,
        vtpmEnabled = vtpmEnabled,
        winrmListeners = winrmListeners,
        zone = zone,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy