Watch Aspire live streamsDocsTry Aspire

FlociAzureContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
interface FlociAzureContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly scheme: EndpointReferenceExpression;
withCosmos(
name?: string,
accountName?: string): FlociAzureCosmosResource;
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociAzureContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): FlociAzureContainerResource;
withDockerSocket(socketPath?: string): FlociAzureContainerResource;
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociAzureContainerResource;
withServiceBus(
name?: string,
amqpPort?: number,
amqpTlsPort?: number): FlociAzureServiceBusResource;
withStorage(name?: string): FlociAzureStorageResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the emulator endpoint URL, following the primary endpoint's `Scheme`.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for the primary endpoint.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for the primary endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint reference for the Floci container.
propertyschemeEndpointReferenceExpressionget
Gets the scheme endpoint reference for the primary endpoint. `http` unless a TLS certificate has been configured, in which case the endpoint is switched to `https` before the application starts. Floci serves both on the same port, so the port never changes.

Methods

methodwithCosmosbuilder
Adds a Cosmos DB child resource to the Floci Azure emulator
withCosmos(
name?: string,
accountName?: string): FlociAzureCosmosResource
namestringoptional= cosmosThe name of the Cosmos DB resource (default: `cosmos`).
accountNamestringoptionalThe Cosmos account name segment (default: `devstoreaccount1`).
FlociAzureCosmosResource
methodwithDataBindMountbuilder
Configures a bind mount for persistent Floci Azure state.
withDataBindMount(
source: string,
isReadOnly?: boolean): FlociAzureContainerResource
sourcestringThe host path to bind into the container.
isReadOnlybooleanoptional= FalseWhether the bind mount should be read-only.
FlociAzureContainerResource
methodwithDataVolumebuilder
Configures a named data volume for persistent Floci Azure state.
withDataVolume(
name: string,
isReadOnly?: boolean): FlociAzureContainerResource
namestringThe name of the volume to mount.
isReadOnlybooleanoptional= FalseWhether the volume should be read-only.
FlociAzureContainerResource
methodwithDockerSocketbuilder
Mounts the Docker socket into the Floci Azure container so that Azure Functions and other container-backed services can launch sibling containers. Also sets `FLOCI_AZ_DOCKER_DOCKER_HOST` to `unix:///var/run/docker.sock` (the container-side path where the socket is always mounted) so Floci can connect to it.
withDockerSocket(socketPath?: string): FlociAzureContainerResource
socketPathstringoptional= /var/run/docker.sockOptional. Host path to the Docker socket (default: `/var/run/docker.sock`). Non-standard paths (e.g. Podman at `/run/user/1000/podman/podman.sock`) are bind-mounted to `/var/run/docker.sock` inside the container.
FlociAzureContainerResource
methodwithFlociUIbuilder
Adds a Floci UI web console container for the Floci Azure resource
withFlociUI(configureContainer?: (obj: FlociUIContainerResource) => Promise<void>, containerName?: string): FlociAzureContainerResource
configureContainer(obj: FlociUIContainerResource) => Promise<void>optionalConfiguration callback for the Floci UI container resource.
containerNamestringoptionalOptional. The name of the Floci UI container (default: `{floci-name}-ui`).
FlociAzureContainerResource
methodwithServiceBusbuilder
Adds a Service Bus child resource to the Floci Azure emulator
withServiceBus(
name?: string,
amqpPort?: number,
amqpTlsPort?: number): FlociAzureServiceBusResource
namestringoptional= servicebusThe globally unique name of the Service Bus resource (default: `servicebus`). Pass a distinct name for each additional emulator.
amqpPortnumberoptionalHost port for plain AMQP (default: selected by the integration at startup).
amqpTlsPortnumberoptionalHost port for AMQPS/TLS (default: selected by the integration at startup).
FlociAzureServiceBusResource
methodwithStoragebuilder
Adds a Storage child resource to the Floci Azure emulator
withStorage(name?: string): FlociAzureStorageResource
namestringoptional= storageThe name of the Storage resource (default: `storage`).
FlociAzureStorageResource