Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureFunctionsAppResource

Handle
📦 Aspire.Hosting.Azure.Functions v17.0.0

Represents an Azure Functions app resource that is launched from a source directory.

type AzureFunctionsAppResource interface {
IComputeResource
Resource
ResourceWithArgs
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Properties

propertyAppDirectorystringget
Gets the directory that contains the Azure Functions app.
AppDirectory() (string, error)
propertyLanguageAzureFunctionsLanguageget
Gets the authoring language used by the Azure Functions app.
Language() (AzureFunctionsLanguage, error)
propertyWorkerRuntimestringget
Gets the Azure Functions worker runtime for the app.
WorkerRuntime() (string, error)

Methods

methodWithHostStoragebuilder
Configures the Azure Functions app resource to use the specified Azure Storage resource as its host storage.
WithHostStorage(storage AzureStorageResource) AzureFunctionsAppResource
storageAzureStorageResourceThe resource builder for the Azure Storage resource to be used as host storage.
AzureFunctionsAppResource

The resource builder for the Azure Functions app resource, configured with the specified host storage.

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