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>
impl<S: State> WindowsVirtualMachineArgsBuilder<S>
sourcepub fn build_struct(self) -> WindowsVirtualMachineArgswhere
S: IsComplete,
pub fn build_struct(self) -> WindowsVirtualMachineArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn additional_capabilities(
self,
value: impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
pub fn additional_capabilities(
self,
value: impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
sourcepub fn maybe_additional_capabilities(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
pub fn maybe_additional_capabilities(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineAdditionalCapabilities>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
sourcepub fn additional_unattend_contents(
self,
value: impl Into<Output<Option<Vec<WindowsVirtualMachineAdditionalUnattendContent>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalUnattendContents<S>>where
S::AdditionalUnattendContents: IsUnset,
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.
sourcepub fn maybe_additional_unattend_contents(
self,
value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineAdditionalUnattendContent>>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdditionalUnattendContents<S>>where
S::AdditionalUnattendContents: IsUnset,
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.
sourcepub fn admin_password(
self,
value: impl Into<Output<String>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdminPassword<S>>where
S::AdminPassword: IsUnset,
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.
sourcepub fn admin_username(
self,
value: impl Into<Output<String>>,
) -> WindowsVirtualMachineArgsBuilder<SetAdminUsername<S>>where
S::AdminUsername: IsUnset,
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.
sourcepub fn allow_extension_operations(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>where
S::AllowExtensionOperations: IsUnset,
pub fn allow_extension_operations(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>where
S::AllowExtensionOperations: IsUnset,
sourcepub fn maybe_allow_extension_operations(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>where
S::AllowExtensionOperations: IsUnset,
pub fn maybe_allow_extension_operations(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAllowExtensionOperations<S>>where
S::AllowExtensionOperations: IsUnset,
sourcepub fn availability_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
pub fn availability_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
sourcepub fn maybe_availability_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
pub fn maybe_availability_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
sourcepub fn boot_diagnostics(
self,
value: impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>,
) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
pub fn boot_diagnostics(
self,
value: impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>,
) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
sourcepub fn maybe_boot_diagnostics(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
pub fn maybe_boot_diagnostics(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineBootDiagnostics>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
sourcepub fn bypass_platform_safety_checks_on_user_schedule_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetBypassPlatformSafetyChecksOnUserScheduleEnabled<S>>where
S::BypassPlatformSafetyChecksOnUserScheduleEnabled: IsUnset,
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 totrue
whenpatch_mode
is set toAutomaticByPlatform
.
sourcepub 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,
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 totrue
whenpatch_mode
is set toAutomaticByPlatform
.
sourcepub fn capacity_reservation_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCapacityReservationGroupId<S>>where
S::CapacityReservationGroupId: IsUnset,
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 withavailability_set_id
orproximity_placement_group_id
sourcepub fn maybe_capacity_reservation_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCapacityReservationGroupId<S>>where
S::CapacityReservationGroupId: IsUnset,
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 withavailability_set_id
orproximity_placement_group_id
sourcepub fn computer_name(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetComputerName<S>>where
S::ComputerName: IsUnset,
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.
sourcepub fn maybe_computer_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetComputerName<S>>where
S::ComputerName: IsUnset,
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.
sourcepub fn custom_data(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>where
S::CustomData: IsUnset,
pub fn custom_data(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>where
S::CustomData: IsUnset,
sourcepub fn maybe_custom_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>where
S::CustomData: IsUnset,
pub fn maybe_custom_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetCustomData<S>>where
S::CustomData: IsUnset,
sourcepub fn dedicated_host_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>where
S::DedicatedHostGroupId: IsUnset,
pub fn dedicated_host_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>where
S::DedicatedHostGroupId: IsUnset,
sourcepub fn maybe_dedicated_host_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>where
S::DedicatedHostGroupId: IsUnset,
pub fn maybe_dedicated_host_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostGroupId<S>>where
S::DedicatedHostGroupId: IsUnset,
sourcepub fn dedicated_host_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>where
S::DedicatedHostId: IsUnset,
pub fn dedicated_host_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>where
S::DedicatedHostId: IsUnset,
sourcepub fn maybe_dedicated_host_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>where
S::DedicatedHostId: IsUnset,
pub fn maybe_dedicated_host_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDedicatedHostId<S>>where
S::DedicatedHostId: IsUnset,
sourcepub fn disk_controller_type(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>where
S::DiskControllerType: IsUnset,
pub fn disk_controller_type(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>where
S::DiskControllerType: IsUnset,
sourcepub fn maybe_disk_controller_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>where
S::DiskControllerType: IsUnset,
pub fn maybe_disk_controller_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetDiskControllerType<S>>where
S::DiskControllerType: IsUnset,
sourcepub fn edge_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
pub fn edge_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
sourcepub fn maybe_edge_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
pub fn maybe_edge_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
sourcepub fn enable_automatic_updates(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>where
S::EnableAutomaticUpdates: IsUnset,
pub fn enable_automatic_updates(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>where
S::EnableAutomaticUpdates: IsUnset,
sourcepub fn maybe_enable_automatic_updates(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>where
S::EnableAutomaticUpdates: IsUnset,
pub fn maybe_enable_automatic_updates(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEnableAutomaticUpdates<S>>where
S::EnableAutomaticUpdates: IsUnset,
sourcepub fn encryption_at_host_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>where
S::EncryptionAtHostEnabled: IsUnset,
pub fn encryption_at_host_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>where
S::EncryptionAtHostEnabled: IsUnset,
sourcepub fn maybe_encryption_at_host_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>where
S::EncryptionAtHostEnabled: IsUnset,
pub fn maybe_encryption_at_host_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEncryptionAtHostEnabled<S>>where
S::EncryptionAtHostEnabled: IsUnset,
sourcepub fn eviction_policy(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
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 toSpot
.
sourcepub fn maybe_eviction_policy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetEvictionPolicy<S>>where
S::EvictionPolicy: IsUnset,
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 toSpot
.
sourcepub fn extensions_time_budget(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetExtensionsTimeBudget<S>>where
S::ExtensionsTimeBudget: IsUnset,
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
.
sourcepub fn maybe_extensions_time_budget(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetExtensionsTimeBudget<S>>where
S::ExtensionsTimeBudget: IsUnset,
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
.
sourcepub fn gallery_applications(
self,
value: impl Into<Output<Option<Vec<WindowsVirtualMachineGalleryApplication>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetGalleryApplications<S>>where
S::GalleryApplications: IsUnset,
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 theazure.compute.GalleryApplicationAssignment
resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. Ifazure.compute.GalleryApplicationAssignment
is used, it’s recommended to useignore_changes
for thegallery_application
block on the correspondingazure.compute.WindowsVirtualMachine
resource, to avoid a persistent diff when using this resource.
sourcepub fn maybe_gallery_applications(
self,
value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineGalleryApplication>>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetGalleryApplications<S>>where
S::GalleryApplications: IsUnset,
pub fn maybe_gallery_applications(
self,
value: Option<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 theazure.compute.GalleryApplicationAssignment
resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. Ifazure.compute.GalleryApplicationAssignment
is used, it’s recommended to useignore_changes
for thegallery_application
block on the correspondingazure.compute.WindowsVirtualMachine
resource, to avoid a persistent diff when using this resource.
sourcepub fn hotpatching_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetHotpatchingEnabled<S>>where
S::HotpatchingEnabled: IsUnset,
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 toAutomaticByPlatform
, theprovision_vm_agent
is set totrue
, yoursource_image_reference
references a hotpatching enabled image, and the VM’ssize
is set to a Azure generation 2 VM. An example of how to correctly configure a Windows Virtual Machine to use thehotpatching_enabled
field can be found in the./examples/virtual-machines/windows/hotpatching-enabled
directory within the GitHub Repository.
sourcepub fn maybe_hotpatching_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetHotpatchingEnabled<S>>where
S::HotpatchingEnabled: IsUnset,
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 toAutomaticByPlatform
, theprovision_vm_agent
is set totrue
, yoursource_image_reference
references a hotpatching enabled image, and the VM’ssize
is set to a Azure generation 2 VM. An example of how to correctly configure a Windows Virtual Machine to use thehotpatching_enabled
field can be found in the./examples/virtual-machines/windows/hotpatching-enabled
directory within the GitHub Repository.
sourcepub fn identity(
self,
value: impl Into<Output<Option<WindowsVirtualMachineIdentity>>>,
) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
pub fn identity(
self,
value: impl Into<Output<Option<WindowsVirtualMachineIdentity>>>,
) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
sourcepub fn maybe_identity(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineIdentity>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
pub fn maybe_identity(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineIdentity>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
sourcepub fn license_type(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
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
.
sourcepub fn maybe_license_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
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
.
sourcepub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn max_bid_price(
self,
value: impl Into<Output<Option<f64>>>,
) -> WindowsVirtualMachineArgsBuilder<SetMaxBidPrice<S>>where
S::MaxBidPrice: IsUnset,
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 toSpot
.
sourcepub fn maybe_max_bid_price(
self,
value: Option<impl Into<Output<Option<f64>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetMaxBidPrice<S>>where
S::MaxBidPrice: IsUnset,
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 toSpot
.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn network_interface_ids(
self,
value: impl Into<Output<Vec<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetNetworkInterfaceIds<S>>where
S::NetworkInterfaceIds: IsUnset,
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.
sourcepub fn os_disk(
self,
value: impl Into<Output<WindowsVirtualMachineOsDisk>>,
) -> WindowsVirtualMachineArgsBuilder<SetOsDisk<S>>where
S::OsDisk: IsUnset,
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.
sourcepub fn os_image_notification(
self,
value: impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>,
) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>where
S::OsImageNotification: IsUnset,
pub fn os_image_notification(
self,
value: impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>,
) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>where
S::OsImageNotification: IsUnset,
sourcepub fn maybe_os_image_notification(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>where
S::OsImageNotification: IsUnset,
pub fn maybe_os_image_notification(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineOsImageNotification>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetOsImageNotification<S>>where
S::OsImageNotification: IsUnset,
sourcepub fn patch_assessment_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPatchAssessmentMode<S>>where
S::PatchAssessmentMode: IsUnset,
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 toAutomaticByPlatform
then theprovision_vm_agent
field must be set totrue
.
sourcepub fn maybe_patch_assessment_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPatchAssessmentMode<S>>where
S::PatchAssessmentMode: IsUnset,
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 toAutomaticByPlatform
then theprovision_vm_agent
field must be set totrue
.
sourcepub fn patch_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPatchMode<S>>where
S::PatchMode: IsUnset,
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 toAutomaticByPlatform
thenprovision_vm_agent
must also be set totrue
. If the Virtual Machine is using a hotpatching enabled image thepatch_mode
must always be set toAutomaticByPlatform
.
sourcepub fn maybe_patch_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPatchMode<S>>where
S::PatchMode: IsUnset,
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 toAutomaticByPlatform
thenprovision_vm_agent
must also be set totrue
. If the Virtual Machine is using a hotpatching enabled image thepatch_mode
must always be set toAutomaticByPlatform
.
sourcepub fn plan(
self,
value: impl Into<Output<Option<WindowsVirtualMachinePlan>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
pub fn plan(
self,
value: impl Into<Output<Option<WindowsVirtualMachinePlan>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
sourcepub fn maybe_plan(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachinePlan>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
pub fn maybe_plan(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachinePlan>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
sourcepub fn platform_fault_domain(
self,
value: impl Into<Output<Option<i32>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlatformFaultDomain<S>>where
S::PlatformFaultDomain: IsUnset,
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.
sourcepub fn maybe_platform_fault_domain(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPlatformFaultDomain<S>>where
S::PlatformFaultDomain: IsUnset,
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.
sourcepub fn priority(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn priority(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
sourcepub fn maybe_priority(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn maybe_priority(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
sourcepub fn provision_vm_agent(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProvisionVmAgent<S>>where
S::ProvisionVmAgent: IsUnset,
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 tofalse
thenallow_extension_operations
must also be set tofalse
.
sourcepub fn maybe_provision_vm_agent(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProvisionVmAgent<S>>where
S::ProvisionVmAgent: IsUnset,
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 tofalse
thenallow_extension_operations
must also be set tofalse
.
sourcepub fn proximity_placement_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
pub fn proximity_placement_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
sourcepub fn maybe_proximity_placement_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
pub fn maybe_proximity_placement_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
sourcepub fn reboot_setting(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetRebootSetting<S>>where
S::RebootSetting: IsUnset,
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 whenpatch_mode
is set toAutomaticByPlatform
.
sourcepub fn maybe_reboot_setting(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetRebootSetting<S>>where
S::RebootSetting: IsUnset,
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 whenpatch_mode
is set toAutomaticByPlatform
.
sourcepub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> WindowsVirtualMachineArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
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.
sourcepub fn secrets(
self,
value: impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
pub fn secrets(
self,
value: impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
sourcepub fn maybe_secrets(
self,
value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
pub fn maybe_secrets(
self,
value: Option<impl Into<Output<Option<Vec<WindowsVirtualMachineSecret>>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
sourcepub fn secure_boot_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>where
S::SecureBootEnabled: IsUnset,
pub fn secure_boot_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>where
S::SecureBootEnabled: IsUnset,
sourcepub fn maybe_secure_boot_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>where
S::SecureBootEnabled: IsUnset,
pub fn maybe_secure_boot_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>where
S::SecureBootEnabled: IsUnset,
sourcepub fn size(
self,
value: impl Into<Output<String>>,
) -> WindowsVirtualMachineArgsBuilder<SetSize<S>>where
S::Size: IsUnset,
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
.
sourcepub fn source_image_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSourceImageId<S>>where
S::SourceImageId: IsUnset,
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 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
orsource_image_reference
must be set.
sourcepub fn maybe_source_image_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSourceImageId<S>>where
S::SourceImageId: IsUnset,
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 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
orsource_image_reference
must be set.
sourcepub fn source_image_reference(
self,
value: impl Into<Output<Option<WindowsVirtualMachineSourceImageReference>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSourceImageReference<S>>where
S::SourceImageReference: IsUnset,
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
orsource_image_reference
must be set.
sourcepub fn maybe_source_image_reference(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineSourceImageReference>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetSourceImageReference<S>>where
S::SourceImageReference: IsUnset,
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
orsource_image_reference
must be set.
sourcepub fn termination_notification(
self,
value: impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>where
S::TerminationNotification: IsUnset,
pub fn termination_notification(
self,
value: impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>where
S::TerminationNotification: IsUnset,
sourcepub fn maybe_termination_notification(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>where
S::TerminationNotification: IsUnset,
pub fn maybe_termination_notification(
self,
value: Option<impl Into<Output<Option<WindowsVirtualMachineTerminationNotification>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTerminationNotification<S>>where
S::TerminationNotification: IsUnset,
sourcepub fn timezone(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTimezone<S>>where
S::Timezone: IsUnset,
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.
sourcepub fn maybe_timezone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetTimezone<S>>where
S::Timezone: IsUnset,
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.
sourcepub fn user_data(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
pub fn user_data(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
sourcepub fn maybe_user_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
pub fn maybe_user_data(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetUserData<S>>where
S::UserData: IsUnset,
sourcepub fn virtual_machine_scale_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> WindowsVirtualMachineArgsBuilder<SetVirtualMachineScaleSetId<S>>where
S::VirtualMachineScaleSetId: IsUnset,
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 FeatureMicrosoft.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 tofalse
, see the documentation for more information.
sourcepub fn maybe_virtual_machine_scale_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> WindowsVirtualMachineArgsBuilder<SetVirtualMachineScaleSetId<S>>where
S::VirtualMachineScaleSetId: IsUnset,
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 FeatureMicrosoft.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 tofalse
, see the documentation for more information.