We recommend using Azure Native.
published on Wednesday, Sep 2, 2026 by Pulumi
We recommend using Azure Native.
published on Wednesday, Sep 2, 2026 by Pulumi
Manages a Cognitive Services (Microsoft Foundry) Account Connection with Custom Keys authentication.
Note: In the new Foundry portal experience, “Account Connections” are shown as “Tools” under the “Build” menu.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAccount = new azure.cognitive.Account("example", {
name: "example-aiservices",
location: example.location,
resourceGroupName: example.name,
kind: "AIServices",
skuName: "S0",
projectManagementEnabled: true,
customSubdomainName: "exampleaiservices",
identity: {
type: "SystemAssigned",
},
});
const openai = new azure.cognitive.Account("openai", {
name: "example-openai",
location: example.location,
resourceGroupName: example.name,
kind: "OpenAI",
skuName: "S0",
identity: {
type: "SystemAssigned",
},
});
const exampleAccountConnectionCustomKeys = new azure.cognitive.AccountConnectionCustomKeys("example", {
name: "example-connection",
cognitiveAccountId: exampleAccount.id,
category: "CustomKeys",
target: openai.endpoint,
metadata: {
ApiType: "Azure",
ResourceId: openai.id,
Location: openai.location,
},
customKeys: {
primaryKey: openai.primaryAccessKey,
secondaryKey: openai.secondaryAccessKey,
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.cognitive.Account("example",
name="example-aiservices",
location=example.location,
resource_group_name=example.name,
kind="AIServices",
sku_name="S0",
project_management_enabled=True,
custom_subdomain_name="exampleaiservices",
identity={
"type": "SystemAssigned",
})
openai = azure.cognitive.Account("openai",
name="example-openai",
location=example.location,
resource_group_name=example.name,
kind="OpenAI",
sku_name="S0",
identity={
"type": "SystemAssigned",
})
example_account_connection_custom_keys = azure.cognitive.AccountConnectionCustomKeys("example",
name="example-connection",
cognitive_account_id=example_account.id,
category="CustomKeys",
target=openai.endpoint,
metadata={
"ApiType": "Azure",
"ResourceId": openai.id,
"Location": openai.location,
},
custom_keys={
"primaryKey": openai.primary_access_key,
"secondaryKey": openai.secondary_access_key,
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cognitive"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := cognitive.NewAccount(ctx, "example", &cognitive.AccountArgs{
Name: pulumi.String("example-aiservices"),
Location: example.Location,
ResourceGroupName: example.Name,
Kind: pulumi.String("AIServices"),
SkuName: pulumi.String("S0"),
ProjectManagementEnabled: pulumi.Bool(true),
CustomSubdomainName: pulumi.String("exampleaiservices"),
Identity: &cognitive.AccountIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
openai, err := cognitive.NewAccount(ctx, "openai", &cognitive.AccountArgs{
Name: pulumi.String("example-openai"),
Location: example.Location,
ResourceGroupName: example.Name,
Kind: pulumi.String("OpenAI"),
SkuName: pulumi.String("S0"),
Identity: &cognitive.AccountIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
_, err = cognitive.NewAccountConnectionCustomKeys(ctx, "example", &cognitive.AccountConnectionCustomKeysArgs{
Name: pulumi.String("example-connection"),
CognitiveAccountId: exampleAccount.ID().ToIDOutput().ToStringOutput(),
Category: pulumi.String("CustomKeys"),
Target: openai.Endpoint,
Metadata: pulumi.StringMap{
"ApiType": pulumi.String("Azure"),
"ResourceId": openai.ID().ToIDOutput().ToStringOutput(),
"Location": openai.Location,
},
CustomKeys: pulumi.StringMap{
"primaryKey": openai.PrimaryAccessKey,
"secondaryKey": openai.SecondaryAccessKey,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Cognitive.Account("example", new()
{
Name = "example-aiservices",
Location = example.Location,
ResourceGroupName = example.Name,
Kind = "AIServices",
SkuName = "S0",
ProjectManagementEnabled = true,
CustomSubdomainName = "exampleaiservices",
Identity = new Azure.Cognitive.Inputs.AccountIdentityArgs
{
Type = "SystemAssigned",
},
});
var openai = new Azure.Cognitive.Account("openai", new()
{
Name = "example-openai",
Location = example.Location,
ResourceGroupName = example.Name,
Kind = "OpenAI",
SkuName = "S0",
Identity = new Azure.Cognitive.Inputs.AccountIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleAccountConnectionCustomKeys = new Azure.Cognitive.AccountConnectionCustomKeys("example", new()
{
Name = "example-connection",
CognitiveAccountId = exampleAccount.Id,
Category = "CustomKeys",
Target = openai.Endpoint,
Metadata =
{
{ "ApiType", "Azure" },
{ "ResourceId", openai.Id },
{ "Location", openai.Location },
},
CustomKeys =
{
{ "primaryKey", openai.PrimaryAccessKey },
{ "secondaryKey", openai.SecondaryAccessKey },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cognitive.Account;
import com.pulumi.azure.cognitive.AccountArgs;
import com.pulumi.azure.cognitive.inputs.AccountIdentityArgs;
import com.pulumi.azure.cognitive.AccountConnectionCustomKeys;
import com.pulumi.azure.cognitive.AccountConnectionCustomKeysArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example-aiservices")
.location(example.location())
.resourceGroupName(example.name())
.kind("AIServices")
.skuName("S0")
.projectManagementEnabled(true)
.customSubdomainName("exampleaiservices")
.identity(AccountIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var openai = new Account("openai", AccountArgs.builder()
.name("example-openai")
.location(example.location())
.resourceGroupName(example.name())
.kind("OpenAI")
.skuName("S0")
.identity(AccountIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleAccountConnectionCustomKeys = new AccountConnectionCustomKeys("exampleAccountConnectionCustomKeys", AccountConnectionCustomKeysArgs.builder()
.name("example-connection")
.cognitiveAccountId(exampleAccount.id())
.category("CustomKeys")
.target(openai.endpoint())
.metadata(Map.ofEntries(
Map.entry("ApiType", "Azure"),
Map.entry("ResourceId", openai.id()),
Map.entry("Location", openai.location())
))
.customKeys(Map.ofEntries(
Map.entry("primaryKey", openai.primaryAccessKey()),
Map.entry("secondaryKey", openai.secondaryAccessKey())
))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:cognitive:Account
name: example
properties:
name: example-aiservices
location: ${example.location}
resourceGroupName: ${example.name}
kind: AIServices
skuName: S0
projectManagementEnabled: true
customSubdomainName: exampleaiservices
identity:
type: SystemAssigned
openai:
type: azure:cognitive:Account
properties:
name: example-openai
location: ${example.location}
resourceGroupName: ${example.name}
kind: OpenAI
skuName: S0
identity:
type: SystemAssigned
exampleAccountConnectionCustomKeys:
type: azure:cognitive:AccountConnectionCustomKeys
name: example
properties:
name: example-connection
cognitiveAccountId: ${exampleAccount.id}
category: CustomKeys
target: ${openai.endpoint}
metadata:
ApiType: Azure
ResourceId: ${openai.id}
Location: ${openai.location}
customKeys:
primaryKey: ${openai.primaryAccessKey}
secondaryKey: ${openai.secondaryAccessKey}
pulumi {
required_providers {
azure = {
source = "pulumi/azure"
}
}
}
resource "azure_core_resourcegroup" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azure_cognitive_account" "example" {
name = "example-aiservices"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
kind = "AIServices"
sku_name = "S0"
project_management_enabled = true
custom_subdomain_name = "exampleaiservices"
identity = {
type = "SystemAssigned"
}
}
resource "azure_cognitive_account" "openai" {
name = "example-openai"
location = azure_core_resourcegroup.example.location
resource_group_name = azure_core_resourcegroup.example.name
kind = "OpenAI"
sku_name = "S0"
identity = {
type = "SystemAssigned"
}
}
resource "azure_cognitive_accountconnectioncustomkeys" "example" {
name = "example-connection"
cognitive_account_id = azure_cognitive_account.example.id
category = "CustomKeys"
target = azure_cognitive_account.openai.endpoint
metadata = {
"ApiType" = "Azure"
"ResourceId" = azure_cognitive_account.openai.id
"Location" = azure_cognitive_account.openai.location
}
custom_keys = {
"primaryKey" = azure_cognitive_account.openai.primary_access_key
"secondaryKey" = azure_cognitive_account.openai.secondary_access_key
}
}
API Providers
This resource uses the following Azure API Providers:
Microsoft.CognitiveServices- 2026-03-01
Create AccountConnectionCustomKeys Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccountConnectionCustomKeys(name: string, args: AccountConnectionCustomKeysArgs, opts?: CustomResourceOptions);@overload
def AccountConnectionCustomKeys(resource_name: str,
args: AccountConnectionCustomKeysArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccountConnectionCustomKeys(resource_name: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
cognitive_account_id: Optional[str] = None,
custom_keys: Optional[Mapping[str, str]] = None,
target: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)func NewAccountConnectionCustomKeys(ctx *Context, name string, args AccountConnectionCustomKeysArgs, opts ...ResourceOption) (*AccountConnectionCustomKeys, error)public AccountConnectionCustomKeys(string name, AccountConnectionCustomKeysArgs args, CustomResourceOptions? opts = null)
public AccountConnectionCustomKeys(String name, AccountConnectionCustomKeysArgs args)
public AccountConnectionCustomKeys(String name, AccountConnectionCustomKeysArgs args, CustomResourceOptions options)
type: azure:cognitive:AccountConnectionCustomKeys
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure_cognitive_account_connection_custom_keys" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AccountConnectionCustomKeysArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccountConnectionCustomKeysArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccountConnectionCustomKeysArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountConnectionCustomKeysArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountConnectionCustomKeysArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accountConnectionCustomKeysResource = new Azure.Cognitive.AccountConnectionCustomKeys("accountConnectionCustomKeysResource", new()
{
Category = "string",
CognitiveAccountId = "string",
CustomKeys =
{
{ "string", "string" },
},
Target = "string",
Metadata =
{
{ "string", "string" },
},
Name = "string",
});
example, err := cognitive.NewAccountConnectionCustomKeys(ctx, "accountConnectionCustomKeysResource", &cognitive.AccountConnectionCustomKeysArgs{
Category: pulumi.String("string"),
CognitiveAccountId: pulumi.String("string"),
CustomKeys: pulumi.StringMap{
"string": pulumi.String("string"),
},
Target: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
resource "azure_cognitive_account_connection_custom_keys" "accountConnectionCustomKeysResource" {
lifecycle {
create_before_destroy = true
}
category = "string"
cognitive_account_id = "string"
custom_keys = {
"string" = "string"
}
target = "string"
metadata = {
"string" = "string"
}
name = "string"
}
var accountConnectionCustomKeysResource = new AccountConnectionCustomKeys("accountConnectionCustomKeysResource", AccountConnectionCustomKeysArgs.builder()
.category("string")
.cognitiveAccountId("string")
.customKeys(Map.of("string", "string"))
.target("string")
.metadata(Map.of("string", "string"))
.name("string")
.build());
account_connection_custom_keys_resource = azure.cognitive.AccountConnectionCustomKeys("accountConnectionCustomKeysResource",
category="string",
cognitive_account_id="string",
custom_keys={
"string": "string",
},
target="string",
metadata={
"string": "string",
},
name="string")
const accountConnectionCustomKeysResource = new azure.cognitive.AccountConnectionCustomKeys("accountConnectionCustomKeysResource", {
category: "string",
cognitiveAccountId: "string",
customKeys: {
string: "string",
},
target: "string",
metadata: {
string: "string",
},
name: "string",
});
type: azure:cognitive:AccountConnectionCustomKeys
properties:
category: string
cognitiveAccountId: string
customKeys:
string: string
metadata:
string: string
name: string
target: string
AccountConnectionCustomKeys Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccountConnectionCustomKeys resource accepts the following input properties:
- Category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - Cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- Custom
Keys Dictionary<string, string> - A mapping of custom keys for authentication. All values in this map are sensitive.
- Target string
- The target endpoint or resource for the connection.
- Metadata Dictionary<string, string>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- Name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- Category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - Cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- Custom
Keys map[string]string - A mapping of custom keys for authentication. All values in this map are sensitive.
- Target string
- The target endpoint or resource for the connection.
- Metadata map[string]string
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- Name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive_
account_ stringid - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom_
keys map(string) - A mapping of custom keys for authentication. All values in this map are sensitive.
- target string
- The target endpoint or resource for the connection.
- metadata map(string)
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- category String
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account StringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys Map<String,String> - A mapping of custom keys for authentication. All values in this map are sensitive.
- target String
- The target endpoint or resource for the connection.
- metadata Map<String,String>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name String
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys {[key: string]: string} - A mapping of custom keys for authentication. All values in this map are sensitive.
- target string
- The target endpoint or resource for the connection.
- metadata {[key: string]: string}
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- category str
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive_
account_ strid - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom_
keys Mapping[str, str] - A mapping of custom keys for authentication. All values in this map are sensitive.
- target str
- The target endpoint or resource for the connection.
- metadata Mapping[str, str]
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name str
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- category String
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account StringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys Map<String> - A mapping of custom keys for authentication. All values in this map are sensitive.
- target String
- The target endpoint or resource for the connection.
- metadata Map<String>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name String
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccountConnectionCustomKeys resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AccountConnectionCustomKeys Resource
Get an existing AccountConnectionCustomKeys resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccountConnectionCustomKeysState, opts?: CustomResourceOptions): AccountConnectionCustomKeys@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
cognitive_account_id: Optional[str] = None,
custom_keys: Optional[Mapping[str, str]] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
target: Optional[str] = None) -> AccountConnectionCustomKeysfunc GetAccountConnectionCustomKeys(ctx *Context, name string, id IDInput, state *AccountConnectionCustomKeysState, opts ...ResourceOption) (*AccountConnectionCustomKeys, error)public static AccountConnectionCustomKeys Get(string name, Input<string> id, AccountConnectionCustomKeysState? state, CustomResourceOptions? opts = null)public static AccountConnectionCustomKeys get(String name, Output<String> id, AccountConnectionCustomKeysState state, CustomResourceOptions options)resources: _: type: azure:cognitive:AccountConnectionCustomKeys get: id: ${id}import {
to = azure_cognitive_account_connection_custom_keys.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - Cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- Custom
Keys Dictionary<string, string> - A mapping of custom keys for authentication. All values in this map are sensitive.
- Metadata Dictionary<string, string>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- Name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- Target string
- The target endpoint or resource for the connection.
- Category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - Cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- Custom
Keys map[string]string - A mapping of custom keys for authentication. All values in this map are sensitive.
- Metadata map[string]string
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- Name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- Target string
- The target endpoint or resource for the connection.
- category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive_
account_ stringid - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom_
keys map(string) - A mapping of custom keys for authentication. All values in this map are sensitive.
- metadata map(string)
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- target string
- The target endpoint or resource for the connection.
- category String
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account StringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys Map<String,String> - A mapping of custom keys for authentication. All values in this map are sensitive.
- metadata Map<String,String>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name String
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- target String
- The target endpoint or resource for the connection.
- category string
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account stringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys {[key: string]: string} - A mapping of custom keys for authentication. All values in this map are sensitive.
- metadata {[key: string]: string}
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name string
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- target string
- The target endpoint or resource for the connection.
- category str
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive_
account_ strid - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom_
keys Mapping[str, str] - A mapping of custom keys for authentication. All values in this map are sensitive.
- metadata Mapping[str, str]
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name str
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- target str
- The target endpoint or resource for the connection.
- category String
- The category of the connection. Possible values are
CustomKeys,RemoteA2A, andRemoteTool. Changing this forces a new resource to be created. - cognitive
Account StringId - The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
- custom
Keys Map<String> - A mapping of custom keys for authentication. All values in this map are sensitive.
- metadata Map<String>
A mapping of metadata key-value pairs for the connection.
Note: To determine the
metadatashape for a connection category, create an equivalent connection in the Foundry portal, retrieve its resource ID, then inspect it withaz rest --method get --url "{connection_resource_id}?api-version=2026-03-01".- name String
- The name of the Cognitive Services Account Connection. Changing this forces a new resource to be created.
- target String
- The target endpoint or resource for the connection.
Import
A Cognitive Services (Microsoft Foundry) Account Connection with Custom Keys authentication can be imported using the resource id, e.g.
$ pulumi import azure:cognitive/accountConnectionCustomKeys:AccountConnectionCustomKeys example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.CognitiveServices/accounts/account1/connections/connection1
To learn more about importing existing cloud resources, see Importing resources.
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.
published on Wednesday, Sep 2, 2026 by Pulumi