# withInternalLoadBalancer

- Module: [Aspire.Hosting.Azure.Network](/reference/api/typescript/aspire.hosting.azure.network.md)
- Version: `17.0.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Configures the resource with an internal load balancer and private DNS.

## Definition

```typescript
interface IAzureInternalIngressResource {
  // ... omitted for brevity
  withInternalLoadBalancer(virtualNetwork: AzureVirtualNetworkResource): IAzureInternalIngressResource
}
```

## Parameters

- `virtualNetwork` ([AzureVirtualNetworkResource](/reference/api/typescript/aspire.hosting.azure.network/azurevirtualnetworkresource.md))

## Returns

`IAzureInternalIngressResource` `builder`

## Applies to

- [IAzureInternalIngressResource](/reference/api/typescript/aspire.hosting.azure.network/iazureinternalingressresource.md)
