PoolArgs

data class PoolArgs(val agentProfile: Output<Either<StatefulArgs, StatelessAgentProfileArgs>>? = null, val devCenterProjectResourceId: Output<String>? = null, val fabricProfile: Output<VmssFabricProfileArgs>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val maximumConcurrency: Output<Int>? = null, val organizationProfile: Output<Either<AzureDevOpsOrganizationProfileArgs, GitHubOrganizationProfileArgs>>? = null, val poolName: Output<String>? = null, val provisioningState: Output<Either<String, ProvisioningState>>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PoolArgs>

Concrete tracked resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2025-01-21. In version 2.x of the Azure Native provider, it used API version 2023-10-30-preview. Other available API versions: 2023-10-30-preview, 2023-12-13-preview, 2024-03-26-preview, 2024-04-04-preview, 2024-10-19. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native devopsinfrastructure [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Pools_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var pool = new AzureNative.DevOpsInfrastructure.Pool("pool", new()
{
AgentProfile = new AzureNative.DevOpsInfrastructure.Inputs.StatelessAgentProfileArgs
{
Kind = "Stateless",
},
DevCenterProjectResourceId = "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES",
FabricProfile = new AzureNative.DevOpsInfrastructure.Inputs.VmssFabricProfileArgs
{
Images = new[]
{
new AzureNative.DevOpsInfrastructure.Inputs.PoolImageArgs
{
EphemeralType = AzureNative.DevOpsInfrastructure.EphemeralType.Automatic,
ResourceId = "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest",
},
},
Kind = "Vmss",
OsProfile = new AzureNative.DevOpsInfrastructure.Inputs.OsProfileArgs
{
SecretsManagementSettings = new AzureNative.DevOpsInfrastructure.Inputs.SecretsManagementSettingsArgs
{
CertificateStoreName = AzureNative.DevOpsInfrastructure.CertificateStoreNameOption.Root,
KeyExportable = false,
ObservedCertificates = new[]
{
"https://abc.vault.azure.net/secrets/one",
},
},
},
Sku = new AzureNative.DevOpsInfrastructure.Inputs.DevOpsAzureSkuArgs
{
Name = "Standard_D4ads_v5",
},
},
Location = "eastus",
MaximumConcurrency = 10,
OrganizationProfile = new AzureNative.DevOpsInfrastructure.Inputs.AzureDevOpsOrganizationProfileArgs
{
Kind = "AzureDevOps",
Organizations = new[]
{
new AzureNative.DevOpsInfrastructure.Inputs.OrganizationArgs
{
OpenAccess = true,
Url = "https://mseng.visualstudio.com",
},
},
},
PoolName = "pool",
ProvisioningState = AzureNative.DevOpsInfrastructure.ProvisioningState.Succeeded,
ResourceGroupName = "rg",
});
});
package main
import (
devopsinfrastructure "github.com/pulumi/pulumi-azure-native-sdk/devopsinfrastructure/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devopsinfrastructure.NewPool(ctx, "pool", &devopsinfrastructure.PoolArgs{
AgentProfile: &devopsinfrastructure.StatelessAgentProfileArgs{
Kind: pulumi.String("Stateless"),
},
DevCenterProjectResourceId: pulumi.String("/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES"),
FabricProfile: &devopsinfrastructure.VmssFabricProfileArgs{
Images: devopsinfrastructure.PoolImageArray{
&devopsinfrastructure.PoolImageArgs{
EphemeralType: pulumi.String(devopsinfrastructure.EphemeralTypeAutomatic),
ResourceId: pulumi.String("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"),
},
},
Kind: pulumi.String("Vmss"),
OsProfile: &devopsinfrastructure.OsProfileArgs{
SecretsManagementSettings: &devopsinfrastructure.SecretsManagementSettingsArgs{
CertificateStoreName: pulumi.String(devopsinfrastructure.CertificateStoreNameOptionRoot),
KeyExportable: pulumi.Bool(false),
ObservedCertificates: pulumi.StringArray{
pulumi.String("https://abc.vault.azure.net/secrets/one"),
},
},
},
Sku: &devopsinfrastructure.DevOpsAzureSkuArgs{
Name: pulumi.String("Standard_D4ads_v5"),
},
},
Location: pulumi.String("eastus"),
MaximumConcurrency: pulumi.Int(10),
OrganizationProfile: &devopsinfrastructure.AzureDevOpsOrganizationProfileArgs{
Kind: pulumi.String("AzureDevOps"),
Organizations: devopsinfrastructure.OrganizationArray{
&devopsinfrastructure.OrganizationArgs{
OpenAccess: pulumi.Bool(true),
Url: pulumi.String("https://mseng.visualstudio.com"),
},
},
},
PoolName: pulumi.String("pool"),
ProvisioningState: pulumi.String(devopsinfrastructure.ProvisioningStateSucceeded),
ResourceGroupName: pulumi.String("rg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devopsinfrastructure.Pool;
import com.pulumi.azurenative.devopsinfrastructure.PoolArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.VmssFabricProfileArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.OsProfileArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.SecretsManagementSettingsArgs;
import com.pulumi.azurenative.devopsinfrastructure.inputs.DevOpsAzureSkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var pool = new Pool("pool", PoolArgs.builder()
.agentProfile(StatelessAgentProfileArgs.builder()
.kind("Stateless")
.build())
.devCenterProjectResourceId("/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES")
.fabricProfile(VmssFabricProfileArgs.builder()
.images(PoolImageArgs.builder()
.ephemeralType("Automatic")
.resourceId("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest")
.build())
.kind("Vmss")
.osProfile(OsProfileArgs.builder()
.secretsManagementSettings(SecretsManagementSettingsArgs.builder()
.certificateStoreName("Root")
.keyExportable(false)
.observedCertificates("https://abc.vault.azure.net/secrets/one")
.build())
.build())
.sku(DevOpsAzureSkuArgs.builder()
.name("Standard_D4ads_v5")
.build())
.build())
.location("eastus")
.maximumConcurrency(10)
.organizationProfile(AzureDevOpsOrganizationProfileArgs.builder()
.kind("AzureDevOps")
.organizations(OrganizationArgs.builder()
.openAccess(true)
.url("https://mseng.visualstudio.com")
.build())
.build())
.poolName("pool")
.provisioningState("Succeeded")
.resourceGroupName("rg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devopsinfrastructure:Pool myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}

Constructors

Link copied to clipboard
constructor(agentProfile: Output<Either<StatefulArgs, StatelessAgentProfileArgs>>? = null, devCenterProjectResourceId: Output<String>? = null, fabricProfile: Output<VmssFabricProfileArgs>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, maximumConcurrency: Output<Int>? = null, organizationProfile: Output<Either<AzureDevOpsOrganizationProfileArgs, GitHubOrganizationProfileArgs>>? = null, poolName: Output<String>? = null, provisioningState: Output<Either<String, ProvisioningState>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

Defines how the machine will be handled once it executed a job.

Link copied to clipboard
val devCenterProjectResourceId: Output<String>? = null

The resource id of the DevCenter Project the pool belongs to.

Link copied to clipboard

Defines the type of fabric the agent will run on.

Link copied to clipboard

The managed service identities assigned to this resource.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val maximumConcurrency: Output<Int>? = null

Defines how many resources can there be created at any given time.

Link copied to clipboard

Defines the organization in which the pool will be used.

Link copied to clipboard
val poolName: Output<String>? = null

Name of the pool. It needs to be globally unique.

Link copied to clipboard
val provisioningState: Output<Either<String, ProvisioningState>>? = null

The status of the current operation.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): PoolArgs