AgentPool

The agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent pool. API Version: 2019-06-01-preview.

Example Usage

AgentPools_Create

using System.Collections.Generic;
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 = "Linux",
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
Tags =
{
{ "key", "value" },
},
Tier = "S1",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native/sdk/go/azure/containerregistry"
"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("Linux"),
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/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26

Properties

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

The count of agent machine

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

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

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val os: Output<String>?

The OS of agent machine

Link copied to clipboard

The provisioning state of this agent pool

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

The tags of the resource.

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

The Tier of agent machine

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The Virtual Network Subnet Resource Id of the agent machine