# AksNodePoolConfig

- Kind: `record`
- Package: [Aspire.Hosting.Azure.Kubernetes](/reference/api/csharp/aspire.hosting.azure.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Azure.Kubernetes`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.Kubernetes/AksNodePoolConfig.cs)
- Implements: `IEquatable<AksNodePoolConfig>`

Configuration for an AKS node pool.

## Definition

```csharp
namespace Aspire.Hosting.Azure.Kubernetes;

public sealed record AksNodePoolConfig
    : System.IEquatable<Aspire.Hosting.Azure.Kubernetes.AksNodePoolConfig>
{
    // ...
}
```

## Constructors

- [AksNodePoolConfig(string, string, int, int, AksNodePoolMode)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/constructors.md#constructor-string-string-int-int-aksnodepoolmode) -- Configuration for an AKS node pool.

## Properties

- [MaxCount](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/properties.md#maxcount) : `int` `get; init` -- The maximum number of nodes.
- [MinCount](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/properties.md#mincount) : `int` `get; init` -- The minimum number of nodes.
- [Mode](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/properties.md#mode) : [AksNodePoolMode](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolmode.md) `get; init` -- The mode of the node pool.
- [Name](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/properties.md#name) : `string` `get; init` -- The name of the node pool.
- [VmSize](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/properties.md#vmsize) : `string` `get; init` -- The VM size for nodes in the pool.

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#clone) : [AksNodePoolConfig](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md)
- [Deconstruct(string, string, int, int, AksNodePoolMode)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#deconstruct-string-string-int-int-aksnodepoolmode)
- [Equals(object?)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(AksNodePoolConfig?)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#equals-aksnodepoolconfig) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(AksNodePoolConfig?, AksNodePoolConfig?)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#op-equality-aksnodepoolconfig-aksnodepoolconfig) : `bool` `static`
- [op_Inequality(AksNodePoolConfig?, AksNodePoolConfig?)](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#op-inequality-aksnodepoolconfig-aksnodepoolconfig) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig/methods.md#tostring) : `string` -- Returns a string that represents the current object.
