get Function App
Use this data source to access information about a Function App. !>Note: The azure.appservice.FunctionApp
data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the azure.appservice.LinuxFunctionApp
and azure.appservice.WindowsFunctionApp
data sources instead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getFunctionApp({
name: "test-azure-functions",
resourceGroupName: exampleAzurermResourceGroup.name,
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_function_app(name="test-azure-functions",
resource_group_name=example_azurerm_resource_group["name"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.AppService.GetFunctionApp.Invoke(new()
{
Name = "test-azure-functions",
ResourceGroupName = exampleAzurermResourceGroup.Name,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appservice.LookupFunctionApp(ctx, &appservice.LookupFunctionAppArgs{
Name: "test-azure-functions",
ResourceGroupName: exampleAzurermResourceGroup.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.AppserviceFunctions;
import com.pulumi.azure.appservice.inputs.GetFunctionAppArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AppserviceFunctions.getFunctionApp(GetFunctionAppArgs.builder()
.name("test-azure-functions")
.resourceGroupName(exampleAzurermResourceGroup.name())
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:appservice:getFunctionApp
arguments:
name: test-azure-functions
resourceGroupName: ${exampleAzurermResourceGroup.name}
Content copied to clipboard
Return
A collection of values returned by getFunctionApp.
Parameters
argument
A collection of arguments for invoking getFunctionApp.
suspend fun getFunctionApp(name: String, resourceGroupName: String, tags: Map<String, String>? = null): GetFunctionAppResult
Return
A collection of values returned by getFunctionApp.
Parameters
name
The name of the Function App resource.
resource Group Name
The name of the Resource Group where the Function App exists.
tags
See also
suspend fun getFunctionApp(argument: suspend GetFunctionAppPlainArgsBuilder.() -> Unit): GetFunctionAppResult
Return
A collection of values returned by getFunctionApp.
Parameters
argument
Builder for com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppPlainArgs.