import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Virtual Machine Scale Set in Flexible Orchestration Mode. * * ## Disclaimers * * > **Note:** As of the **v2.86.0** (November 19, 2021) release of the provider this resource will only create Virtual Machine Scale Sets with the **Flexible** Orchestration Mode. * * > **Note:** All arguments including the administrator login and password will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleOrchestratedVirtualMachineScaleSet = new azure.compute.OrchestratedVirtualMachineScaleSet("example", { * name: "example-VMSS", * location: example.location, * resourceGroupName: example.name, * platformFaultDomainCount: 1, * zones: ["1"], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Compute` - 2024-11-01 * * ## Import * * An Virtual Machine Scale Set can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:compute/orchestratedVirtualMachineScaleSet:OrchestratedVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/virtualMachineScaleSets/scaleset1 * ``` */ export declare class OrchestratedVirtualMachineScaleSet extends pulumi.CustomResource { /** * Get an existing OrchestratedVirtualMachineScaleSet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: OrchestratedVirtualMachineScaleSetState, opts?: pulumi.CustomResourceOptions): OrchestratedVirtualMachineScaleSet; /** * Returns true if the given object is an instance of OrchestratedVirtualMachineScaleSet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is OrchestratedVirtualMachineScaleSet; /** * An `additionalCapabilities` block as defined below. */ readonly additionalCapabilities: pulumi.Output; /** * An `automaticInstanceRepair` block as defined below. * * > **Note:** To enable the `automaticInstanceRepair`, the Orchestrated Virtual Machine Scale Set must have a valid [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension). */ readonly automaticInstanceRepair: pulumi.Output; /** * A `bootDiagnostics` block as defined below. */ readonly bootDiagnostics: pulumi.Output; /** * Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created. * * > **Note:** `capacityReservationGroupId` cannot be specified with `proximityPlacementGroupId` * * > **Note:** If `capacityReservationGroupId` is specified the `singlePlacementGroup` must be set to `false`. */ readonly capacityReservationGroupId: pulumi.Output; /** * One or more `dataDisk` blocks as defined below. */ readonly dataDisks: pulumi.Output; /** * Should disks attached to this Virtual Machine Scale Set be encrypted by enabling Encryption at Host? */ readonly encryptionAtHostEnabled: pulumi.Output; /** * The Policy which should be used by Spot Virtual Machines that are Evicted from the Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. */ readonly evictionPolicy: pulumi.Output; /** * Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Virtual Machine Scale Set to be created. * * > **Note:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field. */ readonly extensionOperationsEnabled: pulumi.Output; /** * One or more `extension` blocks as defined below */ readonly extensions: pulumi.Output; /** * Specifies the time alloted 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`. */ readonly extensionsTimeBudget: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The number of Virtual Machines in the Virtual Machine Scale Set. */ readonly instances: pulumi.Output; /** * Specifies the type of on-premise license (also known as Azure Hybrid Use Benefit) which should be used for this Virtual Machine Scale Set. Possible values are `None`, `Windows_Client` and `Windows_Server`. */ readonly licenseType: pulumi.Output; /** * The Azure location where the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the eviction_policy. Defaults to `-1`, which means that each Virtual Machine in the Scale Set should not be evicted for price reasons. */ readonly maxBidPrice: pulumi.Output; /** * The name of the Virtual Machine Scale Set. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set. Possible values are `2020-11-01` and `2022-11-01`. Defaults to `2020-11-01`. */ readonly networkApiVersion: pulumi.Output; /** * One or more `networkInterface` blocks as defined below. */ readonly networkInterfaces: pulumi.Output; /** * An `osDisk` block as defined below. */ readonly osDisk: pulumi.Output; /** * An `osProfile` block as defined below. */ readonly osProfile: pulumi.Output; /** * A `plan` block as documented below. Changing this forces a new resource to be created. */ readonly plan: pulumi.Output; /** * Specifies the number of fault domains that are used by this Virtual Machine Scale Set. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ readonly platformFaultDomainCount: pulumi.Output; /** * The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource. */ readonly priority: pulumi.Output; /** * a `priorityMix` block as defined below */ readonly priorityMix: pulumi.Output; /** * The ID of the Proximity Placement Group which the Virtual Machine should be assigned to. Changing this forces a new resource to be created. */ readonly proximityPlacementGroupId: pulumi.Output; /** * The name of the Resource Group in which the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `rollingUpgradePolicy` block as defined below. This is Required when `upgradeMode` is set to `Rolling` and cannot be specified when `upgradeMode` is set to `Manual`. Changing this forces a new resource to be created. */ readonly rollingUpgradePolicy: pulumi.Output; /** * Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Possible values are `true` or `false`. * * > **Note:** `singlePlacementGroup` behaves differently for Flexible orchestration Virtual Machine Scale Sets than it does for Uniform orchestration Virtual Machine Scale Sets. It is recommended that you do not define the `singlePlacementGroup` field in your configuration file as the service will determine what this value should be based off of the value contained within the `skuName` field of your configuration file. You may set the `singlePlacementGroup` field to `true`, however once you set it to `false` you will not be able to revert it back to `true`. */ readonly singlePlacementGroup: pulumi.Output; /** * The `name` of the SKU to be used by this Virtual Machine Scale Set. Valid values include: any of the [General purpose](https://docs.microsoft.com/azure/virtual-machines/sizes-general), [Compute optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-compute), [Memory optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-memory), [Storage optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-storage), [GPU optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-gpu), [FPGA optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-field-programmable-gate-arrays), [High performance](https://docs.microsoft.com/azure/virtual-machines/sizes-hpc), or [Previous generation](https://docs.microsoft.com/azure/virtual-machines/sizes-previous-gen) virtual machine SKUs. */ readonly skuName: pulumi.Output; /** * An `skuProfile` block as defined below. Changing this forces a new resource to be created. * * > **Note:** If `skuProfile` is specified the `skuName` must be set to `Mix`. */ readonly skuProfile: pulumi.Output; /** * The ID of an Image which each Virtual Machine in this Scale Set should be based on. 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. */ readonly sourceImageId: pulumi.Output; /** * A `sourceImageReference` block as defined below. */ readonly sourceImageReference: pulumi.Output; /** * A mapping of tags which should be assigned to this Virtual Machine Scale Set. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A `terminationNotification` block as defined below. */ readonly terminationNotification: pulumi.Output; /** * The Unique ID for the Virtual Machine Scale Set. */ readonly uniqueId: pulumi.Output; /** * Specifies how upgrades (e.g. changing the Image/SKU) should be performed to Virtual Machine Instances. Possible values are `Automatic`, `Manual` and `Rolling`. Defaults to `Manual`. Changing this forces a new resource to be created. */ readonly upgradeMode: pulumi.Output; /** * The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set. */ readonly userDataBase64: pulumi.Output; /** * Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** This can only be set to `true` when one or more `zones` are configured. */ readonly zoneBalance: pulumi.Output; /** * Specifies a list of Availability Zones across which the Virtual Machine Scale Set will create instances. * * > **Note:** Updating `zones` to remove an existing zone forces a new Virtual Machine Scale Set to be created. * * > **Note:** Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview). */ readonly zones: pulumi.Output; /** * Create a OrchestratedVirtualMachineScaleSet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: OrchestratedVirtualMachineScaleSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrchestratedVirtualMachineScaleSet resources. */ export interface OrchestratedVirtualMachineScaleSetState { /** * An `additionalCapabilities` block as defined below. */ additionalCapabilities?: pulumi.Input; /** * An `automaticInstanceRepair` block as defined below. * * > **Note:** To enable the `automaticInstanceRepair`, the Orchestrated Virtual Machine Scale Set must have a valid [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension). */ automaticInstanceRepair?: pulumi.Input; /** * A `bootDiagnostics` block as defined below. */ bootDiagnostics?: pulumi.Input; /** * Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created. * * > **Note:** `capacityReservationGroupId` cannot be specified with `proximityPlacementGroupId` * * > **Note:** If `capacityReservationGroupId` is specified the `singlePlacementGroup` must be set to `false`. */ capacityReservationGroupId?: pulumi.Input; /** * One or more `dataDisk` blocks as defined below. */ dataDisks?: pulumi.Input[]>; /** * Should disks attached to this Virtual Machine Scale Set be encrypted by enabling Encryption at Host? */ encryptionAtHostEnabled?: pulumi.Input; /** * The Policy which should be used by Spot Virtual Machines that are Evicted from the Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. */ evictionPolicy?: pulumi.Input; /** * Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Virtual Machine Scale Set to be created. * * > **Note:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field. */ extensionOperationsEnabled?: pulumi.Input; /** * One or more `extension` blocks as defined below */ extensions?: pulumi.Input[]>; /** * Specifies the time alloted 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`. */ extensionsTimeBudget?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The number of Virtual Machines in the Virtual Machine Scale Set. */ instances?: pulumi.Input; /** * Specifies the type of on-premise license (also known as Azure Hybrid Use Benefit) which should be used for this Virtual Machine Scale Set. Possible values are `None`, `Windows_Client` and `Windows_Server`. */ licenseType?: pulumi.Input; /** * The Azure location where the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the eviction_policy. Defaults to `-1`, which means that each Virtual Machine in the Scale Set should not be evicted for price reasons. */ maxBidPrice?: pulumi.Input; /** * The name of the Virtual Machine Scale Set. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set. Possible values are `2020-11-01` and `2022-11-01`. Defaults to `2020-11-01`. */ networkApiVersion?: pulumi.Input; /** * One or more `networkInterface` blocks as defined below. */ networkInterfaces?: pulumi.Input[]>; /** * An `osDisk` block as defined below. */ osDisk?: pulumi.Input; /** * An `osProfile` block as defined below. */ osProfile?: pulumi.Input; /** * A `plan` block as documented below. Changing this forces a new resource to be created. */ plan?: pulumi.Input; /** * Specifies the number of fault domains that are used by this Virtual Machine Scale Set. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformFaultDomainCount?: pulumi.Input; /** * The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource. */ priority?: pulumi.Input; /** * a `priorityMix` block as defined below */ priorityMix?: pulumi.Input; /** * The ID of the Proximity Placement Group which the Virtual Machine should be assigned to. Changing this forces a new resource to be created. */ proximityPlacementGroupId?: pulumi.Input; /** * The name of the Resource Group in which the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `rollingUpgradePolicy` block as defined below. This is Required when `upgradeMode` is set to `Rolling` and cannot be specified when `upgradeMode` is set to `Manual`. Changing this forces a new resource to be created. */ rollingUpgradePolicy?: pulumi.Input; /** * Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Possible values are `true` or `false`. * * > **Note:** `singlePlacementGroup` behaves differently for Flexible orchestration Virtual Machine Scale Sets than it does for Uniform orchestration Virtual Machine Scale Sets. It is recommended that you do not define the `singlePlacementGroup` field in your configuration file as the service will determine what this value should be based off of the value contained within the `skuName` field of your configuration file. You may set the `singlePlacementGroup` field to `true`, however once you set it to `false` you will not be able to revert it back to `true`. */ singlePlacementGroup?: pulumi.Input; /** * The `name` of the SKU to be used by this Virtual Machine Scale Set. Valid values include: any of the [General purpose](https://docs.microsoft.com/azure/virtual-machines/sizes-general), [Compute optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-compute), [Memory optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-memory), [Storage optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-storage), [GPU optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-gpu), [FPGA optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-field-programmable-gate-arrays), [High performance](https://docs.microsoft.com/azure/virtual-machines/sizes-hpc), or [Previous generation](https://docs.microsoft.com/azure/virtual-machines/sizes-previous-gen) virtual machine SKUs. */ skuName?: pulumi.Input; /** * An `skuProfile` block as defined below. Changing this forces a new resource to be created. * * > **Note:** If `skuProfile` is specified the `skuName` must be set to `Mix`. */ skuProfile?: pulumi.Input; /** * The ID of an Image which each Virtual Machine in this Scale Set should be based on. 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. */ sourceImageId?: pulumi.Input; /** * A `sourceImageReference` block as defined below. */ sourceImageReference?: pulumi.Input; /** * A mapping of tags which should be assigned to this Virtual Machine Scale Set. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `terminationNotification` block as defined below. */ terminationNotification?: pulumi.Input; /** * The Unique ID for the Virtual Machine Scale Set. */ uniqueId?: pulumi.Input; /** * Specifies how upgrades (e.g. changing the Image/SKU) should be performed to Virtual Machine Instances. Possible values are `Automatic`, `Manual` and `Rolling`. Defaults to `Manual`. Changing this forces a new resource to be created. */ upgradeMode?: pulumi.Input; /** * The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set. */ userDataBase64?: pulumi.Input; /** * Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** This can only be set to `true` when one or more `zones` are configured. */ zoneBalance?: pulumi.Input; /** * Specifies a list of Availability Zones across which the Virtual Machine Scale Set will create instances. * * > **Note:** Updating `zones` to remove an existing zone forces a new Virtual Machine Scale Set to be created. * * > **Note:** Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview). */ zones?: pulumi.Input[]>; } /** * The set of arguments for constructing a OrchestratedVirtualMachineScaleSet resource. */ export interface OrchestratedVirtualMachineScaleSetArgs { /** * An `additionalCapabilities` block as defined below. */ additionalCapabilities?: pulumi.Input; /** * An `automaticInstanceRepair` block as defined below. * * > **Note:** To enable the `automaticInstanceRepair`, the Orchestrated Virtual Machine Scale Set must have a valid [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension). */ automaticInstanceRepair?: pulumi.Input; /** * A `bootDiagnostics` block as defined below. */ bootDiagnostics?: pulumi.Input; /** * Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created. * * > **Note:** `capacityReservationGroupId` cannot be specified with `proximityPlacementGroupId` * * > **Note:** If `capacityReservationGroupId` is specified the `singlePlacementGroup` must be set to `false`. */ capacityReservationGroupId?: pulumi.Input; /** * One or more `dataDisk` blocks as defined below. */ dataDisks?: pulumi.Input[]>; /** * Should disks attached to this Virtual Machine Scale Set be encrypted by enabling Encryption at Host? */ encryptionAtHostEnabled?: pulumi.Input; /** * The Policy which should be used by Spot Virtual Machines that are Evicted from the Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. */ evictionPolicy?: pulumi.Input; /** * Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Virtual Machine Scale Set to be created. * * > **Note:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field. */ extensionOperationsEnabled?: pulumi.Input; /** * One or more `extension` blocks as defined below */ extensions?: pulumi.Input[]>; /** * Specifies the time alloted 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`. */ extensionsTimeBudget?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The number of Virtual Machines in the Virtual Machine Scale Set. */ instances?: pulumi.Input; /** * Specifies the type of on-premise license (also known as Azure Hybrid Use Benefit) which should be used for this Virtual Machine Scale Set. Possible values are `None`, `Windows_Client` and `Windows_Server`. */ licenseType?: pulumi.Input; /** * The Azure location where the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the eviction_policy. Defaults to `-1`, which means that each Virtual Machine in the Scale Set should not be evicted for price reasons. */ maxBidPrice?: pulumi.Input; /** * The name of the Virtual Machine Scale Set. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set. Possible values are `2020-11-01` and `2022-11-01`. Defaults to `2020-11-01`. */ networkApiVersion?: pulumi.Input; /** * One or more `networkInterface` blocks as defined below. */ networkInterfaces?: pulumi.Input[]>; /** * An `osDisk` block as defined below. */ osDisk?: pulumi.Input; /** * An `osProfile` block as defined below. */ osProfile?: pulumi.Input; /** * A `plan` block as documented below. Changing this forces a new resource to be created. */ plan?: pulumi.Input; /** * Specifies the number of fault domains that are used by this Virtual Machine Scale Set. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformFaultDomainCount: pulumi.Input; /** * The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource. */ priority?: pulumi.Input; /** * a `priorityMix` block as defined below */ priorityMix?: pulumi.Input; /** * The ID of the Proximity Placement Group which the Virtual Machine should be assigned to. Changing this forces a new resource to be created. */ proximityPlacementGroupId?: pulumi.Input; /** * The name of the Resource Group in which the Virtual Machine Scale Set should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `rollingUpgradePolicy` block as defined below. This is Required when `upgradeMode` is set to `Rolling` and cannot be specified when `upgradeMode` is set to `Manual`. Changing this forces a new resource to be created. */ rollingUpgradePolicy?: pulumi.Input; /** * Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Possible values are `true` or `false`. * * > **Note:** `singlePlacementGroup` behaves differently for Flexible orchestration Virtual Machine Scale Sets than it does for Uniform orchestration Virtual Machine Scale Sets. It is recommended that you do not define the `singlePlacementGroup` field in your configuration file as the service will determine what this value should be based off of the value contained within the `skuName` field of your configuration file. You may set the `singlePlacementGroup` field to `true`, however once you set it to `false` you will not be able to revert it back to `true`. */ singlePlacementGroup?: pulumi.Input; /** * The `name` of the SKU to be used by this Virtual Machine Scale Set. Valid values include: any of the [General purpose](https://docs.microsoft.com/azure/virtual-machines/sizes-general), [Compute optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-compute), [Memory optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-memory), [Storage optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-storage), [GPU optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-gpu), [FPGA optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-field-programmable-gate-arrays), [High performance](https://docs.microsoft.com/azure/virtual-machines/sizes-hpc), or [Previous generation](https://docs.microsoft.com/azure/virtual-machines/sizes-previous-gen) virtual machine SKUs. */ skuName?: pulumi.Input; /** * An `skuProfile` block as defined below. Changing this forces a new resource to be created. * * > **Note:** If `skuProfile` is specified the `skuName` must be set to `Mix`. */ skuProfile?: pulumi.Input; /** * The ID of an Image which each Virtual Machine in this Scale Set should be based on. 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. */ sourceImageId?: pulumi.Input; /** * A `sourceImageReference` block as defined below. */ sourceImageReference?: pulumi.Input; /** * A mapping of tags which should be assigned to this Virtual Machine Scale Set. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `terminationNotification` block as defined below. */ terminationNotification?: pulumi.Input; /** * Specifies how upgrades (e.g. changing the Image/SKU) should be performed to Virtual Machine Instances. Possible values are `Automatic`, `Manual` and `Rolling`. Defaults to `Manual`. Changing this forces a new resource to be created. */ upgradeMode?: pulumi.Input; /** * The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set. */ userDataBase64?: pulumi.Input; /** * Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created. * * > **Note:** This can only be set to `true` when one or more `zones` are configured. */ zoneBalance?: pulumi.Input; /** * Specifies a list of Availability Zones across which the Virtual Machine Scale Set will create instances. * * > **Note:** Updating `zones` to remove an existing zone forces a new Virtual Machine Scale Set to be created. * * > **Note:** Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview). */ zones?: pulumi.Input[]>; }