GetFunctionApp
Use this data source to access information about a Function App.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetFunctionApp.InvokeAsync(new Azure.AppService.GetFunctionAppArgs
{
Name = "test-azure-functions",
ResourceGroupName = azurerm_resource_group.Example.Name,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appservice.LookupFunctionApp(ctx, &appservice.LookupFunctionAppArgs{
Name: "test-azure-functions",
ResourceGroupName: azurerm_resource_group.Example.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.appservice.get_function_app(name="test-azure-functions",
resource_group_name=azurerm_resource_group["example"]["name"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getFunctionApp({
name: "test-azure-functions",
resourceGroupName: azurerm_resource_group.example.name,
});Using GetFunctionApp
function getFunctionApp(args: GetFunctionAppArgs, opts?: InvokeOptions): Promise<GetFunctionAppResult>function get_function_app(name=None, resource_group_name=None, tags=None, opts=None)func LookupFunctionApp(ctx *Context, args *LookupFunctionAppArgs, opts ...InvokeOption) (*LookupFunctionAppResult, error)Note: This function is named
LookupFunctionAppin the Go SDK.
public static class GetFunctionApp {
public static Task<GetFunctionAppResult> InvokeAsync(GetFunctionAppArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the Function App resource.
- Resource
Group stringName The name of the Resource Group where the Function App exists.
- Dictionary<string, string>
- Name string
The name of the Function App resource.
- Resource
Group stringName The name of the Resource Group where the Function App exists.
- map[string]string
- name string
The name of the Function App resource.
- resource
Group stringName The name of the Resource Group where the Function App exists.
- {[key: string]: string}
- name str
The name of the Function App resource.
- resource_
group_ strname The name of the Resource Group where the Function App exists.
- Dict[str, str]
GetFunctionApp Result
The following output properties are available:
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- App
Settings Dictionary<string, string> A key-value pair of App Settings.
- Connection
Strings List<GetFunction App Connection String> An
connection_stringblock as defined below.- Default
Hostname string The default hostname associated with the Function App.
- Enabled bool
Is the Function App enabled?
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
The name of the Connection String.
- 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.
- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of
outbound_ip_addresses.- Resource
Group stringName - Site
Credentials List<GetFunction App Site Credential> A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Dictionary<string, string>
- App
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- App
Settings map[string]string A key-value pair of App Settings.
- Connection
Strings []GetFunction App Connection String An
connection_stringblock as defined below.- Default
Hostname string The default hostname associated with the Function App.
- Enabled bool
Is the Function App enabled?
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
The name of the Connection String.
- 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.
- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of
outbound_ip_addresses.- Resource
Group stringName - Site
Credentials []GetFunction App Site Credential A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- map[string]string
- app
Service stringPlan Id The ID of the App Service Plan within which to create this Function App.
- app
Settings {[key: string]: string} A key-value pair of App Settings.
- connection
Strings GetFunction App Connection String[] An
connection_stringblock as defined below.- default
Hostname string The default hostname associated with the Function App.
- enabled boolean
Is the Function App enabled?
- id string
The provider-assigned unique ID for this managed resource.
- location string
- name string
The name of the Connection String.
- 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.
- possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of
outbound_ip_addresses.- resource
Group stringName - site
Credentials GetFunction App Site Credential[] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- {[key: string]: string}
- app_
service_ strplan_ id The ID of the App Service Plan within which to create this Function App.
- app_
settings Dict[str, str] A key-value pair of App Settings.
- connection_
strings List[GetFunction App Connection String] An
connection_stringblock as defined below.- default_
hostname str The default hostname associated with the Function App.
- enabled bool
Is the Function App enabled?
- id str
The provider-assigned unique ID for this managed resource.
- location str
- name str
The name of the Connection String.
- 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.
- possible_
outbound_ strip_ addresses A comma separated list of outbound IP addresses, not all of which are necessarily in use. Superset of
outbound_ip_addresses.- resource_
group_ strname - site_
credentials List[GetFunction App Site Credential] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Dict[str, str]
Supporting Types
GetFunctionAppConnectionString
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetFunctionAppSiteCredential
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.