# AzureServiceBusEmulatorResource

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

## Definition

```typescript
interface AzureServiceBusEmulatorResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withConfigurationFile(path: string): AzureServiceBusEmulatorResource;
  withHostPort(port: number): AzureServiceBusEmulatorResource;
}
```

## Methods

- [withConfigurationFile](/reference/api/typescript/aspire.hosting.azure.servicebus/azureservicebusemulatorresource/withconfigurationfile.md) -- `method` -- Copies the configuration file into an Azure Service Bus emulator resource.
    ```typescript
  withConfigurationFile(path: string): AzureServiceBusEmulatorResource
  ```
- [withHostPort](/reference/api/typescript/aspire.hosting.azure.servicebus/azureservicebusemulatorresource/withhostport.md) -- `method` -- Configures the host port for the Azure Service Bus emulator is exposed on instead of using randomly assigned port.
    ```typescript
  withHostPort(port: number): AzureServiceBusEmulatorResource
  ```
