Pool Args
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
Properties
Defines how the machine will be handled once it executed a job.
The resource id of the DevCenter Project the pool belongs to.
Defines the type of fabric the agent will run on.
The managed service identities assigned to this resource.
Defines how many resources can there be created at any given time.
Defines the organization in which the pool will be used.
The status of the current operation.
The name of the resource group. The name is case insensitive.