Azure Connector secrets store credentials for connecting to Azure Function Apps, enabling Control Plane to integrate with serverless Azure functions for custom processing or webhooks.
Use Cases
- Webhook Processing: Trigger Azure Functions from Control Plane events
- Custom Integrations: Connect to Azure-hosted business logic
- Serverless Workflows: Integrate with Azure Durable Functions
- Event Processing: Route events to Azure Function endpoints
Configuration Options
| Field | Description | Required |
|---|
url | Azure Function App deployment URL | Yes |
code | Function authentication key (host key or function key) | Yes |
The code is the function key that authenticates requests to your Azure Function. You can find it in the Azure Portal under your Function App’s App keys or Function keys section.
Create an Azure Connector Secret
Console UI
CLI
Terraform
Pulumi
Navigate to Secrets
In the Console, navigate to Secrets and click New, or use the Create dropdown in the top-right corner and select Secret.
Enter basic information
Enter a Name and optional Description.
Select secret type
Select Azure Connector as the secret type.
Configure connector data
Click Data in the left pane. Enter the URL (Azure Function App deployment URL) and the Code (authentication key).
Create the secret
Click Create.
cpln secret create-azure-connector \
--name azure-function-connector \
--url https://my-function-app.azurewebsites.net/api/webhook \
--code your-function-key-here \
--org my-org
resource "cpln_secret" "azure_connector" {
name = "azure-function-connector"
description = "Azure Function App webhook connector"
azure_connector {
url = "https://my-function-app.azurewebsites.net/api/webhook"
code = "your-function-key-here"
}
}
This example uses a placeholder function key for testing. In production, use Terraform variables or a secrets manager.
import * as cpln from "@pulumiverse/cpln";
const azureConnectorSecret = new cpln.Secret("azure-function-connector", {
name: "azure-function-connector",
description: "Azure Function App webhook connector",
azureConnector: {
url: "https://my-function-app.azurewebsites.net/api/webhook",
code: "your-function-key-here",
},
});
import pulumiverse_cpln as cpln
azure_connector_secret = cpln.Secret("azure-function-connector",
name="azure-function-connector",
description="Azure Function App webhook connector",
azure_connector={
"url": "https://my-function-app.azurewebsites.net/api/webhook",
"code": "your-function-key-here",
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-cpln/sdk/go/cpln"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cpln.NewSecret(ctx, "azure-function-connector", &cpln.SecretArgs{
Name: pulumi.String("azure-function-connector"),
Description: pulumi.String("Azure Function App webhook connector"),
AzureConnector: &cpln.SecretAzureConnectorArgs{
Url: pulumi.String("https://my-function-app.azurewebsites.net/api/webhook"),
Code: pulumi.String("your-function-key-here"),
},
})
return err
})
}
using Pulumi;
using Pulumiverse.Cpln;
using Pulumiverse.Cpln.Inputs;
return await Deployment.RunAsync(() =>
{
var azureConnectorSecret = new Secret("azure-function-connector", new SecretArgs
{
Name = "azure-function-connector",
Description = "Azure Function App webhook connector",
AzureConnector = new SecretAzureConnectorArgs
{
Url = "https://my-function-app.azurewebsites.net/api/webhook",
Code = "your-function-key-here",
},
});
});
Finding Your Function Key
Navigate to your Function App
Search for and select Function App, then select your function app from the list.
Access the keys
In the left menu, expand Functions, then select App keys for host-level keys. Alternatively, click on a specific function and select Function Keys for function-specific keys.
Copy the key
Copy the default key or create a new one for use in your Control Plane secret.
Use function-level keys when possible to limit access to specific functions. Use host keys only when you need to access multiple functions.
Azure Function URLs follow this pattern:
https://<function-app-name>.azurewebsites.net/api/<function-name>
For custom domains:
https://api.example.com/api/<function-name>
Next Steps