# AzureServiceBusEmulatorResource

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

## Definition

```go
type AzureServiceBusEmulatorResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithConfigurationFile](/reference/api/go/aspire.hosting.azure.servicebus/azureservicebusemulatorresource/withconfigurationfile.md) -- `method` -- Copies the configuration file into an Azure Service Bus emulator resource.
  ```go
  WithConfigurationFile(path string) AzureServiceBusEmulatorResource
  ```
- [WithHostPort](/reference/api/go/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.
  ```go
  WithHostPort(port *float64) AzureServiceBusEmulatorResource
  ```
- [WithSqlServer](/reference/api/go/aspire.hosting.azure.servicebus/azureservicebusemulatorresource/withsqlserver.md) -- `method` -- Configures the Azure Service Bus emulator to use an existing SQL Server resource instead of creating one for it.
  ```go
  WithSqlServer(sqlServer SqlServerServerResource) AzureServiceBusEmulatorResource
  ```
