pulumi_wasm_providers_azure_mini::compute::linux_virtual_machine

Struct LinuxVirtualMachineArgsBuilder

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

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

Implementations§

source§

impl<S: State> LinuxVirtualMachineArgsBuilder<S>

source

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

Finish building and return the requested object

source

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

Optional (Some / Option setters). Default:

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

A additional_capabilities block as defined below.

source

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

Optional (Some / Option setters). Default:

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

A additional_capabilities block as defined below.

source

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

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

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

NOTE: When an admin_password is specified disable_password_authentication must be set to false. NOTE: One of either admin_password or admin_ssh_key must be specified.

source

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

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

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

NOTE: When an admin_password is specified disable_password_authentication must be set to false. NOTE: One of either admin_password or admin_ssh_key must be specified.

source

pub fn admin_ssh_keys( self, value: impl Into<Output<Option<Vec<LinuxVirtualMachineAdminSshKey>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetAdminSshKeys<S>>
where S::AdminSshKeys: IsUnset,

Optional (Some / Option setters). Default:

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

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

NOTE: One of either admin_password or admin_ssh_key must be specified.

source

pub fn maybe_admin_ssh_keys( self, value: Option<impl Into<Output<Option<Vec<LinuxVirtualMachineAdminSshKey>>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetAdminSshKeys<S>>
where S::AdminSshKeys: IsUnset,

Optional (Some / Option setters). Default:

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

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

NOTE: One of either admin_password or admin_ssh_key must be specified.

source

pub fn admin_username( self, value: impl Into<Output<String>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineBootDiagnostics>>>, ) -> LinuxVirtualMachineArgsBuilder<SetBootDiagnostics<S>>
where S::BootDiagnostics: IsUnset,

Optional (Some / Option setters). Default:

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

A boot_diagnostics block as defined below.

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachineBootDiagnostics>,
> 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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux 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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine should be run within. Conflicts with dedicated_host_id.

source

pub fn dedicated_host_id( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 disable_password_authentication( self, value: impl Into<Output<Option<bool>>>, ) -> LinuxVirtualMachineArgsBuilder<SetDisablePasswordAuthentication<S>>
where S::DisablePasswordAuthentication: IsUnset,

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

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

In general we’d recommend using SSH Keys for authentication rather than Passwords - but there’s tradeoff’s to each - please see this thread for more information.

NOTE: When an admin_password is specified disable_password_authentication must be set to false.

source

pub fn maybe_disable_password_authentication( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetDisablePasswordAuthentication<S>>
where S::DisablePasswordAuthentication: IsUnset,

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

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

In general we’d recommend using SSH Keys for authentication rather than Passwords - but there’s tradeoff’s to each - please see this thread for more information.

NOTE: When an admin_password is specified disable_password_authentication must be set to false.

source

pub fn disk_controller_type( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine should exist. Changing this forces a new Linux Virtual Machine to be created.

source

pub fn maybe_edge_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine should exist. Changing this forces a new Linux Virtual Machine to be created.

source

pub fn encryption_at_host_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineGalleryApplication>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetGalleryApplications<S>>
where S::GalleryApplications: IsUnset,

Optional (Some / Option setters). Default:

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

One or more gallery_application blocks as defined below.

Note Gallery Application Assignments can be defined either directly on azure.compute.LinuxVirtualMachine 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.LinuxVirtualMachine 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::LinuxVirtualMachineGalleryApplication>>,
> as Default>::default()

One or more gallery_application blocks as defined below.

Note Gallery Application Assignments can be defined either directly on azure.compute.LinuxVirtualMachine 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.LinuxVirtualMachine resource, to avoid a persistent diff when using this resource.

source

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

Optional (Some / Option setters). Default:

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

An identity block as defined below.

source

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

Optional (Some / Option setters). Default:

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

An identity block as defined below.

source

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

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

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

source

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

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

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

source

pub fn location( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux 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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux 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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

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

source

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

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

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

source

pub fn network_interface_ids( self, value: impl Into<Output<Vec<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineOsDisk>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineOsImageNotification>>>, ) -> LinuxVirtualMachineArgsBuilder<SetOsImageNotification<S>>
where S::OsImageNotification: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachineOsImageNotification>,
> 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<LinuxVirtualMachineOsImageNotification>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetOsImageNotification<S>>
where S::OsImageNotification: IsUnset,

Optional (Some / Option setters). Default:

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

A os_image_notification block as defined below.

source

pub fn patch_assessment_mode( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine. Possible values are AutomaticByPlatform and ImageDefault. Defaults to ImageDefault. 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.

source

pub fn maybe_patch_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine. Possible values are AutomaticByPlatform and ImageDefault. Defaults to ImageDefault. 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.

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachinePlan>,
> 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<LinuxVirtualMachinePlan>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetPlan<S>>
where S::Plan: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachinePlan>,
> 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>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine should be created. Defaults to -1, which means this will be automatically assigned to a fault domain that best maintains balance across the available fault domains. Changing this forces a new Linux Virtual Machine to be created.

source

pub fn maybe_platform_fault_domain( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> LinuxVirtualMachineArgsBuilder<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 Linux Virtual Machine should be created. Defaults to -1, which means this will be automatically assigned to a fault domain that best maintains balance across the available fault domains. Changing this forces a new Linux Virtual Machine to be created.

source

pub fn priority( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>, ) -> LinuxVirtualMachineArgsBuilder<SetResourceGroupName<S>>
where S::ResourceGroupName: IsUnset,

Required.

The name of the Resource Group in which the Linux 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<LinuxVirtualMachineSecret>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetSecrets<S>>
where S::Secrets: IsUnset,

Optional (Some / Option setters). Default:

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

One or more secret blocks as defined below.

source

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

Optional (Some / Option setters). Default:

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

One or more secret blocks as defined below.

source

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

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

Specifies whether secure boot should be enabled on 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>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetSecureBootEnabled<S>>
where S::SecureBootEnabled: IsUnset,

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

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

source

pub fn size( self, value: impl Into<Output<String>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineSourceImageReference>>>, ) -> LinuxVirtualMachineArgsBuilder<SetSourceImageReference<S>>
where S::SourceImageReference: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachineSourceImageReference>,
> 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<LinuxVirtualMachineSourceImageReference>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetSourceImageReference<S>>
where S::SourceImageReference: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::LinuxVirtualMachineSourceImageReference>,
> 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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>>, ) -> LinuxVirtualMachineArgsBuilder<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<LinuxVirtualMachineTerminationNotification>>>, ) -> LinuxVirtualMachineArgsBuilder<SetTerminationNotification<S>>
where S::TerminationNotification: IsUnset,

Optional (Some / Option setters). Default:

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

A termination_notification block as defined below.

source

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

Optional (Some / Option setters). Default:

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

A termination_notification block as defined below.

source

pub fn user_data( self, value: impl Into<Output<Option<String>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>>, ) -> LinuxVirtualMachineArgsBuilder<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>>>, ) -> LinuxVirtualMachineArgsBuilder<SetVtpmEnabled<S>>
where S::VtpmEnabled: IsUnset,

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

Specifies whether vTPM should be enabled on 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>>>>, ) -> LinuxVirtualMachineArgsBuilder<SetVtpmEnabled<S>>
where S::VtpmEnabled: IsUnset,

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

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

source

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

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

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

source

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

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

Specifies the Availability Zones in which this Linux Virtual Machine should be located. Changing this forces a new Linux 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.