pulumi_wasm_providers_azure_mini::compute::scale_set

Struct ScaleSetArgs

source
pub struct ScaleSetArgs {
Show 28 fields pub automatic_os_upgrade: Output<Option<bool>>, pub boot_diagnostics: Output<Option<ScaleSetBootDiagnostics>>, pub eviction_policy: Output<Option<String>>, pub extensions: Output<Option<Vec<ScaleSetExtension>>>, pub health_probe_id: Output<Option<String>>, pub identity: Output<Option<ScaleSetIdentity>>, pub license_type: Output<Option<String>>, pub location: Output<Option<String>>, pub name: Output<Option<String>>, pub network_profiles: Output<Vec<ScaleSetNetworkProfile>>, pub os_profile: Output<ScaleSetOsProfile>, pub os_profile_linux_config: Output<Option<ScaleSetOsProfileLinuxConfig>>, pub os_profile_secrets: Output<Option<Vec<ScaleSetOsProfileSecret>>>, pub os_profile_windows_config: Output<Option<ScaleSetOsProfileWindowsConfig>>, pub overprovision: Output<Option<bool>>, pub plan: Output<Option<ScaleSetPlan>>, pub priority: Output<Option<String>>, pub proximity_placement_group_id: Output<Option<String>>, pub resource_group_name: Output<String>, pub rolling_upgrade_policy: Output<Option<ScaleSetRollingUpgradePolicy>>, pub single_placement_group: Output<Option<bool>>, pub sku: Output<ScaleSetSku>, pub storage_profile_data_disks: Output<Option<Vec<ScaleSetStorageProfileDataDisk>>>, pub storage_profile_image_reference: Output<Option<ScaleSetStorageProfileImageReference>>, pub storage_profile_os_disk: Output<ScaleSetStorageProfileOsDisk>, pub tags: Output<Option<HashMap<String, String>>>, pub upgrade_policy_mode: Output<String>, pub zones: Output<Option<Vec<String>>>,
}

Fields§

§automatic_os_upgrade: Output<Option<bool>>

Automatic OS patches can be applied by Azure to your scaleset. This is particularly useful when upgrade_policy_mode is set to Rolling. Defaults to false.

§boot_diagnostics: Output<Option<ScaleSetBootDiagnostics>>

A boot_diagnostics block as referenced below.

§eviction_policy: Output<Option<String>>

Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are Deallocate and Delete. Changing this forces a new resource to be created.

NOTE: eviction_policy can only be set when priority is set to Low.

§extensions: Output<Option<Vec<ScaleSetExtension>>>

Can be specified multiple times to add extension profiles to the scale set. Each extension block supports the fields documented below.

§health_probe_id: Output<Option<String>>

Specifies the identifier for the load balancer health probe. Required when using Rolling as your upgrade_policy_mode.

§identity: Output<Option<ScaleSetIdentity>>

An identity block as defined below.

§license_type: Output<Option<String>>

(Optional, when a Windows machine) Specifies the Windows OS license type. If supplied, the only allowed values are Windows_Client and Windows_Server.

§location: Output<Option<String>>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

§name: Output<Option<String>>

Specifies the name of the virtual machine scale set resource. Changing this forces a new resource to be created.

§network_profiles: Output<Vec<ScaleSetNetworkProfile>>

A collection of network_profile blocks as documented below.

§os_profile: Output<ScaleSetOsProfile>

A os_profile block as documented below.

§os_profile_linux_config: Output<Option<ScaleSetOsProfileLinuxConfig>>

A os_profile_linux_config block as documented below.

§os_profile_secrets: Output<Option<Vec<ScaleSetOsProfileSecret>>>

A collection of os_profile_secrets blocks as documented below.

§os_profile_windows_config: Output<Option<ScaleSetOsProfileWindowsConfig>>

A os_profile_windows_config block as documented below.

§overprovision: Output<Option<bool>>

Specifies whether the virtual machine scale set should be overprovisioned. Defaults to true.

§plan: Output<Option<ScaleSetPlan>>

A plan block as documented below.

§priority: Output<Option<String>>

Specifies the priority for the Virtual Machines in the Scale Set. Possible values are Low and Regular. Changing this forces a new resource to be created.

§proximity_placement_group_id: Output<Option<String>>

The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created

§resource_group_name: Output<String>

The name of the resource group in which to create the virtual machine scale set. Changing this forces a new resource to be created.

§rolling_upgrade_policy: Output<Option<ScaleSetRollingUpgradePolicy>>

A rolling_upgrade_policy block as defined below. This is only applicable when the upgrade_policy_mode is Rolling.

§single_placement_group: Output<Option<bool>>

Specifies whether the scale set is limited to a single placement group with a maximum size of 100 virtual machines. If set to false, managed disks must be used. Changing this forces a new resource to be created. See documentation for more information. Defaults to true.

§sku: Output<ScaleSetSku>

A sku block as documented below.

§storage_profile_data_disks: Output<Option<Vec<ScaleSetStorageProfileDataDisk>>>

A storage_profile_data_disk block as documented below.

§storage_profile_image_reference: Output<Option<ScaleSetStorageProfileImageReference>>

A storage_profile_image_reference block as documented below.

§storage_profile_os_disk: Output<ScaleSetStorageProfileOsDisk>

A storage_profile_os_disk block as documented below.

§tags: Output<Option<HashMap<String, String>>>

A mapping of tags to assign to the resource.

§upgrade_policy_mode: Output<String>

Specifies the mode of an upgrade to virtual machines in the scale set. Possible values, Rolling, Manual, or Automatic. When choosing Rolling, you will need to set a health probe.

§zones: Output<Option<Vec<String>>>

A collection of availability zones to spread the Virtual Machines over. Changing this forces a new resource to be created.

NOTE: Availability Zones are only supported in several regions at this time.

Implementations§

source§

impl ScaleSetArgs

source

pub fn builder() -> ScaleSetArgsBuilder

Create an instance of ScaleSetArgs using the builder syntax

Trait Implementations§

source§

impl Clone for ScaleSetArgs

source§

fn clone(&self) -> ScaleSetArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.