Skip to content
Docs Try Aspire
Docs Try

withHostPort

Method
📦 Aspire.Hosting.Azure.AppConfiguration v13.4.0
interface AzureAppConfigurationEmulatorResource {
// ... omitted for brevity
withHostPort(port: number): AzureAppConfigurationEmulatorResource;
}

Signature

method withHostPort builder
Configures the host port for the Azure App Configuration emulator is exposed on instead of using randomly assigned port.
withHostPort(port: number): AzureAppConfigurationEmulatorResource
port number
AzureAppConfigurationEmulatorResource

Applies to

This method applies to the following types: