# AksNodePoolResource Constructors

- Package: [Aspire.Hosting.Azure.Kubernetes](/reference/api/csharp/aspire.hosting.azure.kubernetes.md)
- Type: [AksNodePoolResource](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an AKS node pool with Azure-specific configuration such as VM size and autoscaling. Extends the base `Kubernetes.KubernetesNodePoolResource` with provisioning configuration that is used to generate Azure Bicep for the AKS agent pool profile.

## AksNodePoolResource(string, AksNodePoolConfig, AzureKubernetesEnvironmentResource)

- Name: `Constructor(string, AksNodePoolConfig, AzureKubernetesEnvironmentResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.Kubernetes/AksNodePoolResource.cs#L19-L29)

Represents an AKS node pool with Azure-specific configuration such as VM size and autoscaling. Extends the base `Kubernetes.KubernetesNodePoolResource` with provisioning configuration that is used to generate Azure Bicep for the AKS agent pool profile.

```csharp
public class AksNodePoolResource
{
    public AksNodePoolResource(
        string name,
        AksNodePoolConfig config,
        AzureKubernetesEnvironmentResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the node pool resource.
- `config` ([AksNodePoolConfig](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))
  The Azure-specific node pool configuration.
- `parent` ([AzureKubernetesEnvironmentResource](/reference/api/csharp/aspire.hosting.azure.kubernetes/azurekubernetesenvironmentresource.md))
  The parent AKS environment resource.
