pulumi_wasm_providers_azure_mini::compute::windows_virtual_machine

Struct WindowsVirtualMachineArgsBuilder

source
pub struct WindowsVirtualMachineArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> WindowsVirtualMachineArgsBuilder<S>

source

pub fn build_struct(self) -> WindowsVirtualMachineArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn additional_capabilities( self, value: impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>
where S::AdditionalCapabilities: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineAdditionalCapabilities>,
> as Default>::default()

A additional_capabilities block as defined below.

source

pub fn maybe_additional_capabilities( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>
where S::AdditionalCapabilities: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineAdditionalCapabilities>,
> as Default>::default()

A additional_capabilities block as defined below.

source

pub fn additional_unattend_contents( self, value: impl Into<Output<Option<Vec<WindowsVirtualMachineAdditionalUnattendContent>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdditionalUnattendContents<S>>
where S::AdditionalUnattendContents: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<
        Vec<super::super::types::compute::WindowsVirtualMachineAdditionalUnattendContent>,
    >,
> as Default>::default()

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

source

pub fn maybe_additional_unattend_contents( self, value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineAdditionalUnattendContent>>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdditionalUnattendContents<S>>
where S::AdditionalUnattendContents: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<
        Vec<super::super::types::compute::WindowsVirtualMachineAdditionalUnattendContent>,
    >,
> as Default>::default()

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

source

pub fn admin_password( self, value: impl Into<Output<String>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdminPassword<S>>
where S::AdminPassword: IsUnset,

Required.

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

source

pub fn admin_username( self, value: impl Into<Output<String>>, ) -> WindowsVirtualMachineArgsBuilder<SetAdminUsername<S>>
where S::AdminUsername: IsUnset,

Required.

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

source

pub fn allow_extension_operations( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>
where S::AllowExtensionOperations: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn maybe_allow_extension_operations( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>
where S::AllowExtensionOperations: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn availability_set_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>
where S::AvailabilitySetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_availability_set_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>
where S::AvailabilitySetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn boot_diagnostics( self, value: impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>, ) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>
where S::BootDiagnostics: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineBootDiagnostics>,
> as Default>::default()

A boot_diagnostics block as defined below.

source

pub fn maybe_boot_diagnostics( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>
where S::BootDiagnostics: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineBootDiagnostics>,
> as Default>::default()

A boot_diagnostics block as defined below.

source

pub fn bypass_platform_safety_checks_on_user_schedule_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetBypassPlatformSafetyChecksOnUserScheduleEnabled<S>>
where S::BypassPlatformSafetyChecksOnUserScheduleEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_bypass_platform_safety_checks_on_user_schedule_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetBypassPlatformSafetyChecksOnUserScheduleEnabled<S>>
where S::BypassPlatformSafetyChecksOnUserScheduleEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn capacity_reservation_group_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetCapacityReservationGroupId<S>>
where S::CapacityReservationGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_capacity_reservation_group_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetCapacityReservationGroupId<S>>
where S::CapacityReservationGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn computer_name( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetComputerName<S>>
where S::ComputerName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_computer_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetComputerName<S>>
where S::ComputerName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn custom_data( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>
where S::CustomData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_custom_data( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>
where S::CustomData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn dedicated_host_group_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>
where S::DedicatedHostGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_dedicated_host_group_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>
where S::DedicatedHostGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn dedicated_host_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>
where S::DedicatedHostId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_dedicated_host_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>
where S::DedicatedHostId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn disk_controller_type( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>
where S::DiskControllerType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_disk_controller_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>
where S::DiskControllerType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn edge_zone( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>
where S::EdgeZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_edge_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>
where S::EdgeZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn enable_automatic_updates( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>
where S::EnableAutomaticUpdates: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies if Automatic Updates are Enabled for the Windows Virtual Machine. Changing this forces a new resource to be created. Defaults to true.

source

pub fn maybe_enable_automatic_updates( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>
where S::EnableAutomaticUpdates: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies if Automatic Updates are Enabled for the Windows Virtual Machine. Changing this forces a new resource to be created. Defaults to true.

source

pub fn encryption_at_host_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>
where S::EncryptionAtHostEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn maybe_encryption_at_host_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>
where S::EncryptionAtHostEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn eviction_policy( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEvictionPolicy<S>>
where S::EvictionPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_eviction_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetEvictionPolicy<S>>
where S::EvictionPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn extensions_time_budget( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetExtensionsTimeBudget<S>>
where S::ExtensionsTimeBudget: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_extensions_time_budget( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetExtensionsTimeBudget<S>>
where S::ExtensionsTimeBudget: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn gallery_applications( self, value: impl Into<Output<Option<Vec<WindowsVirtualMachineGalleryApplication>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetGalleryApplications<S>>
where S::GalleryApplications: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineGalleryApplication>>,
> as Default>::default()

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.

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineGalleryApplication>>,
> as Default>::default()

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.

source

pub fn hotpatching_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetHotpatchingEnabled<S>>
where S::HotpatchingEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

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 VM. An example of how to correctly configure a Windows Virtual Machine to use the hotpatching_enabled field can be found in the ./examples/virtual-machines/windows/hotpatching-enabled directory within the GitHub Repository.

source

pub fn maybe_hotpatching_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetHotpatchingEnabled<S>>
where S::HotpatchingEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

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 VM. An example of how to correctly configure a Windows Virtual Machine to use the hotpatching_enabled field can be found in the ./examples/virtual-machines/windows/hotpatching-enabled directory within the GitHub Repository.

source

pub fn identity( self, value: impl Into<Output<Option<WindowsVirtualMachineIdentity>>>, ) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineIdentity>,
> as Default>::default()

An identity block as defined below.

source

pub fn maybe_identity( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineIdentity>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineIdentity>,
> as Default>::default()

An identity block as defined below.

source

pub fn license_type( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetLicenseType<S>>
where S::LicenseType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the type of on-premise license (also known as Azure Hybrid Use Benefit) which should be used for this Virtual Machine. Possible values are None, Windows_Client and Windows_Server.

source

pub fn maybe_license_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetLicenseType<S>>
where S::LicenseType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the type of on-premise license (also known as Azure Hybrid Use Benefit) which should be used for this Virtual Machine. Possible values are None, Windows_Client and Windows_Server.

source

pub fn location( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_location( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn max_bid_price( self, value: impl Into<Output<Option<f64>>>, ) -> WindowsVirtualMachineArgsBuilder<SetMaxBidPrice<S>>
where S::MaxBidPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

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.

source

pub fn maybe_max_bid_price( self, value: Option<impl Into<Output<Option<f64>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetMaxBidPrice<S>>
where S::MaxBidPrice: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

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.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn network_interface_ids( self, value: impl Into<Output<Vec<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetNetworkInterfaceIds<S>>
where S::NetworkInterfaceIds: IsUnset,

Required.

. 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.

source

pub fn os_disk( self, value: impl Into<Output<WindowsVirtualMachineOsDisk>>, ) -> WindowsVirtualMachineArgsBuilder<SetOsDisk<S>>
where S::OsDisk: IsUnset,

Required.

A os_disk block as defined below.

source

pub fn os_image_notification( self, value: impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>, ) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>
where S::OsImageNotification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineOsImageNotification>,
> as Default>::default()

A os_image_notification block as defined below.

source

pub fn maybe_os_image_notification( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>
where S::OsImageNotification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineOsImageNotification>,
> as Default>::default()

A os_image_notification block as defined below.

source

pub fn patch_assessment_mode( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPatchAssessmentMode<S>>
where S::PatchAssessmentMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_patch_assessment_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPatchAssessmentMode<S>>
where S::PatchAssessmentMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn patch_mode( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPatchMode<S>>
where S::PatchMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

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.

source

pub fn maybe_patch_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPatchMode<S>>
where S::PatchMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

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.

source

pub fn plan( self, value: impl Into<Output<Option<WindowsVirtualMachinePlan>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>
where S::Plan: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachinePlan>,
> as Default>::default()

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

source

pub fn maybe_plan( self, value: Option<impl Into<Output<Option<WindowsVirtualMachinePlan>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>
where S::Plan: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachinePlan>,
> as Default>::default()

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

source

pub fn platform_fault_domain( self, value: impl Into<Output<Option<i32>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPlatformFaultDomain<S>>
where S::PlatformFaultDomain: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

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.

source

pub fn maybe_platform_fault_domain( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPlatformFaultDomain<S>>
where S::PlatformFaultDomain: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

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.

source

pub fn priority( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_priority( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn provision_vm_agent( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetProvisionVmAgent<S>>
where S::ProvisionVmAgent: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_provision_vm_agent( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetProvisionVmAgent<S>>
where S::ProvisionVmAgent: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn proximity_placement_group_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>
where S::ProximityPlacementGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_proximity_placement_group_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>
where S::ProximityPlacementGroupId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn reboot_setting( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetRebootSetting<S>>
where S::RebootSetting: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_reboot_setting( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetRebootSetting<S>>
where S::RebootSetting: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn resource_group_name( self, value: impl Into<Output<String>>, ) -> WindowsVirtualMachineArgsBuilder<SetResourceGroupName<S>>
where S::ResourceGroupName: IsUnset,

Required.

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

source

pub fn secrets( self, value: impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>
where S::Secrets: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineSecret>>,
> as Default>::default()

One or more secret blocks as defined below.

source

pub fn maybe_secrets( self, value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>
where S::Secrets: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineSecret>>,
> as Default>::default()

One or more secret blocks as defined below.

source

pub fn secure_boot_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>
where S::SecureBootEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies if Secure Boot and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.

source

pub fn maybe_secure_boot_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>
where S::SecureBootEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies if Secure Boot and Trusted Launch is enabled for the Virtual Machine. Changing this forces a new resource to be created.

source

pub fn size( self, value: impl Into<Output<String>>, ) -> WindowsVirtualMachineArgsBuilder<SetSize<S>>
where S::Size: IsUnset,

Required.

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

source

pub fn source_image_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSourceImageId<S>>
where S::SourceImageId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

NOTE: One of either source_image_id or source_image_reference must be set.

source

pub fn maybe_source_image_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSourceImageId<S>>
where S::SourceImageId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

NOTE: One of either source_image_id or source_image_reference must be set.

source

pub fn source_image_reference( self, value: impl Into<Output<Option<WindowsVirtualMachineSourceImageReference>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSourceImageReference<S>>
where S::SourceImageReference: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineSourceImageReference>,
> as Default>::default()

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.

source

pub fn maybe_source_image_reference( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineSourceImageReference>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetSourceImageReference<S>>
where S::SourceImageReference: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineSourceImageReference>,
> as Default>::default()

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.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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

source

pub fn termination_notification( self, value: impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>
where S::TerminationNotification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineTerminationNotification>,
> as Default>::default()

A termination_notification block as defined below.

source

pub fn maybe_termination_notification( self, value: Option<impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>
where S::TerminationNotification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::WindowsVirtualMachineTerminationNotification>,
> as Default>::default()

A termination_notification block as defined below.

source

pub fn timezone( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTimezone<S>>
where S::Timezone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the Time Zone which should be used by the Virtual Machine, the possible values are defined here. Changing this forces a new resource to be created.

source

pub fn maybe_timezone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetTimezone<S>>
where S::Timezone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the Time Zone which should be used by the Virtual Machine, the possible values are defined here. Changing this forces a new resource to be created.

source

pub fn user_data( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_user_data( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>
where S::UserData: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn virtual_machine_scale_set_id( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVirtualMachineScaleSetId<S>>
where S::VirtualMachineScaleSetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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 for more information.

NOTE: Orchestrated Virtual Machine Scale Sets can be provisioned using the azure.compute.OrchestratedVirtualMachineScaleSet resource.

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 for more information.

source

pub fn maybe_virtual_machine_scale_set_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVirtualMachineScaleSetId<S>>
where S::VirtualMachineScaleSetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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 for more information.

NOTE: Orchestrated Virtual Machine Scale Sets can be provisioned using the azure.compute.OrchestratedVirtualMachineScaleSet resource.

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 for more information.

source

pub fn vm_agent_platform_updates_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVmAgentPlatformUpdatesEnabled<S>>
where S::VmAgentPlatformUpdatesEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn maybe_vm_agent_platform_updates_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVmAgentPlatformUpdatesEnabled<S>>
where S::VmAgentPlatformUpdatesEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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

source

pub fn vtpm_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVtpmEnabled<S>>
where S::VtpmEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_vtpm_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetVtpmEnabled<S>>
where S::VtpmEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn winrm_listeners( self, value: impl Into<Output<Option<Vec<WindowsVirtualMachineWinrmListener>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetWinrmListeners<S>>
where S::WinrmListeners: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineWinrmListener>>,
> as Default>::default()

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

source

pub fn maybe_winrm_listeners( self, value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineWinrmListener>>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetWinrmListeners<S>>
where S::WinrmListeners: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::WindowsVirtualMachineWinrmListener>>,
> as Default>::default()

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

source

pub fn zone( self, value: impl Into<Output<Option<String>>>, ) -> WindowsVirtualMachineArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

  • 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.
source

pub fn maybe_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> WindowsVirtualMachineArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

  • 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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.