# WithHostPort

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/go/aspire.hosting.azure.kusto.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `method`
- Defined on: [`AzureKustoEmulatorResource`](/reference/api/go/aspire.hosting.azure.kusto/azurekustoemulatorresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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

## Definition

```go
func (AzureKustoEmulatorResource) WithHostPort(port float64) AzureKustoEmulatorResource
```

## Parameters

- `port` (`float64`) -- Host port to use.

## Returns

[`AzureKustoEmulatorResource`](/reference/api/go/aspire.hosting.azure.kusto/azurekustoemulatorresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

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