Share via


CosmosDBWorkflowExtensions.CreateCheckpointStoreUsingManagedIdentity Method

Definition

Overloads

Name Description
CreateCheckpointStoreUsingManagedIdentity(String, String, String, TokenCredential)

Creates a Cosmos DB checkpoint store using managed identity authentication.

CreateCheckpointStoreUsingManagedIdentity<T>(String, String, String, TokenCredential)

Creates a generic Cosmos DB checkpoint store using managed identity authentication.

CreateCheckpointStoreUsingManagedIdentity(String, String, String, TokenCredential)

Creates a Cosmos DB checkpoint store using managed identity authentication.

public static Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore CreateCheckpointStoreUsingManagedIdentity(string accountEndpoint, string databaseId, string containerId, Azure.Core.TokenCredential tokenCredential);
static member CreateCheckpointStoreUsingManagedIdentity : string * string * string * Azure.Core.TokenCredential -> Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore
Public Shared Function CreateCheckpointStoreUsingManagedIdentity (accountEndpoint As String, databaseId As String, containerId As String, tokenCredential As TokenCredential) As CosmosCheckpointStore

Parameters

accountEndpoint
String

The Cosmos DB account endpoint URI.

databaseId
String

The identifier of the Cosmos DB database.

containerId
String

The identifier of the Cosmos DB container.

tokenCredential
TokenCredential

The TokenCredential to use for authentication (e.g., DefaultAzureCredential, ManagedIdentityCredential).

Returns

A new instance of CosmosCheckpointStore.

Exceptions

Thrown when any string parameter is null or whitespace.

Thrown when tokenCredential is null.

Applies to

CreateCheckpointStoreUsingManagedIdentity<T>(String, String, String, TokenCredential)

Creates a generic Cosmos DB checkpoint store using managed identity authentication.

public static Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore<T> CreateCheckpointStoreUsingManagedIdentity<T>(string accountEndpoint, string databaseId, string containerId, Azure.Core.TokenCredential tokenCredential);
static member CreateCheckpointStoreUsingManagedIdentity : string * string * string * Azure.Core.TokenCredential -> Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore<'T>
Public Shared Function CreateCheckpointStoreUsingManagedIdentity(Of T) (accountEndpoint As String, databaseId As String, containerId As String, tokenCredential As TokenCredential) As CosmosCheckpointStore(Of T)

Type Parameters

T

The type of objects to store as checkpoint values.

Parameters

accountEndpoint
String

The Cosmos DB account endpoint URI.

databaseId
String

The identifier of the Cosmos DB database.

containerId
String

The identifier of the Cosmos DB container.

tokenCredential
TokenCredential

The TokenCredential to use for authentication (e.g., DefaultAzureCredential, ManagedIdentityCredential).

Returns

A new instance of CosmosCheckpointStore<T>.

Exceptions

Thrown when any string parameter is null or whitespace.

Thrown when tokenCredential is null.

Applies to