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

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 Entra ID (formerly Azure Active Directory) 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 exampleAccountConnectionEntraId = new azure.cognitive.AccountConnectionEntraId("example", {
        name: "example-connection",
        cognitiveAccountId: exampleAccount.id,
        category: "AzureOpenAI",
        target: openai.endpoint,
        metadata: {
            ApiType: "Azure",
            ResourceId: openai.id,
            Location: openai.location,
        },
    });
    
    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_entra_id = azure.cognitive.AccountConnectionEntraId("example",
        name="example-connection",
        cognitive_account_id=example_account.id,
        category="AzureOpenAI",
        target=openai.endpoint,
        metadata={
            "ApiType": "Azure",
            "ResourceId": openai.id,
            "Location": openai.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/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.NewAccountConnectionEntraId(ctx, "example", &cognitive.AccountConnectionEntraIdArgs{
    			Name:               pulumi.String("example-connection"),
    			CognitiveAccountId: exampleAccount.ID().ToIDOutput().ToStringOutput(),
    			Category:           pulumi.String("AzureOpenAI"),
    			Target:             openai.Endpoint,
    			Metadata: pulumi.StringMap{
    				"ApiType":    pulumi.String("Azure"),
    				"ResourceId": openai.ID().ToIDOutput().ToStringOutput(),
    				"Location":   openai.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 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 exampleAccountConnectionEntraId = new Azure.Cognitive.AccountConnectionEntraId("example", new()
        {
            Name = "example-connection",
            CognitiveAccountId = exampleAccount.Id,
            Category = "AzureOpenAI",
            Target = openai.Endpoint,
            Metadata = 
            {
                { "ApiType", "Azure" },
                { "ResourceId", openai.Id },
                { "Location", openai.Location },
            },
        });
    
    });
    
    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.AccountConnectionEntraId;
    import com.pulumi.azure.cognitive.AccountConnectionEntraIdArgs;
    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 exampleAccountConnectionEntraId = new AccountConnectionEntraId("exampleAccountConnectionEntraId", AccountConnectionEntraIdArgs.builder()
                .name("example-connection")
                .cognitiveAccountId(exampleAccount.id())
                .category("AzureOpenAI")
                .target(openai.endpoint())
                .metadata(Map.ofEntries(
                    Map.entry("ApiType", "Azure"),
                    Map.entry("ResourceId", openai.id()),
                    Map.entry("Location", openai.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
      openai:
        type: azure:cognitive:Account
        properties:
          name: example-openai
          location: ${example.location}
          resourceGroupName: ${example.name}
          kind: OpenAI
          skuName: S0
          identity:
            type: SystemAssigned
      exampleAccountConnectionEntraId:
        type: azure:cognitive:AccountConnectionEntraId
        name: example
        properties:
          name: example-connection
          cognitiveAccountId: ${exampleAccount.id}
          category: AzureOpenAI
          target: ${openai.endpoint}
          metadata:
            ApiType: Azure
            ResourceId: ${openai.id}
            Location: ${openai.location}
    
    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_accountconnectionentraid" "example" {
      name                 = "example-connection"
      cognitive_account_id = azure_cognitive_account.example.id
      category             = "AzureOpenAI"
      target               = azure_cognitive_account.openai.endpoint
      metadata = {
        "ApiType"    = "Azure"
        "ResourceId" = azure_cognitive_account.openai.id
        "Location"   = azure_cognitive_account.openai.location
      }
    }
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.CognitiveServices - 2026-03-01

    Create AccountConnectionEntraId Resource

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

    Constructor syntax

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

    Parameters

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

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

    Category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Target string

    The target endpoint or resource for the connection.

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

    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    Category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Target string

    The target endpoint or resource for the connection.

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

    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    cognitive_account_id string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    target string

    The target endpoint or resource for the connection.

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

    metadata map(string)

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

    Note: The metadata map must include ResourceId when category is AIServices or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    category String
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    target String

    The target endpoint or resource for the connection.

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

    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    cognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    target string

    The target endpoint or resource for the connection.

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

    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    category str
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    cognitive_account_id str
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    target str

    The target endpoint or resource for the connection.

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

    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.
    category String
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    target String

    The target endpoint or resource for the connection.

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

    metadata Map<String>

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

    Note: The metadata map must include ResourceId when category is AIServices or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountConnectionEntraId 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 AccountConnectionEntraId Resource

    Get an existing AccountConnectionEntraId 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?: AccountConnectionEntraIdState, opts?: CustomResourceOptions): AccountConnectionEntraId
    @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) -> AccountConnectionEntraId
    func GetAccountConnectionEntraId(ctx *Context, name string, id IDInput, state *AccountConnectionEntraIdState, opts ...ResourceOption) (*AccountConnectionEntraId, error)
    public static AccountConnectionEntraId Get(string name, Input<string> id, AccountConnectionEntraIdState? state, CustomResourceOptions? opts = null)
    public static AccountConnectionEntraId get(String name, Output<String> id, AccountConnectionEntraIdState state, CustomResourceOptions options)
    resources:  _:    type: azure:cognitive:AccountConnectionEntraId    get:      id: ${id}
    import {
      to = azure_cognitive_account_connection_entra_id.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, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    Category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    category String
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    category string
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    category str
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    category String
    The category of the connection. Possible values are AIServices, ApiManagement, AppConfig, AzureOpenAI, AzureStorageAccount, CognitiveSearch, CognitiveService, CosmosDb, Databricks, ManagedOnlineEndpoint, MicrosoftFabric, and Sharepoint. Changing this forces a new resource to be created.
    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 or AzureStorageAccount, ApiType when category is AzureOpenAI, and Kind when category is CognitiveService. 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 an absolute HTTP or HTTPS URL when category is AzureStorageAccount.

    Import

    A Cognitive Services (Microsoft Foundry) Account Connection with Entra ID (formerly Azure Active Directory) authentication can be imported using the resource id, e.g.

    $ pulumi import azure:cognitive/accountConnectionEntraId:AccountConnectionEntraId 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