» Data Source: azurerm_function_app

Use this data source to access information about a Function App.

» Example Usage

data "azurerm_function_app" "example" {
  name                = "test-azure-functions"
  resource_group_name = azurerm_resource_group.example.name
}

» Argument Reference

The following arguments are supported:

  • name - The name of the Function App resource.

  • resource_group_name - The name of the Resource Group where the Function App exists.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Function App

  • app_service_plan_id - The ID of the App Service Plan within which to create this Function App.

  • app_settings - A key-value pair of App Settings.

  • connection_string - An connection_string block as defined below.

  • default_hostname - The default hostname associated with the Function App.

  • enabled - Is the Function App enabled?

  • site_credential - A site_credential block as defined below, which contains the site-level credentials used to publish to this App Service.

  • os_type - A string indicating the Operating System type for this function app.


The connection_string supports the following:

  • name - The name of the Connection String.
  • type - The type of the Connection String.
  • value - The value for the Connection String.

The site_credential block exports the following:

  • username - The username which can be used to publish to this App Service
  • password - The password associated with the username, which can be used to publish to this App Service.

An ip_restriction block exports the following:

  • ip_address - The IP Address used for this IP Restriction.

  • subnet_mask - The Subnet mask used for this IP Restriction.

  • name - The name for this IP Restriction.

  • priority - The priority for this IP Restriction.

  • action - Does this restriction Allow or Deny access for this IP range?


An scm_ip_restriction block exports the following:

  • ip_address - The IP Address used for this IP Restriction in CIDR notation.

  • virtual_network_subnet_id - The Virtual Network Subnet ID used for this IP Restriction.

  • name - The name for this IP Restriction.

  • priority - The priority for this IP Restriction.

  • action - Allow or Deny access for this IP range. Defaults to Allow.


A site_config block exports the following:


A source_control block exports the following:

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Function App.