import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Standby Pool for Virtual Machine Scale Sets. * > **Note:** please follow the prerequisites mentioned in this [article](https://learn.microsoft.com/azure/virtual-machine-scale-sets/standby-pools-create?tabs=portal#prerequisites) before using this resource. * * ## 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-ovmss", * location: example.location, * resourceGroupName: example.name, * platformFaultDomainCount: 1, * zones: ["1"], * }); * const exampleScaleSetStandbyPool = new azure.compute.ScaleSetStandbyPool("example", { * name: "example-spsvmp", * resourceGroupName: example.name, * location: "West Europe", * attachedVirtualMachineScaleSetId: exampleOrchestratedVirtualMachineScaleSet.id, * virtualMachineState: "Running", * elasticityProfile: { * maxReadyCapacity: 10, * minReadyCapacity: 5, * }, * tags: { * key: "value", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StandbyPool` - 2025-03-01 * * ## Import * * Standby Pool can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:compute/scaleSetStandbyPool:ScaleSetStandbyPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/standbyVirtualMachinePool1 * ``` */ export declare class ScaleSetStandbyPool extends pulumi.CustomResource { /** * Get an existing ScaleSetStandbyPool 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?: ScaleSetStandbyPoolState, opts?: pulumi.CustomResourceOptions): ScaleSetStandbyPool; /** * Returns true if the given object is an instance of ScaleSetStandbyPool. 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 ScaleSetStandbyPool; /** * Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */ readonly attachedVirtualMachineScaleSetId: pulumi.Output; /** * An `elasticityProfile` block as defined below. */ readonly elasticityProfile: pulumi.Output; /** * Specifies the Azure Region where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ readonly location: pulumi.Output; /** * Specifies the name which should be used for this Standby Pool. Changing this forces a new Standby Pool to be created. */ readonly name: pulumi.Output; /** * Specifies the name of the Resource Group where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the Standby Pool. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the desired state of virtual machines in the pool. Possible values are `Deallocated`, `Hibernated` and `Running`. */ readonly virtualMachineState: pulumi.Output; /** * Create a ScaleSetStandbyPool 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: ScaleSetStandbyPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScaleSetStandbyPool resources. */ export interface ScaleSetStandbyPoolState { /** * Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */ attachedVirtualMachineScaleSetId?: pulumi.Input; /** * An `elasticityProfile` block as defined below. */ elasticityProfile?: pulumi.Input; /** * Specifies the Azure Region where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Standby Pool. Changing this forces a new Standby Pool to be created. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Standby Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the desired state of virtual machines in the pool. Possible values are `Deallocated`, `Hibernated` and `Running`. */ virtualMachineState?: pulumi.Input; } /** * The set of arguments for constructing a ScaleSetStandbyPool resource. */ export interface ScaleSetStandbyPoolArgs { /** * Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */ attachedVirtualMachineScaleSetId: pulumi.Input; /** * An `elasticityProfile` block as defined below. */ elasticityProfile: pulumi.Input; /** * Specifies the Azure Region where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Standby Pool. Changing this forces a new Standby Pool to be created. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the Standby Pool should exist. Changing this forces a new Standby Pool to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Standby Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the desired state of virtual machines in the pool. Possible values are `Deallocated`, `Hibernated` and `Running`. */ virtualMachineState: pulumi.Input; }