Skip to main content

AzureFunctionsDeployerParameters

@webda/azure


Class: AzureFunctionsDeployerParameters

Defined in: azure/src/deployers/functions.service.ts:10

Azure Functions Flex Consumption unit settings.

Extends​

Implements​

Constructors​

Constructor​

new AzureFunctionsDeployerParameters(): AzureFunctionsDeployerParameters

Returns​

AzureFunctionsDeployerParameters

Inherited from​

AzureArmDeployerParameters.constructor

Properties​

appSettings​

appSettings: Record<string, string | SecretString> = {}

Defined in: azure/src/deployers/functions.service.ts:41

App settings


baseImage​

baseImage: string

Defined in: oci/lib/container.service.d.ts:17

Base image, scratch for none

Default​

"node:22-slim"

Inherited from​

AzureArmDeployerParameters.baseImage


clientId?​

optional clientId?: string

Defined in: azure/src/deployers/arm.service.ts:21

Client ID

Inherited from​

AzureArmDeployerParameters.clientId


clientSecret?​

optional clientSecret?: string | SecretString

Defined in: azure/src/deployers/arm.service.ts:25

Client secret

Inherited from​

AzureArmDeployerParameters.clientSecret


cmd​

cmd: string[]

Defined in: oci/lib/container.service.d.ts:50

Command of the image, the arguments of the entrypoint

Default​

["serve", "--bind", "0.0.0.0"]

Inherited from​

AzureArmDeployerParameters.cmd


createResourceGroup​

createResourceGroup: boolean = false

Defined in: azure/src/deployers/arm.service.ts:45

Create resource group

Inherited from​

AzureArmDeployerParameters.createResourceGroup


credentials​

credentials: Record<string, RegistryCredentials>

Defined in: oci/lib/container.service.d.ts:105

Credentials per registry host, they take precedence over ~/.docker/config.json

Default​

Use templates to read them from the environment: { "ghcr.io": { "username": "${env.GHCR_USER}", "password": "${env.GHCR_TOKEN}" } }

password, identityToken and token can be encrypted with webda config encrypt

Inherited from​

AzureArmDeployerParameters.credentials


customResources​

customResources: Record<string, any>[] | Record<string, Record<string, any>> = []

Defined in: azure/src/deployers/arm.service.ts:57

Custom resources

Inherited from​

AzureArmDeployerParameters.customResources


deploymentName?​

optional deploymentName?: string

Defined in: azure/src/deployers/arm.service.ts:49

Deployment name

Inherited from​

AzureArmDeployerParameters.deploymentName


deploymentTimeout​

deploymentTimeout: number = 600000

Defined in: azure/src/deployers/functions.service.ts:49

Deployment timeout


endpoint?​

optional endpoint?: string

Defined in: azure/src/deployers/arm.service.ts:33

Endpoint

Inherited from​

AzureArmDeployerParameters.endpoint


entrypoint​

entrypoint: string[]

Defined in: oci/lib/container.service.d.ts:44

Entrypoint of the image

Default​

["node", "<workdir>/node_modules/@webda/core/lib/bin/cli.js"]

Inherited from​

AzureArmDeployerParameters.entrypoint


env​

env: Record<string, string>

Defined in: oci/lib/container.service.d.ts:56

Environment variables

Default​

{ "NODE_ENV": "production" }

Inherited from​

AzureArmDeployerParameters.env


exposedPorts​

exposedPorts: string[]

Defined in: oci/lib/container.service.d.ts:71

Exposed ports

Default​

["18080/tcp"]

Inherited from​

AzureArmDeployerParameters.exposedPorts


functionApp​

functionApp: string

Defined in: azure/src/deployers/functions.service.ts:17

Function app


image?​

optional image?: string

Defined in: oci/lib/container.service.d.ts:23

Repository to push to, without tag: ghcr.io/my-org/my-app

Required to push.

Inherited from​

AzureArmDeployerParameters.image


insecureRegistries​

insecureRegistries: string[]

Defined in: oci/lib/container.service.d.ts:110

Registries reached over plain http, localhost and 127.0.0.1 always are

Default​

[]

Inherited from​

AzureArmDeployerParameters.insecureRegistries


labels​

labels: Record<string, string>

Defined in: oci/lib/container.service.d.ts:61

Labels, added to the default OCI ones (version, revision, source, title)

Default​

{}

Inherited from​

AzureArmDeployerParameters.labels


location​

location: string = "westeurope"

Defined in: azure/src/deployers/arm.service.ts:41

Location

Inherited from​

AzureArmDeployerParameters.location


maximumInstanceCount​

maximumInstanceCount: number = 100

Defined in: azure/src/deployers/functions.service.ts:37

Maximum instance count


memory​

memory: number = 2048

Defined in: azure/src/deployers/functions.service.ts:33

Memory


mtime?​

optional mtime?: number

Defined in: oci/lib/container.service.d.ts:96

Modification time of the files and creation time of the image, in seconds

Default​

the SOURCE_DATE_EPOCH environment variable, or 0

Inherited from​

AzureArmDeployerParameters.mtime


output​

output: string

Defined in: oci/lib/container.service.d.ts:85

Output of container build: an OCI layout folder, or a tar archive when ending with .tar

Relative to the application folder. The folder keeps the downloaded base layers between builds.

Default​

".webda/oci/${deployer.name}"

Inherited from​

AzureArmDeployerParameters.output


package​

package: PackageOptions

Defined in: oci/lib/container.service.d.ts:90

Options of the application packaging

Default​

{}

Implementation of​

AzureFunctionsPackageOptions.package

Inherited from​

AzureArmDeployerParameters.package


plan?​

optional plan?: string

Defined in: azure/src/deployers/functions.service.ts:25

Plan


platforms​

platforms: string[]

Defined in: oci/lib/container.service.d.ts:77

Platforms to build, several platforms produce a multi-platform index

Default​

["linux/amd64"]

Inherited from​

AzureArmDeployerParameters.platforms


resourceGroup​

resourceGroup: string

Defined in: azure/src/deployers/arm.service.ts:37

Resource group

Inherited from​

AzureArmDeployerParameters.resourceGroup


resourceTags​

resourceTags: Record<string, string>

Defined in: azure/src/deployers/arm.service.ts:53

Resource tags

Inherited from​

AzureArmDeployerParameters.resourceTags


storageAccount​

storageAccount: string

Defined in: azure/src/deployers/functions.service.ts:21

Storage account


subscriptionId​

subscriptionId: string

Defined in: azure/src/deployers/arm.service.ts:29

Subscription ID

Inherited from​

AzureArmDeployerParameters.subscriptionId


tags​

tags: string[]

Defined in: oci/lib/container.service.d.ts:32

Tags of the image

Invalid characters are replaced by -, so the snapshot version 1.2.4+20261004120000 becomes 1.2.4-20261004120000.

Default​

["${git.version}"]

Inherited from​

AzureArmDeployerParameters.tags


templateOutput?​

optional templateOutput?: string

Defined in: azure/src/deployers/arm.service.ts:61

Template output

Inherited from​

AzureArmDeployerParameters.templateOutput


tenantId?​

optional tenantId?: string

Defined in: azure/src/deployers/arm.service.ts:17

Tenant ID

Inherited from​

AzureArmDeployerParameters.tenantId


triggers?​

optional triggers?: AzureTrigger[]

Defined in: azure/src/deployers/functions.service.ts:45

Triggers

Implementation of​

AzureFunctionsPackageOptions.triggers


type​

type: string

Defined in: core/lib/services/serviceparameters.d.ts:9

Type of the service

Inherited from​

AzureArmDeployerParameters.type


user?​

optional user?: string

Defined in: oci/lib/container.service.d.ts:65

User the container runs as, the base image one by default

Inherited from​

AzureArmDeployerParameters.user


workdir​

workdir: string

Defined in: oci/lib/container.service.d.ts:38

Folder of the application in the image

Default​

"/app"

Inherited from​

AzureArmDeployerParameters.workdir


zipPath​

zipPath: string = "dist/azure-functions.zip"

Defined in: azure/src/deployers/functions.service.ts:29

Zip path

Implementation of​

AzureFunctionsPackageOptions.zipPath

Methods​

load()​

load(params?): this

Defined in: azure/src/deployers/arm.service.ts:67

Perform load.

Parameters​

params?​

any = {}

Returns​

this

Inherited from​

AzureArmDeployerParameters.load


update()​

update(params, delta): this

Defined in: core/lib/application/parameters.d.ts:21

Update parameters and call watchers if a parameter was changed

Parameters​

params​

any

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

AzureArmDeployerParameters.update


with()​

with(callback): this

Defined in: core/lib/application/parameters.d.ts:27

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

AzureArmDeployerParameters.with