import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Virtual Desktop Scaling Plan. * * ## Disclaimers * * > **Note:** Scaling Plans are currently in preview and are only supported in a limited number of regions. Both the Scaling Plan and any referenced Host Pools must be deployed in a supported region. [Autoscale (preview) for Azure Virtual Desktop host pools](https://docs.microsoft.com/azure/virtual-desktop/autoscale-scaling-plan). * * > **Note:** Scaling Plans require specific permissions to be granted to the Windows Virtual Desktop application before a 'host_pool' can be configured. [Required Permissions for Scaling Plans](https://docs.microsoft.com/azure/virtual-desktop/autoscale-scaling-plan#create-a-custom-rbac-role). * * ## Import * * Virtual Desktop Scaling Plans can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:desktopvirtualization/scalingPlan:ScalingPlan example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.DesktopVirtualization/scalingPlans/plan1 * ``` */ export declare class ScalingPlan extends pulumi.CustomResource { /** * Get an existing ScalingPlan 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?: ScalingPlanState, opts?: pulumi.CustomResourceOptions): ScalingPlan; /** * Returns true if the given object is an instance of ScalingPlan. 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 ScalingPlan; /** * A description of the Scaling Plan. */ readonly description: pulumi.Output; /** * The name of the tag associated with the VMs you want to exclude from autoscaling. */ readonly exclusionTag: pulumi.Output; /** * Friendly name of the Scaling Plan. */ readonly friendlyName: pulumi.Output; /** * One or more `hostPool` blocks as defined below. */ readonly hostPools: pulumi.Output; /** * The Azure Region where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Virtual Desktop Scaling Plan . Changing this forces a new Virtual Desktop Scaling Plan to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ readonly resourceGroupName: pulumi.Output; /** * One or more `schedule` blocks as defined below. */ readonly schedules: pulumi.Output; /** * A mapping of tags which should be assigned to the Virtual Desktop Scaling Plan . */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the Time Zone which should be used by the Scaling Plan for time based events, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). */ readonly timeZone: pulumi.Output; /** * Create a ScalingPlan 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: ScalingPlanArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScalingPlan resources. */ export interface ScalingPlanState { /** * A description of the Scaling Plan. */ description?: pulumi.Input; /** * The name of the tag associated with the VMs you want to exclude from autoscaling. */ exclusionTag?: pulumi.Input; /** * Friendly name of the Scaling Plan. */ friendlyName?: pulumi.Input; /** * One or more `hostPool` blocks as defined below. */ hostPools?: pulumi.Input[]>; /** * The Azure Region where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ location?: pulumi.Input; /** * The name which should be used for this Virtual Desktop Scaling Plan . Changing this forces a new Virtual Desktop Scaling Plan to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ resourceGroupName?: pulumi.Input; /** * One or more `schedule` blocks as defined below. */ schedules?: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Virtual Desktop Scaling Plan . */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the Time Zone which should be used by the Scaling Plan for time based events, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). */ timeZone?: pulumi.Input; } /** * The set of arguments for constructing a ScalingPlan resource. */ export interface ScalingPlanArgs { /** * A description of the Scaling Plan. */ description?: pulumi.Input; /** * The name of the tag associated with the VMs you want to exclude from autoscaling. */ exclusionTag?: pulumi.Input; /** * Friendly name of the Scaling Plan. */ friendlyName?: pulumi.Input; /** * One or more `hostPool` blocks as defined below. */ hostPools?: pulumi.Input[]>; /** * The Azure Region where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ location?: pulumi.Input; /** * The name which should be used for this Virtual Desktop Scaling Plan . Changing this forces a new Virtual Desktop Scaling Plan to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Virtual Desktop Scaling Plan should exist. Changing this forces a new Virtual Desktop Scaling Plan to be created. */ resourceGroupName: pulumi.Input; /** * One or more `schedule` blocks as defined below. */ schedules: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Virtual Desktop Scaling Plan . */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the Time Zone which should be used by the Scaling Plan for time based events, [the possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/). */ timeZone: pulumi.Input; }