1. Registry
  2. Packages
  3. Azure Classic
  4. API Docs
  5. cognitive
  6. AccountConnectionAccountManagedIdentity

We recommend using Azure Native.

Viewing docs for Azure v6.40.0
published on Wednesday, Sep 2, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.40.0
published on Wednesday, Sep 2, 2026 by Pulumi

    Manages a Cognitive Services (Microsoft Foundry) Account Connection with Account Managed Identity 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 current = azure.core.getClientConfig({});
    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 exampleKeyVault = new azure.keyvault.KeyVault("example", {
        name: "examplekeyvaultacct",
        location: example.location,
        resourceGroupName: example.name,
        tenantId: current.then(current => current.tenantId),
        skuName: "standard",
    });
    const exampleAccountConnectionAccountManagedIdentity = new azure.cognitive.AccountConnectionAccountManagedIdentity("example", {
        name: "example-connection",
        cognitiveAccountId: exampleAccount.id,
        category: "AzureKeyVault",
        target: exampleKeyVault.vaultUri,
        metadata: {
            ApiType: "Azure",
            ResourceId: exampleKeyVault.id,
            Location: exampleKeyVault.location,
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    current = azure.core.get_client_config()
    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",
        })
    example_key_vault = azure.keyvault.KeyVault("example",
        name="examplekeyvaultacct",
        location=example.location,
        resource_group_name=example.name,
        tenant_id=current.tenant_id,
        sku_name="standard")
    example_account_connection_account_managed_identity = azure.cognitive.AccountConnectionAccountManagedIdentity("example",
        name="example-connection",
        cognitive_account_id=example_account.id,
        category="AzureKeyVault",
        target=example_key_vault.vault_uri,
        metadata={
            "ApiType": "Azure",
            "ResourceId": example_key_vault.id,
            "Location": example_key_vault.location,
        })
    
    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-azure/sdk/v6/go/azure/keyvault"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		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
    		}
    		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
    			Name:              pulumi.String("examplekeyvaultacct"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			TenantId:          pulumi.String(current.TenantId),
    			SkuName:           pulumi.String("standard"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cognitive.NewAccountConnectionAccountManagedIdentity(ctx, "example", &cognitive.AccountConnectionAccountManagedIdentityArgs{
    			Name:               pulumi.String("example-connection"),
    			CognitiveAccountId: exampleAccount.ID().ToIDOutput().ToStringOutput(),
    			Category:           pulumi.String("AzureKeyVault"),
    			Target:             exampleKeyVault.VaultUri,
    			Metadata: pulumi.StringMap{
    				"ApiType":    pulumi.String("Azure"),
    				"ResourceId": exampleKeyVault.ID().ToIDOutput().ToStringOutput(),
    				"Location":   exampleKeyVault.Location,
    			},
    		})
    		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 current = Azure.Core.GetClientConfig.Invoke();
    
        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 exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
        {
            Name = "examplekeyvaultacct",
            Location = example.Location,
            ResourceGroupName = example.Name,
            TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
            SkuName = "standard",
        });
    
        var exampleAccountConnectionAccountManagedIdentity = new Azure.Cognitive.AccountConnectionAccountManagedIdentity("example", new()
        {
            Name = "example-connection",
            CognitiveAccountId = exampleAccount.Id,
            Category = "AzureKeyVault",
            Target = exampleKeyVault.VaultUri,
            Metadata = 
            {
                { "ApiType", "Azure" },
                { "ResourceId", exampleKeyVault.Id },
                { "Location", exampleKeyVault.Location },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.CoreFunctions;
    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.keyvault.KeyVault;
    import com.pulumi.azure.keyvault.KeyVaultArgs;
    import com.pulumi.azure.cognitive.AccountConnectionAccountManagedIdentity;
    import com.pulumi.azure.cognitive.AccountConnectionAccountManagedIdentityArgs;
    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) {
            final var current = CoreFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            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 exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
                .name("examplekeyvaultacct")
                .location(example.location())
                .resourceGroupName(example.name())
                .tenantId(current.tenantId())
                .skuName("standard")
                .build());
    
            var exampleAccountConnectionAccountManagedIdentity = new AccountConnectionAccountManagedIdentity("exampleAccountConnectionAccountManagedIdentity", AccountConnectionAccountManagedIdentityArgs.builder()
                .name("example-connection")
                .cognitiveAccountId(exampleAccount.id())
                .category("AzureKeyVault")
                .target(exampleKeyVault.vaultUri())
                .metadata(Map.ofEntries(
                    Map.entry("ApiType", "Azure"),
                    Map.entry("ResourceId", exampleKeyVault.id()),
                    Map.entry("Location", exampleKeyVault.location())
                ))
                .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
      exampleKeyVault:
        type: azure:keyvault:KeyVault
        name: example
        properties:
          name: examplekeyvaultacct
          location: ${example.location}
          resourceGroupName: ${example.name}
          tenantId: ${current.tenantId}
          skuName: standard
      exampleAccountConnectionAccountManagedIdentity:
        type: azure:cognitive:AccountConnectionAccountManagedIdentity
        name: example
        properties:
          name: example-connection
          cognitiveAccountId: ${exampleAccount.id}
          category: AzureKeyVault
          target: ${exampleKeyVault.vaultUri}
          metadata:
            ApiType: Azure
            ResourceId: ${exampleKeyVault.id}
            Location: ${exampleKeyVault.location}
    variables:
      current:
        fn::invoke:
          function: azure:core:getClientConfig
          arguments: {}
    
    pulumi {
      required_providers {
        azure = {
          source = "pulumi/azure"
        }
      }
    }
    
    data "azure_core_getclientconfig" "current" {
    }
    
    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_keyvault_keyvault" "example" {
      name                = "examplekeyvaultacct"
      location            = azure_core_resourcegroup.example.location
      resource_group_name = azure_core_resourcegroup.example.name
      tenant_id           = data.azure_core_getclientconfig.current.tenant_id
      sku_name            = "standard"
    }
    resource "azure_cognitive_accountconnectionaccountmanagedidentity" "example" {
      name                 = "example-connection"
      cognitive_account_id = azure_cognitive_account.example.id
      category             = "AzureKeyVault"
      target               = azure_keyvault_keyvault.example.vault_uri
      metadata = {
        "ApiType"    = "Azure"
        "ResourceId" = azure_keyvault_keyvault.example.id
        "Location"   = azure_keyvault_keyvault.example.location
      }
    }
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.CognitiveServices - 2026-03-01

    Create AccountConnectionAccountManagedIdentity Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountConnectionAccountManagedIdentity(name: string, args: AccountConnectionAccountManagedIdentityArgs, opts?: CustomResourceOptions);
    @overload
    def AccountConnectionAccountManagedIdentity(resource_name: str,
                                                args: AccountConnectionAccountManagedIdentityArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountConnectionAccountManagedIdentity(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                category: Optional[str] = None,
                                                cognitive_account_id: Optional[str] = None,
                                                metadata: Optional[Mapping[str, str]] = None,
                                                target: Optional[str] = None,
                                                name: Optional[str] = None)
    func NewAccountConnectionAccountManagedIdentity(ctx *Context, name string, args AccountConnectionAccountManagedIdentityArgs, opts ...ResourceOption) (*AccountConnectionAccountManagedIdentity, error)
    public AccountConnectionAccountManagedIdentity(string name, AccountConnectionAccountManagedIdentityArgs args, CustomResourceOptions? opts = null)
    public AccountConnectionAccountManagedIdentity(String name, AccountConnectionAccountManagedIdentityArgs args)
    public AccountConnectionAccountManagedIdentity(String name, AccountConnectionAccountManagedIdentityArgs args, CustomResourceOptions options)
    
    type: azure:cognitive:AccountConnectionAccountManagedIdentity
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure_cognitive_account_connection_account_managed_identity" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountConnectionAccountManagedIdentityArgs
    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 AccountConnectionAccountManagedIdentityArgs
    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 AccountConnectionAccountManagedIdentityArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountConnectionAccountManagedIdentityArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountConnectionAccountManagedIdentityArgs
    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 accountConnectionAccountManagedIdentityResource = new Azure.Cognitive.AccountConnectionAccountManagedIdentity("accountConnectionAccountManagedIdentityResource", new()
    {
        Category = "string",
        CognitiveAccountId = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        Target = "string",
        Name = "string",
    });
    
    example, err := cognitive.NewAccountConnectionAccountManagedIdentity(ctx, "accountConnectionAccountManagedIdentityResource", &cognitive.AccountConnectionAccountManagedIdentityArgs{
    	Category:           pulumi.String("string"),
    	CognitiveAccountId: pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Target: pulumi.String("string"),
    	Name:   pulumi.String("string"),
    })
    
    resource "azure_cognitive_account_connection_account_managed_identity" "accountConnectionAccountManagedIdentityResource" {
      lifecycle {
        create_before_destroy = true
      }
      category             = "string"
      cognitive_account_id = "string"
      metadata = {
        "string" = "string"
      }
      target = "string"
      name   = "string"
    }
    
    var accountConnectionAccountManagedIdentityResource = new AccountConnectionAccountManagedIdentity("accountConnectionAccountManagedIdentityResource", AccountConnectionAccountManagedIdentityArgs.builder()
        .category("string")
        .cognitiveAccountId("string")
        .metadata(Map.of("string", "string"))
        .target("string")
        .name("string")
        .build());
    
    account_connection_account_managed_identity_resource = azure.cognitive.AccountConnectionAccountManagedIdentity("accountConnectionAccountManagedIdentityResource",
        category="string",
        cognitive_account_id="string",
        metadata={
            "string": "string",
        },
        target="string",
        name="string")
    
    const accountConnectionAccountManagedIdentityResource = new azure.cognitive.AccountConnectionAccountManagedIdentity("accountConnectionAccountManagedIdentityResource", {
        category: "string",
        cognitiveAccountId: "string",
        metadata: {
            string: "string",
        },
        target: "string",
        name: "string",
    });
    
    type: azure:cognitive:AccountConnectionAccountManagedIdentity
    properties:
        category: string
        cognitiveAccountId: string
        metadata:
            string: string
        name: string
        target: string
    

    AccountConnectionAccountManagedIdentity 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 AccountConnectionAccountManagedIdentity resource accepts the following input properties:

    Category string

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Metadata Dictionary<string, string>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    Target string

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Metadata map[string]string

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    Target string

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitive_account_id string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata map(string)

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    target string

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Map<String,String>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    target String

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata {[key: string]: string}

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    target string

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitive_account_id str
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Mapping[str, str]

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    target str

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Map<String>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az rest --method get --url "{connection_resource_id}?api-version=2026-03-01".

    target String

    The target endpoint or resource for the connection.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    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 AccountConnectionAccountManagedIdentity 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 AccountConnectionAccountManagedIdentity Resource

    Get an existing AccountConnectionAccountManagedIdentity 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?: AccountConnectionAccountManagedIdentityState, opts?: CustomResourceOptions): AccountConnectionAccountManagedIdentity
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            category: Optional[str] = None,
            cognitive_account_id: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            target: Optional[str] = None) -> AccountConnectionAccountManagedIdentity
    func GetAccountConnectionAccountManagedIdentity(ctx *Context, name string, id IDInput, state *AccountConnectionAccountManagedIdentityState, opts ...ResourceOption) (*AccountConnectionAccountManagedIdentity, error)
    public static AccountConnectionAccountManagedIdentity Get(string name, Input<string> id, AccountConnectionAccountManagedIdentityState? state, CustomResourceOptions? opts = null)
    public static AccountConnectionAccountManagedIdentity get(String name, Output<String> id, AccountConnectionAccountManagedIdentityState state, CustomResourceOptions options)
    resources:  _:    type: azure:cognitive:AccountConnectionAccountManagedIdentity    get:      id: ${id}
    import {
      to = azure_cognitive_account_connection_account_managed_identity.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.
    The following state arguments are supported:
    Category string

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Metadata Dictionary<string, string>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    Category string

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Metadata map[string]string

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    category string

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitive_account_id string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata map(string)

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    category String

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Map<String,String>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    category string

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata {[key: string]: string}

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    category str

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitive_account_id str
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Mapping[str, str]

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    category String

    The category of the connection. Possible values are AIServices, AzureKeyVault, AzureOpenAI, and AzureStorageAccount. Changing this forces a new resource to be created.

    Note: Only one Account Managed Identity connection with the AzureKeyVault category can exist per Cognitive Services Account.

    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    metadata Map<String>

    A mapping of metadata key-value pairs for the connection.

    Note: The metadata map must include ResourceId when category is AIServices, AzureKeyVault, or AzureStorageAccount, and must include ApiType when category is AzureOpenAI. To check any additional metadata returned by Azure, create an equivalent connection in the Foundry portal and inspect it with az 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.

    Note: target must be the Key Vault URI when category is AzureKeyVault.

    Note: target must be an absolute HTTPS URL when category is AzureStorageAccount.

    Import

    A Cognitive Services (Microsoft Foundry) Account Connection with Account Managed Identity authentication can be imported using the resource id, e.g.

    $ pulumi import azure:cognitive/accountConnectionAccountManagedIdentity:AccountConnectionAccountManagedIdentity 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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.40.0
    published on Wednesday, Sep 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial