Pool Args
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<AzureDevOpsOrganizationProfileArgs>? = 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. Azure REST API version: 2023-10-30-preview.
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
{
ResourceId = "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest",
},
},
Kind = "Vmss",
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
{
Url = "https://mseng.visualstudio.com",
},
},
},
PoolName = "pool",
ProvisioningState = "Succeeded",
ResourceGroupName = "rg",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/devopsinfrastructure/v2"
"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.StatelessAgentProfile{
Kind: "Stateless",
},
DevCenterProjectResourceId: pulumi.String("/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES"),
FabricProfile: interface{}{
Images: devopsinfrastructure.PoolImageArray{
&devopsinfrastructure.PoolImageArgs{
ResourceId: pulumi.String("/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest"),
},
},
Kind: pulumi.String("Vmss"),
Sku: &devopsinfrastructure.DevOpsAzureSkuArgs{
Name: pulumi.String("Standard_D4ads_v5"),
},
},
Location: pulumi.String("eastus"),
MaximumConcurrency: pulumi.Int(10),
OrganizationProfile: interface{}{
Kind: pulumi.String("AzureDevOps"),
Organizations: devopsinfrastructure.OrganizationArray{
&devopsinfrastructure.OrganizationArgs{
Url: pulumi.String("https://mseng.visualstudio.com"),
},
},
},
PoolName: pulumi.String("pool"),
ProvisioningState: pulumi.String("Succeeded"),
ResourceGroupName: pulumi.String("rg"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
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 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(Map.of("kind", "Stateless"))
.devCenterProjectResourceId("/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES")
.fabricProfile(Map.ofEntries(
Map.entry("images", Map.of("resourceId", "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest")),
Map.entry("kind", "Vmss"),
Map.entry("sku", Map.of("name", "Standard_D4ads_v5"))
))
.location("eastus")
.maximumConcurrency(10)
.organizationProfile(Map.ofEntries(
Map.entry("kind", "AzureDevOps"),
Map.entry("organizations", Map.of("url", "https://mseng.visualstudio.com"))
))
.poolName("pool")
.provisioningState("Succeeded")
.resourceGroupName("rg")
.build());
}
}Content copied to clipboard
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}Content copied to clipboard
Constructors
Link copied to clipboard
fun PoolArgs(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<AzureDevOpsOrganizationProfileArgs>? = null, poolName: Output<String>? = null, provisioningState: Output<Either<String, ProvisioningState>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)