We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to fetch the Host Keys of an existing Function App
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppService.GetFunctionAppHostKeys.InvokeAsync(new Azure.AppService.GetFunctionAppHostKeysArgs
{
Name = "example-function",
ResourceGroupName = azurerm_resource_group.Example.Name,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appservice.GetFunctionAppHostKeys(ctx, &appservice.GetFunctionAppHostKeysArgs{
Name: "example-function",
ResourceGroupName: azurerm_resource_group.Example.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getFunctionAppHostKeys({
name: "example-function",
resourceGroupName: azurerm_resource_group.example.name,
});
import pulumi
import pulumi_azure as azure
example = azure.appservice.get_function_app_host_keys(name="example-function",
resource_group_name=azurerm_resource_group["example"]["name"])
Example coming soon!
Using getFunctionAppHostKeys
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFunctionAppHostKeys(args: GetFunctionAppHostKeysArgs, opts?: InvokeOptions): Promise<GetFunctionAppHostKeysResult>
function getFunctionAppHostKeysOutput(args: GetFunctionAppHostKeysOutputArgs, opts?: InvokeOptions): Output<GetFunctionAppHostKeysResult>def get_function_app_host_keys(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFunctionAppHostKeysResult
def get_function_app_host_keys_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFunctionAppHostKeysResult]func GetFunctionAppHostKeys(ctx *Context, args *GetFunctionAppHostKeysArgs, opts ...InvokeOption) (*GetFunctionAppHostKeysResult, error)
func GetFunctionAppHostKeysOutput(ctx *Context, args *GetFunctionAppHostKeysOutputArgs, opts ...InvokeOption) GetFunctionAppHostKeysResultOutput> Note: This function is named GetFunctionAppHostKeys in the Go SDK.
public static class GetFunctionAppHostKeys
{
public static Task<GetFunctionAppHostKeysResult> InvokeAsync(GetFunctionAppHostKeysArgs args, InvokeOptions? opts = null)
public static Output<GetFunctionAppHostKeysResult> Invoke(GetFunctionAppHostKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFunctionAppHostKeysResult> getFunctionAppHostKeys(GetFunctionAppHostKeysArgs args, InvokeOptions options)
public static Output<GetFunctionAppHostKeysResult> getFunctionAppHostKeys(GetFunctionAppHostKeysArgs args, InvokeOptions options)
fn::invoke:
function: azure:appservice/getFunctionAppHostKeys:getFunctionAppHostKeys
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Function App.
- Resource
Group stringName - The name of the Resource Group where the Function App exists.
- Name string
- The name of the Function App.
- Resource
Group stringName - The name of the Resource Group where the Function App exists.
- name String
- The name of the Function App.
- resource
Group StringName - The name of the Resource Group where the Function App exists.
- name string
- The name of the Function App.
- resource
Group stringName - The name of the Resource Group where the Function App exists.
- name str
- The name of the Function App.
- resource_
group_ strname - The name of the Resource Group where the Function App exists.
- name String
- The name of the Function App.
- resource
Group StringName - The name of the Resource Group where the Function App exists.
getFunctionAppHostKeys Result
The following output properties are available:
- Default
Function stringKey - Function App resource's default function key.
- Durabletask
Extension stringKey - Function App resource's Durable Task Extension system key.
- Event
Grid stringExtension Config Key - Function App resource's Event Grid Extension Config system key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Key string - Function App resource's secret key
- Name string
- Primary
Key string - Resource
Group stringName - Signalr
Extension stringKey - Function App resource's SignalR Extension system key.
- Default
Function stringKey - Function App resource's default function key.
- Durabletask
Extension stringKey - Function App resource's Durable Task Extension system key.
- Event
Grid stringExtension Config Key - Function App resource's Event Grid Extension Config system key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Key string - Function App resource's secret key
- Name string
- Primary
Key string - Resource
Group stringName - Signalr
Extension stringKey - Function App resource's SignalR Extension system key.
- default
Function StringKey - Function App resource's default function key.
- durabletask
Extension StringKey - Function App resource's Durable Task Extension system key.
- event
Grid StringExtension Config Key - Function App resource's Event Grid Extension Config system key.
- id String
- The provider-assigned unique ID for this managed resource.
- master
Key String - Function App resource's secret key
- name String
- primary
Key String - resource
Group StringName - signalr
Extension StringKey - Function App resource's SignalR Extension system key.
- default
Function stringKey - Function App resource's default function key.
- durabletask
Extension stringKey - Function App resource's Durable Task Extension system key.
- event
Grid stringExtension Config Key - Function App resource's Event Grid Extension Config system key.
- id string
- The provider-assigned unique ID for this managed resource.
- master
Key string - Function App resource's secret key
- name string
- primary
Key string - resource
Group stringName - signalr
Extension stringKey - Function App resource's SignalR Extension system key.
- default_
function_ strkey - Function App resource's default function key.
- durabletask_
extension_ strkey - Function App resource's Durable Task Extension system key.
- event_
grid_ strextension_ config_ key - Function App resource's Event Grid Extension Config system key.
- id str
- The provider-assigned unique ID for this managed resource.
- master_
key str - Function App resource's secret key
- name str
- primary_
key str - resource_
group_ strname - signalr_
extension_ strkey - Function App resource's SignalR Extension system key.
- default
Function StringKey - Function App resource's default function key.
- durabletask
Extension StringKey - Function App resource's Durable Task Extension system key.
- event
Grid StringExtension Config Key - Function App resource's Event Grid Extension Config system key.
- id String
- The provider-assigned unique ID for this managed resource.
- master
Key String - Function App resource's secret key
- name String
- primary
Key String - resource
Group StringName - signalr
Extension StringKey - Function App resource's SignalR Extension system key.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
