import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Managed DevOps 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-devcenter", * resourceGroupName: example.name, * location: example.location, * }); * const exampleProject = new azure.devcenter.Project("example", { * devCenterId: exampleDevCenter.id, * location: example.location, * name: "example", * resourceGroupName: example.name, * }); * const exampleManagedDevOpsPool = new azure.devcenter.ManagedDevOpsPool("example", { * name: "example-manageddevopspools", * resourceGroupName: example.name, * location: example.location, * devCenterProjectId: exampleProject.id, * maximumConcurrency: 1, * azureDevopsOrganization: { * organizations: [{ * parallelism: 1, * url: "https://dev.azure.com/example", * }], * }, * statelessAgent: {}, * virtualMachineScaleSetFabric: { * skuName: "Standard_D2ads_v5", * images: [{ * wellKnownImageName: "ubuntu-24.04/buffer", * }], * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DevOpsInfrastructure` - 2025-09-20 * * ## Import * * Managed DevOps Pool can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:devcenter/managedDevOpsPool:ManagedDevOpsPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevOpsInfrastructure/pools/pool1 * ``` */ export declare class ManagedDevOpsPool extends pulumi.CustomResource { /** * Get an existing ManagedDevOpsPool 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?: ManagedDevOpsPoolState, opts?: pulumi.CustomResourceOptions): ManagedDevOpsPool; /** * Returns true if the given object is an instance of ManagedDevOpsPool. 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 ManagedDevOpsPool; /** * An `azureDevopsOrganization` block as defined below. */ readonly azureDevopsOrganization: pulumi.Output; /** * The ID of the Dev Center project. */ readonly devCenterProjectId: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Azure Region where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Defines how many resources can there be created at any given time. Possible values range between `1` and `10000`. */ readonly maximumConcurrency: pulumi.Output; /** * The name which should be used for this Managed DevOps Pool. The name must be between 3 and 44 characters, can only include alphanumeric characters, periods (`.`) and hyphens (`-`), must start with an alphanumeric character and cannot end with a period (`.`). Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `statefulAgent` block as defined below. */ readonly statefulAgent: pulumi.Output; /** * A `statelessAgent` block as defined below. * * > **Note:** Exactly one of `statefulAgent` or `statelessAgent` must be specified. */ readonly statelessAgent: pulumi.Output; /** * A mapping of tags which should be assigned to the Managed DevOps Pool. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A `virtualMachineScaleSetFabric` block as defined below. */ readonly virtualMachineScaleSetFabric: pulumi.Output; /** * Specifies the work folder for every agent in the pool. */ readonly workFolder: pulumi.Output; /** * Create a ManagedDevOpsPool 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: ManagedDevOpsPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedDevOpsPool resources. */ export interface ManagedDevOpsPoolState { /** * An `azureDevopsOrganization` block as defined below. */ azureDevopsOrganization?: pulumi.Input; /** * The ID of the Dev Center project. */ devCenterProjectId?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Defines how many resources can there be created at any given time. Possible values range between `1` and `10000`. */ maximumConcurrency?: pulumi.Input; /** * The name which should be used for this Managed DevOps Pool. The name must be between 3 and 44 characters, can only include alphanumeric characters, periods (`.`) and hyphens (`-`), must start with an alphanumeric character and cannot end with a period (`.`). Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `statefulAgent` block as defined below. */ statefulAgent?: pulumi.Input; /** * A `statelessAgent` block as defined below. * * > **Note:** Exactly one of `statefulAgent` or `statelessAgent` must be specified. */ statelessAgent?: pulumi.Input; /** * A mapping of tags which should be assigned to the Managed DevOps Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `virtualMachineScaleSetFabric` block as defined below. */ virtualMachineScaleSetFabric?: pulumi.Input; /** * Specifies the work folder for every agent in the pool. */ workFolder?: pulumi.Input; } /** * The set of arguments for constructing a ManagedDevOpsPool resource. */ export interface ManagedDevOpsPoolArgs { /** * An `azureDevopsOrganization` block as defined below. */ azureDevopsOrganization: pulumi.Input; /** * The ID of the Dev Center project. */ devCenterProjectId: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Defines how many resources can there be created at any given time. Possible values range between `1` and `10000`. */ maximumConcurrency: pulumi.Input; /** * The name which should be used for this Managed DevOps Pool. The name must be between 3 and 44 characters, can only include alphanumeric characters, periods (`.`) and hyphens (`-`), must start with an alphanumeric character and cannot end with a period (`.`). Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Managed DevOps Pool should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `statefulAgent` block as defined below. */ statefulAgent?: pulumi.Input; /** * A `statelessAgent` block as defined below. * * > **Note:** Exactly one of `statefulAgent` or `statelessAgent` must be specified. */ statelessAgent?: pulumi.Input; /** * A mapping of tags which should be assigned to the Managed DevOps Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `virtualMachineScaleSetFabric` block as defined below. */ virtualMachineScaleSetFabric: pulumi.Input; /** * Specifies the work folder for every agent in the pool. */ workFolder?: pulumi.Input; }