AgentPoolArgs

data class AgentPoolArgs(val agentPoolName: Output<String>? = null, val count: Output<Int>? = null, val location: Output<String>? = null, val os: Output<Either<String, OS>>? = null, val registryName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tier: Output<String>? = null, val virtualNetworkSubnetResourceId: Output<String>? = null) : ConvertibleToJava<AgentPoolArgs>

The agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent pool. Uses Azure REST API version 2019-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2019-06-01-preview.

Example Usage

AgentPools_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var agentPool = new AzureNative.ContainerRegistry.AgentPool("agentPool", new()
{
AgentPoolName = "myAgentPool",
Count = 1,
Location = "WESTUS",
Os = AzureNative.ContainerRegistry.OS.Linux,
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
Tags =
{
{ "key", "value" },
},
Tier = "S1",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewAgentPool(ctx, "agentPool", &containerregistry.AgentPoolArgs{
AgentPoolName: pulumi.String("myAgentPool"),
Count: pulumi.Int(1),
Location: pulumi.String("WESTUS"),
Os: pulumi.String(containerregistry.OSLinux),
RegistryName: pulumi.String("myRegistry"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
Tier: pulumi.String("S1"),
})
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.containerregistry.AgentPool;
import com.pulumi.azurenative.containerregistry.AgentPoolArgs;
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 agentPool = new AgentPool("agentPool", AgentPoolArgs.builder()
.agentPoolName("myAgentPool")
.count(1)
.location("WESTUS")
.os("Linux")
.registryName("myRegistry")
.resourceGroupName("myResourceGroup")
.tags(Map.of("key", "value"))
.tier("S1")
.build());
}
}

Import

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

$ pulumi import azure-native:containerregistry:AgentPool myAgentPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}

Constructors

Link copied to clipboard
constructor(agentPoolName: Output<String>? = null, count: Output<Int>? = null, location: Output<String>? = null, os: Output<Either<String, OS>>? = null, registryName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, tier: Output<String>? = null, virtualNetworkSubnetResourceId: Output<String>? = null)

Properties

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

The name of the agent pool.

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

The count of agent machine

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

The location of the resource. This cannot be changed after the resource is created.

Link copied to clipboard
val os: Output<Either<String, OS>>? = null

The OS of agent machine

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

The name of the container registry.

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

The name of the resource group to which the container registry belongs.

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

The tags of the resource.

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

The Tier of agent machine

Link copied to clipboard

The Virtual Network Subnet Resource Id of the agent machine

Functions

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