import * as pulumi from "@pulumi/pulumi"; /** * Manages a Dev Center Project Pool. * * ## 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 exampleDevCenter = new azure.devcenter.DevCenter("example", { * name: "example-dc", * resourceGroupName: example.name, * location: example.location, * identity: { * type: "SystemAssigned", * }, * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-vnet", * addressSpaces: ["10.0.0.0/16"], * location: example.location, * resourceGroupName: example.name, * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "internal", * resourceGroupName: example.name, * virtualNetworkName: exampleVirtualNetwork.name, * addressPrefixes: ["10.0.2.0/24"], * }); * const exampleNetworkConnection = new azure.devcenter.NetworkConnection("example", { * name: "example-dcnc", * resourceGroupName: example.name, * location: example.location, * subnetId: exampleSubnet.id, * domainJoinType: "AzureADJoin", * }); * const exampleAttachedNetwork = new azure.devcenter.AttachedNetwork("example", { * name: "example-dcet", * devCenterId: exampleDevCenter.id, * networkConnectionId: exampleNetworkConnection.id, * }); * const exampleProject = new azure.devcenter.Project("example", { * name: "example-dcp", * resourceGroupName: example.name, * location: example.location, * devCenterId: exampleDevCenter.id, * }); * const exampleDevBoxDefinition = new azure.devcenter.DevBoxDefinition("example", { * name: "example-dcet", * location: example.location, * devCenterId: exampleDevCenter.id, * imageReferenceId: pulumi.interpolate`${exampleDevCenter.id}/galleries/default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win10-m365-gen2`, * skuName: "general_i_8c32gb256ssd_v2", * }); * const exampleProjectPool = new azure.devcenter.ProjectPool("example", { * name: "example-dcpl", * location: example.location, * devCenterProjectId: exampleProject.id, * devBoxDefinitionName: exampleDevBoxDefinition.name, * localAdministratorEnabled: true, * devCenterAttachedNetworkName: exampleAttachedNetwork.name, * stopOnDisconnectGracePeriodMinutes: 60, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DevCenter` - 2025-02-01 * * ## Import * * An existing Dev Center Project Pool can be imported into Pulumi using the `resource id`, e.g. * * ```sh * $ pulumi import azure:devcenter/projectPool:ProjectPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevCenter/projects/project1/pools/pool1 * ``` */ export declare class ProjectPool extends pulumi.CustomResource { /** * Get an existing ProjectPool 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?: ProjectPoolState, opts?: pulumi.CustomResourceOptions): ProjectPool; /** * Returns true if the given object is an instance of ProjectPool. 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 ProjectPool; /** * The name of the Dev Center Dev Box Definition. */ readonly devBoxDefinitionName: pulumi.Output; /** * The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool. */ readonly devCenterAttachedNetworkName: pulumi.Output; /** * The ID of the associated Dev Center Project. Changing this forces a new resource to be created. */ readonly devCenterProjectId: pulumi.Output; /** * Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box. */ readonly localAdministratorEnabled: pulumi.Output; /** * The Azure Region where the Dev Center Project Pool should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * A list of the regions of the managed Virtual Network. When specified, the Dev Center Project Pool will use a Microsoft managed network. * * > **Note:** Currently only one region can be specified for `managedVirtualNetworkRegions`. */ readonly managedVirtualNetworkRegions: pulumi.Output; /** * Specifies the name of this Dev Center Project Pool. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies whether Dev Boxes in the Pool will have SSO enabled or disabled. Defaults to `false`. */ readonly singleSignOnEnabled: pulumi.Output; /** * The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected. Possible values are between `60` and `480`. */ readonly stopOnDisconnectGracePeriodMinutes: pulumi.Output; /** * A mapping of tags which should be assigned to the Dev Center Project Pool. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a ProjectPool 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: ProjectPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProjectPool resources. */ export interface ProjectPoolState { /** * The name of the Dev Center Dev Box Definition. */ devBoxDefinitionName?: pulumi.Input; /** * The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool. */ devCenterAttachedNetworkName?: pulumi.Input; /** * The ID of the associated Dev Center Project. Changing this forces a new resource to be created. */ devCenterProjectId?: pulumi.Input; /** * Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box. */ localAdministratorEnabled?: pulumi.Input; /** * The Azure Region where the Dev Center Project Pool should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * A list of the regions of the managed Virtual Network. When specified, the Dev Center Project Pool will use a Microsoft managed network. * * > **Note:** Currently only one region can be specified for `managedVirtualNetworkRegions`. */ managedVirtualNetworkRegions?: pulumi.Input; /** * Specifies the name of this Dev Center Project Pool. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies whether Dev Boxes in the Pool will have SSO enabled or disabled. Defaults to `false`. */ singleSignOnEnabled?: pulumi.Input; /** * The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected. Possible values are between `60` and `480`. */ stopOnDisconnectGracePeriodMinutes?: pulumi.Input; /** * A mapping of tags which should be assigned to the Dev Center Project Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a ProjectPool resource. */ export interface ProjectPoolArgs { /** * The name of the Dev Center Dev Box Definition. */ devBoxDefinitionName: pulumi.Input; /** * The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool. */ devCenterAttachedNetworkName: pulumi.Input; /** * The ID of the associated Dev Center Project. Changing this forces a new resource to be created. */ devCenterProjectId: pulumi.Input; /** * Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box. */ localAdministratorEnabled: pulumi.Input; /** * The Azure Region where the Dev Center Project Pool should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * A list of the regions of the managed Virtual Network. When specified, the Dev Center Project Pool will use a Microsoft managed network. * * > **Note:** Currently only one region can be specified for `managedVirtualNetworkRegions`. */ managedVirtualNetworkRegions?: pulumi.Input; /** * Specifies the name of this Dev Center Project Pool. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies whether Dev Boxes in the Pool will have SSO enabled or disabled. Defaults to `false`. */ singleSignOnEnabled?: pulumi.Input; /** * The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected. Possible values are between `60` and `480`. */ stopOnDisconnectGracePeriodMinutes?: pulumi.Input; /** * A mapping of tags which should be assigned to the Dev Center Project Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }