FunctionApp
Manages a Function App.
Example Usage
With App Service Plan)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "westus2",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var examplePlan = new Azure.AppService.Plan("examplePlan", new Azure.AppService.PlanArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = new Azure.AppService.Inputs.PlanSkuArgs
{
Tier = "Standard",
Size = "S1",
},
});
var exampleFunctionApp = new Azure.AppService.FunctionApp("exampleFunctionApp", new Azure.AppService.FunctionAppArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AppServicePlanId = examplePlan.Id,
StorageConnectionString = exampleAccount.PrimaryConnectionString,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("westus2"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
examplePlan, err := appservice.NewPlan(ctx, "examplePlan", &appservice.PlanArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: &appservice.PlanSkuArgs{
Tier: pulumi.String("Standard"),
Size: pulumi.String("S1"),
},
})
if err != nil {
return err
}
_, err = appservice.NewFunctionApp(ctx, "exampleFunctionApp", &appservice.FunctionAppArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AppServicePlanId: examplePlan.ID(),
StorageConnectionString: exampleAccount.PrimaryConnectionString,
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="westus2")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_plan = azure.appservice.Plan("examplePlan",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku={
"tier": "Standard",
"size": "S1",
})
example_function_app = azure.appservice.FunctionApp("exampleFunctionApp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
app_service_plan_id=example_plan.id,
storage_connection_string=example_account.primary_connection_string)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus2"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const examplePlan = new azure.appservice.Plan("examplePlan", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: {
tier: "Standard",
size: "S1",
},
});
const exampleFunctionApp = new azure.appservice.FunctionApp("exampleFunctionApp", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
appServicePlanId: examplePlan.id,
storageConnectionString: exampleAccount.primaryConnectionString,
});In A Consumption Plan)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "westus2",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var examplePlan = new Azure.AppService.Plan("examplePlan", new Azure.AppService.PlanArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Kind = "FunctionApp",
Sku = new Azure.AppService.Inputs.PlanSkuArgs
{
Tier = "Dynamic",
Size = "Y1",
},
});
var exampleFunctionApp = new Azure.AppService.FunctionApp("exampleFunctionApp", new Azure.AppService.FunctionAppArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AppServicePlanId = examplePlan.Id,
StorageConnectionString = exampleAccount.PrimaryConnectionString,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("westus2"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
examplePlan, err := appservice.NewPlan(ctx, "examplePlan", &appservice.PlanArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Kind: pulumi.String("FunctionApp"),
Sku: &appservice.PlanSkuArgs{
Tier: pulumi.String("Dynamic"),
Size: pulumi.String("Y1"),
},
})
if err != nil {
return err
}
_, err = appservice.NewFunctionApp(ctx, "exampleFunctionApp", &appservice.FunctionAppArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AppServicePlanId: examplePlan.ID(),
StorageConnectionString: exampleAccount.PrimaryConnectionString,
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="westus2")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_plan = azure.appservice.Plan("examplePlan",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
kind="FunctionApp",
sku={
"tier": "Dynamic",
"size": "Y1",
})
example_function_app = azure.appservice.FunctionApp("exampleFunctionApp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
app_service_plan_id=example_plan.id,
storage_connection_string=example_account.primary_connection_string)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus2"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const examplePlan = new azure.appservice.Plan("examplePlan", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
kind: "FunctionApp",
sku: {
tier: "Dynamic",
size: "Y1",
},
});
const exampleFunctionApp = new azure.appservice.FunctionApp("exampleFunctionApp", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
appServicePlanId: examplePlan.id,
storageConnectionString: exampleAccount.primaryConnectionString,
});Linux)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "westus2",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var examplePlan = new Azure.AppService.Plan("examplePlan", new Azure.AppService.PlanArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Kind = "FunctionApp",
Reserved = true,
Sku = new Azure.AppService.Inputs.PlanSkuArgs
{
Tier = "Dynamic",
Size = "Y1",
},
});
var exampleFunctionApp = new Azure.AppService.FunctionApp("exampleFunctionApp", new Azure.AppService.FunctionAppArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AppServicePlanId = examplePlan.Id,
StorageConnectionString = exampleAccount.PrimaryConnectionString,
OsType = "linux",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("westus2"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
examplePlan, err := appservice.NewPlan(ctx, "examplePlan", &appservice.PlanArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Kind: pulumi.String("FunctionApp"),
Reserved: pulumi.Bool(true),
Sku: &appservice.PlanSkuArgs{
Tier: pulumi.String("Dynamic"),
Size: pulumi.String("Y1"),
},
})
if err != nil {
return err
}
_, err = appservice.NewFunctionApp(ctx, "exampleFunctionApp", &appservice.FunctionAppArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AppServicePlanId: examplePlan.ID(),
StorageConnectionString: exampleAccount.PrimaryConnectionString,
OsType: pulumi.String("linux"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="westus2")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="LRS")
example_plan = azure.appservice.Plan("examplePlan",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
kind="FunctionApp",
reserved=True,
sku={
"tier": "Dynamic",
"size": "Y1",
})
example_function_app = azure.appservice.FunctionApp("exampleFunctionApp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
app_service_plan_id=example_plan.id,
storage_connection_string=example_account.primary_connection_string,
os_type="linux")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westus2"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const examplePlan = new azure.appservice.Plan("examplePlan", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
kind: "FunctionApp",
reserved: true,
sku: {
tier: "Dynamic",
size: "Y1",
},
});
const exampleFunctionApp = new azure.appservice.FunctionApp("exampleFunctionApp", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
appServicePlanId: examplePlan.id,
storageConnectionString: exampleAccount.primaryConnectionString,
osType: "linux",
});Create a FunctionApp Resource
new FunctionApp(name: string, args: FunctionAppArgs, opts?: CustomResourceOptions);def FunctionApp(resource_name, opts=None, app_service_plan_id=None, app_settings=None, auth_settings=None, client_affinity_enabled=None, connection_strings=None, daily_memory_time_quota=None, enable_builtin_logging=None, enabled=None, https_only=None, identity=None, location=None, name=None, os_type=None, resource_group_name=None, site_config=None, storage_account_access_key=None, storage_account_name=None, storage_connection_string=None, tags=None, version=None, __props__=None);func NewFunctionApp(ctx *Context, name string, args FunctionAppArgs, opts ...ResourceOption) (*FunctionApp, error)public FunctionApp(string name, FunctionAppArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FunctionAppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionAppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionAppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
FunctionApp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The FunctionApp resource accepts the following input properties:
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- Resource
Group stringName The name of the resource group in which to create the Function App.
- App
Settings Dictionary<string, string> A map of key-value pairs for App Settings and custom values.
- Auth
Settings FunctionApp Auth Settings Args A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<FunctionApp Connection String Args> An
connection_stringblock as defined below.- Daily
Memory intTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- Enable
Builtin boolLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- Enabled bool
Is the Function App enabled?
- Https
Only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- Identity
Function
App Identity Args An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- Os
Type string A string indicating the Operating System type for this function app.
- Site
Config FunctionApp Site Config Args A
site_configobject as defined below.- Storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- Storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- Storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Version string
The runtime version associated with the Function App. Defaults to
~1.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- Resource
Group stringName The name of the resource group in which to create the Function App.
- App
Settings map[string]string A map of key-value pairs for App Settings and custom values.
- Auth
Settings FunctionApp Auth Settings A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []FunctionApp Connection String An
connection_stringblock as defined below.- Daily
Memory intTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- Enable
Builtin boolLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- Enabled bool
Is the Function App enabled?
- Https
Only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- Identity
Function
App Identity An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- Os
Type string A string indicating the Operating System type for this function app.
- Site
Config FunctionApp Site Config A
site_configobject as defined below.- Storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- Storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- Storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- map[string]string
A mapping of tags to assign to the resource.
- Version string
The runtime version associated with the Function App. Defaults to
~1.
- app
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- resource
Group stringName The name of the resource group in which to create the Function App.
- app
Settings {[key: string]: string} A map of key-value pairs for App Settings and custom values.
- auth
Settings FunctionApp Auth Settings A
auth_settingsblock as defined below.- client
Affinity booleanEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings FunctionApp Connection String[] An
connection_stringblock as defined below.- daily
Memory numberTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- enable
Builtin booleanLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- enabled boolean
Is the Function App enabled?
- https
Only boolean Can the Function App only be accessed via HTTPS? Defaults to
false.- identity
Function
App Identity An
identityblock as defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- os
Type string A string indicating the Operating System type for this function app.
- site
Config FunctionApp Site Config A
site_configobject as defined below.- storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- {[key: string]: string}
A mapping of tags to assign to the resource.
- version string
The runtime version associated with the Function App. Defaults to
~1.
- app_
service_ strplan_ id The ID of the App Service Plan within which to create this Function App.
- resource_
group_ strname The name of the resource group in which to create the Function App.
- app_
settings Dict[str, str] A map of key-value pairs for App Settings and custom values.
- auth_
settings Dict[FunctionApp Auth Settings] A
auth_settingsblock as defined below.- client_
affinity_ boolenabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings List[FunctionApp Connection String] An
connection_stringblock as defined below.- daily_
memory_ floattime_ quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- enable_
builtin_ boollogging Should the built-in logging of this Function App be enabled? Defaults to
true.- enabled bool
Is the Function App enabled?
- https_
only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- identity
Dict[Function
App Identity] An
identityblock as defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Function App. Changing this forces a new resource to be created.
- os_
type str A string indicating the Operating System type for this function app.
- site_
config Dict[FunctionApp Site Config] A
site_configobject as defined below.- storage_
account_ straccess_ key The access key which will be used to access the backend storage account for the Function App.
- storage_
account_ strname The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- storage_
connection_ strstring The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- Dict[str, str]
A mapping of tags to assign to the resource.
- version str
The runtime version associated with the Function App. Defaults to
~1.
Outputs
All input properties are implicitly available as output properties. Additionally, the FunctionApp resource produces the following output properties:
- Default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
The Function App kind - such as
functionapp,linux,container- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Site
Credentials List<FunctionApp Site Credential> A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- Default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
The Function App kind - such as
functionapp,linux,container- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Site
Credentials []FunctionApp Site Credential A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- id string
- The provider-assigned unique ID for this managed resource.
- kind string
The Function App kind - such as
functionapp,linux,container- outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- site
Credentials FunctionApp Site Credential[] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- default_
hostname str The default hostname associated with the Function App - such as
mysite.azurewebsites.net- id str
- The provider-assigned unique ID for this managed resource.
- kind str
The Function App kind - such as
functionapp,linux,container- outbound_
ip_ straddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible_
outbound_ strip_ addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- site_
credentials List[FunctionApp Site Credential] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
Look up an Existing FunctionApp Resource
Get an existing FunctionApp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionAppState, opts?: CustomResourceOptions): FunctionAppstatic get(resource_name, id, opts=None, app_service_plan_id=None, app_settings=None, auth_settings=None, client_affinity_enabled=None, connection_strings=None, daily_memory_time_quota=None, default_hostname=None, enable_builtin_logging=None, enabled=None, https_only=None, identity=None, kind=None, location=None, name=None, os_type=None, outbound_ip_addresses=None, possible_outbound_ip_addresses=None, resource_group_name=None, site_config=None, site_credentials=None, storage_account_access_key=None, storage_account_name=None, storage_connection_string=None, tags=None, version=None, __props__=None);func GetFunctionApp(ctx *Context, name string, id IDInput, state *FunctionAppState, opts ...ResourceOption) (*FunctionApp, error)public static FunctionApp Get(string name, Input<string> id, FunctionAppState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- App
Settings Dictionary<string, string> A map of key-value pairs for App Settings and custom values.
- Auth
Settings FunctionApp Auth Settings Args A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<FunctionApp Connection String Args> An
connection_stringblock as defined below.- Daily
Memory intTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- Default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- Enable
Builtin boolLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- Enabled bool
Is the Function App enabled?
- Https
Only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- Identity
Function
App Identity Args An
identityblock as defined below.- Kind string
The Function App kind - such as
functionapp,linux,container- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- Os
Type string A string indicating the Operating System type for this function app.
- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Resource
Group stringName The name of the resource group in which to create the Function App.
- Site
Config FunctionApp Site Config Args A
site_configobject as defined below.- Site
Credentials List<FunctionApp Site Credential Args> A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- Storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- Storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Version string
The runtime version associated with the Function App. Defaults to
~1.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- App
Settings map[string]string A map of key-value pairs for App Settings and custom values.
- Auth
Settings FunctionApp Auth Settings A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []FunctionApp Connection String An
connection_stringblock as defined below.- Daily
Memory intTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- Default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- Enable
Builtin boolLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- Enabled bool
Is the Function App enabled?
- Https
Only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- Identity
Function
App Identity An
identityblock as defined below.- Kind string
The Function App kind - such as
functionapp,linux,container- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- Os
Type string A string indicating the Operating System type for this function app.
- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Resource
Group stringName The name of the resource group in which to create the Function App.
- Site
Config FunctionApp Site Config A
site_configobject as defined below.- Site
Credentials []FunctionApp Site Credential A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- Storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- Storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- map[string]string
A mapping of tags to assign to the resource.
- Version string
The runtime version associated with the Function App. Defaults to
~1.
- app
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- app
Settings {[key: string]: string} A map of key-value pairs for App Settings and custom values.
- auth
Settings FunctionApp Auth Settings A
auth_settingsblock as defined below.- client
Affinity booleanEnabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings FunctionApp Connection String[] An
connection_stringblock as defined below.- daily
Memory numberTime Quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- default
Hostname string The default hostname associated with the Function App - such as
mysite.azurewebsites.net- enable
Builtin booleanLogging Should the built-in logging of this Function App be enabled? Defaults to
true.- enabled boolean
Is the Function App enabled?
- https
Only boolean Can the Function App only be accessed via HTTPS? Defaults to
false.- identity
Function
App Identity An
identityblock as defined below.- kind string
The Function App kind - such as
functionapp,linux,container- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Function App. Changing this forces a new resource to be created.
- os
Type string A string indicating the Operating System type for this function app.
- outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- resource
Group stringName The name of the resource group in which to create the Function App.
- site
Config FunctionApp Site Config A
site_configobject as defined below.- site
Credentials FunctionApp Site Credential[] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- storage
Account stringAccess Key The access key which will be used to access the backend storage account for the Function App.
- storage
Account stringName The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- storage
Connection stringString The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- {[key: string]: string}
A mapping of tags to assign to the resource.
- version string
The runtime version associated with the Function App. Defaults to
~1.
- app_
service_ strplan_ id The ID of the App Service Plan within which to create this Function App.
- app_
settings Dict[str, str] A map of key-value pairs for App Settings and custom values.
- auth_
settings Dict[FunctionApp Auth Settings] A
auth_settingsblock as defined below.- client_
affinity_ boolenabled Should the Function App send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings List[FunctionApp Connection String] An
connection_stringblock as defined below.- daily_
memory_ floattime_ quota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. Defaults to
0.- default_
hostname str The default hostname associated with the Function App - such as
mysite.azurewebsites.net- enable_
builtin_ boollogging Should the built-in logging of this Function App be enabled? Defaults to
true.- enabled bool
Is the Function App enabled?
- https_
only bool Can the Function App only be accessed via HTTPS? Defaults to
false.- identity
Dict[Function
App Identity] An
identityblock as defined below.- kind str
The Function App kind - such as
functionapp,linux,container- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Function App. Changing this forces a new resource to be created.
- os_
type str A string indicating the Operating System type for this function app.
- outbound_
ip_ straddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible_
outbound_ strip_ addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- resource_
group_ strname The name of the resource group in which to create the Function App.
- site_
config Dict[FunctionApp Site Config] A
site_configobject as defined below.- site_
credentials List[FunctionApp Site Credential] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- storage_
account_ straccess_ key The access key which will be used to access the backend storage account for the Function App.
- storage_
account_ strname The backend storage account name which will be used by this Function App (such as the dashboard, logs).
- storage_
connection_ strstring The connection string to the backend storage account which will be used by this Function App (such as the dashboard, logs). Typically set to the
primary_connection_stringof a storage account resource.- Dict[str, str]
A mapping of tags to assign to the resource.
- version str
The runtime version associated with the Function App. Defaults to
~1.
Supporting Types
FunctionAppAuthSettings
- Enabled bool
Is Authentication enabled?
- Active
Directory FunctionApp Auth Settings Active Directory Args A
active_directoryblock as defined below.- Additional
Login Dictionary<string, string>Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- Allowed
External List<string>Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- Facebook
Function
App Auth Settings Facebook Args A
facebookblock as defined below.- Google
Function
App Auth Settings Google Args A
googleblock as defined below.- Issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Function
App Auth Settings Microsoft Args A
microsoftblock as defined below.- Runtime
Version string The runtime version of the Authentication/Authorization module.
- Token
Refresh doubleExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- Token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- Twitter
Function
App Auth Settings Twitter Args A
twitterblock as defined below.- Unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- Enabled bool
Is Authentication enabled?
- Active
Directory FunctionApp Auth Settings Active Directory A
active_directoryblock as defined below.- Additional
Login map[string]stringParams Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- Allowed
External []stringRedirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- Facebook
Function
App Auth Settings Facebook A
facebookblock as defined below.- Google
Function
App Auth Settings Google A
googleblock as defined below.- Issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Function
App Auth Settings Microsoft A
microsoftblock as defined below.- Runtime
Version string The runtime version of the Authentication/Authorization module.
- Token
Refresh float64Extension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- Token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- Twitter
Function
App Auth Settings Twitter A
twitterblock as defined below.- Unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- enabled boolean
Is Authentication enabled?
- active
Directory FunctionApp Auth Settings Active Directory A
active_directoryblock as defined below.- additional
Login {[key: string]: string}Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- allowed
External string[]Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- facebook
Function
App Auth Settings Facebook A
facebookblock as defined below.- google
Function
App Auth Settings Google A
googleblock as defined below.- issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Function
App Auth Settings Microsoft A
microsoftblock as defined below.- runtime
Version string The runtime version of the Authentication/Authorization module.
- token
Refresh numberExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- token
Store booleanEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- twitter
Function
App Auth Settings Twitter A
twitterblock as defined below.- unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- enabled bool
Is Authentication enabled?
- active_
directory Dict[FunctionApp Auth Settings Active Directory] A
active_directoryblock as defined below.- additional
Login Dict[str, str]Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- allowed
External List[str]Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider str The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- facebook
Dict[Function
App Auth Settings Facebook] A
facebookblock as defined below.- google
Dict[Function
App Auth Settings Google] A
googleblock as defined below.- issuer str
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Dict[Function
App Auth Settings Microsoft] A
microsoftblock as defined below.- runtime
Version str The runtime version of the Authentication/Authorization module.
- token
Refresh floatExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- twitter
Dict[Function
App Auth Settings Twitter] A
twitterblock as defined below.- unauthenticated
Client strAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
FunctionAppAuthSettingsActiveDirectory
- Client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences List<string> Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- Client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences []string Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences string[] Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client_
id str The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences List[str] Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client_
secret str The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
FunctionAppAuthSettingsFacebook
- App
Id string The App ID of the Facebook app used for login
- App
Secret string The App Secret of the Facebook app used for Facebook Login.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- App
Id string The App ID of the Facebook app used for login
- App
Secret string The App Secret of the Facebook app used for Facebook Login.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- app
Id string The App ID of the Facebook app used for login
- app
Secret string The App Secret of the Facebook app used for Facebook Login.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- app_
id str The App ID of the Facebook app used for login
- app_
secret str The App Secret of the Facebook app used for Facebook Login.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
FunctionAppAuthSettingsGoogle
- Client
Id string The OpenID Connect Client ID for the Google web application.
- Client
Secret string The client secret associated with the Google web application.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- Client
Id string The OpenID Connect Client ID for the Google web application.
- Client
Secret string The client secret associated with the Google web application.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client
Id string The OpenID Connect Client ID for the Google web application.
- client
Secret string The client secret associated with the Google web application.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client_
id str The OpenID Connect Client ID for the Google web application.
- client_
secret str The client secret associated with the Google web application.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
FunctionAppAuthSettingsMicrosoft
- Client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- Client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client_
id str The OAuth 2.0 client ID that was created for the app used for authentication.
- client_
secret str The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
FunctionAppAuthSettingsTwitter
FunctionAppConnectionString
FunctionAppIdentity
- Type string
Specifies the identity type of the Function App. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- Identity
Ids List<string> Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- Principal
Id string The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
- Tenant
Id string The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
- Type string
Specifies the identity type of the Function App. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- Identity
Ids []string Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- Principal
Id string The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
- Tenant
Id string The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
- type string
Specifies the identity type of the Function App. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- identity
Ids string[] Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- principal
Id string The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
- tenant
Id string The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
- type str
Specifies the identity type of the Function App. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- identity
Ids List[str] Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- principal_
id str The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
- tenant_
id str The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
FunctionAppSiteConfig
- Always
On bool Should the Function App be loaded at all times? Defaults to
false.- Cors
Function
App Site Config Cors Args A
corsblock as defined below.- Ftps
State string State of FTP / FTPS service for this function app. Possible values include:
AllAllowed,FtpsOnlyandDisabled.- Http2Enabled bool
Specifies whether or not the http2 protocol should be enabled. Defaults to
false.- Ip
Restrictions List<FunctionApp Site Config Ip Restriction Args> A list of objects representing ip restrictions as defined below.
- Linux
Fx stringVersion Linux App Framework and version for the AppService, e.g.
DOCKER|(golang:latest).- Min
Tls stringVersion The minimum supported TLS version for the function app. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new function apps.- Pre
Warmed intInstance Count The number of pre-warmed instances for this function app. Only affects apps on the Premium plan.
- Use32Bit
Worker boolProcess Should the Function App run in 32 bit mode, rather than 64 bit mode? Defaults to
true.- Websockets
Enabled bool Should WebSockets be enabled?
- Always
On bool Should the Function App be loaded at all times? Defaults to
false.- Cors
Function
App Site Config Cors A
corsblock as defined below.- Ftps
State string State of FTP / FTPS service for this function app. Possible values include:
AllAllowed,FtpsOnlyandDisabled.- Http2Enabled bool
Specifies whether or not the http2 protocol should be enabled. Defaults to
false.- Ip
Restrictions []FunctionApp Site Config Ip Restriction A list of objects representing ip restrictions as defined below.
- Linux
Fx stringVersion Linux App Framework and version for the AppService, e.g.
DOCKER|(golang:latest).- Min
Tls stringVersion The minimum supported TLS version for the function app. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new function apps.- Pre
Warmed intInstance Count The number of pre-warmed instances for this function app. Only affects apps on the Premium plan.
- Use32Bit
Worker boolProcess Should the Function App run in 32 bit mode, rather than 64 bit mode? Defaults to
true.- Websockets
Enabled bool Should WebSockets be enabled?
- always
On boolean Should the Function App be loaded at all times? Defaults to
false.- cors
Function
App Site Config Cors A
corsblock as defined below.- ftps
State string State of FTP / FTPS service for this function app. Possible values include:
AllAllowed,FtpsOnlyandDisabled.- http2Enabled boolean
Specifies whether or not the http2 protocol should be enabled. Defaults to
false.- ip
Restrictions FunctionApp Site Config Ip Restriction[] A list of objects representing ip restrictions as defined below.
- linux
Fx stringVersion Linux App Framework and version for the AppService, e.g.
DOCKER|(golang:latest).- min
Tls stringVersion The minimum supported TLS version for the function app. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new function apps.- pre
Warmed numberInstance Count The number of pre-warmed instances for this function app. Only affects apps on the Premium plan.
- use32Bit
Worker booleanProcess Should the Function App run in 32 bit mode, rather than 64 bit mode? Defaults to
true.- websockets
Enabled boolean Should WebSockets be enabled?
- always
On bool Should the Function App be loaded at all times? Defaults to
false.- cors
Dict[Function
App Site Config Cors] A
corsblock as defined below.- ftps
State str State of FTP / FTPS service for this function app. Possible values include:
AllAllowed,FtpsOnlyandDisabled.- http2Enabled bool
Specifies whether or not the http2 protocol should be enabled. Defaults to
false.- ip
Restrictions List[FunctionApp Site Config Ip Restriction] A list of objects representing ip restrictions as defined below.
- linux
Fx strVersion Linux App Framework and version for the AppService, e.g.
DOCKER|(golang:latest).- min
Tls strVersion The minimum supported TLS version for the function app. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new function apps.- pre
Warmed floatInstance Count The number of pre-warmed instances for this function app. Only affects apps on the Premium plan.
- use32Bit
Worker boolProcess Should the Function App run in 32 bit mode, rather than 64 bit mode? Defaults to
true.- websockets
Enabled bool Should WebSockets be enabled?
FunctionAppSiteConfigCors
- Allowed
Origins List<string> A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- Support
Credentials bool Are credentials supported?
- Allowed
Origins []string A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- Support
Credentials bool Are credentials supported?
- allowed
Origins string[] A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- support
Credentials boolean Are credentials supported?
- allowed
Origins List[str] A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- support
Credentials bool Are credentials supported?
FunctionAppSiteConfigIpRestriction
- ip_
address str The IP Address CIDR notation used for this IP Restriction.
- subnet_
id str The Subnet ID used for this IP Restriction.
FunctionAppSiteCredential
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.