Agent Pool
The agentPool resource definition Uses Azure REST API version 2022-09-01-preview.
Example Usage
PutAgentPool
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var agentPool = new AzureNative.HybridContainerService.AgentPool("agentPool", new()
{
AgentPoolName = "test-hybridaksnodepool",
Count = 1,
Location = "westus",
OsType = AzureNative.HybridContainerService.OsType.Linux,
ResourceGroupName = "test-arcappliance-resgrp",
ResourceName = "test-hybridakscluster",
VmSize = "Standard_A4_v2",
});
});
Content copied to clipboard
package main
import (
hybridcontainerservice "github.com/pulumi/pulumi-azure-native-sdk/hybridcontainerservice/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridcontainerservice.NewAgentPool(ctx, "agentPool", &hybridcontainerservice.AgentPoolArgs{
AgentPoolName: pulumi.String("test-hybridaksnodepool"),
Count: pulumi.Int(1),
Location: pulumi.String("westus"),
OsType: pulumi.String(hybridcontainerservice.OsTypeLinux),
ResourceGroupName: pulumi.String("test-arcappliance-resgrp"),
ResourceName: pulumi.String("test-hybridakscluster"),
VmSize: pulumi.String("Standard_A4_v2"),
})
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.hybridcontainerservice.AgentPool;
import com.pulumi.azurenative.hybridcontainerservice.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("test-hybridaksnodepool")
.count(1)
.location("westus")
.osType("Linux")
.resourceGroupName("test-arcappliance-resgrp")
.resourceName("test-hybridakscluster")
.vmSize("Standard_A4_v2")
.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:hybridcontainerservice:AgentPool test-hybridaksnodepool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridContainerService/provisionedClusters/{resourceName}/agentPools/{agentPoolName}
Content copied to clipboard
Properties
Link copied to clipboard
AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The underlying cloud infra provider properties.
Link copied to clipboard
Link copied to clipboard
The version of node image
Link copied to clipboard
NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
Link copied to clipboard
NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource.