# AksNodePoolResource

- Module: [Aspire.Hosting.Azure.Kubernetes](/reference/api/typescript/aspire.hosting.azure.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AksNodePoolResource
  extends IResource,
    IResourceWithParent,
    KubernetesEnvironmentResource]] {
  withSubnet(subnet: AzureSubnetResource): AksNodePoolResource;
}
```

## Methods

- [withSubnet](/reference/api/typescript/aspire.hosting.azure.kubernetes/aksnodepoolresource/withsubnet.md) -- `method` -- Configures an AKS node pool to use a specific VNet subnet
    ```typescript
  withSubnet(subnet: AzureSubnetResource): AksNodePoolResource
  ```
