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
data sources instead.
Example Usage
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(azurerm_resource_group.example().name())
.build());
}
}
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.
See also
Parameters
name
The name of the Function App resource.
resource Group Name
The name of the Resource Group where the Function App exists.
tags
suspend fun getFunctionApp(argument: suspend GetFunctionAppPlainArgsBuilder.() -> Unit): GetFunctionAppResult
Return
A collection of values returned by getFunctionApp.
See also
Parameters
argument
Builder for com.pulumi.azure.appservice.kotlin.inputs.GetFunctionAppPlainArgs.