# AzureKustoEmulatorResource.withHostPort

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Defined on: [AzureKustoEmulatorResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoemulatorresource.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`

Configures the host port that the Kusto emulator listens on for HTTP query requests.

## Definition

```typescript
interface AzureKustoEmulatorResource {
  // ... omitted for brevity
  withHostPort(port: number): AzureKustoEmulatorResource;
}
```

## Signature

```typescript
withHostPort(port: number): AzureKustoEmulatorResource
```

## Parameters

- `port` (`number`)

## Returns

[AzureKustoEmulatorResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoemulatorresource.md) `builder`

## Defined on

- [AzureKustoEmulatorResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoemulatorresource.md) -- `handle`
