AzureCosmosDBResource Properties
Class Properties 8 members
A resource that represents an Azure Cosmos DB.
Gets the account key expression for the Cosmos DB account.
public ReferenceExpression? AccountKey { get; }Remarks
This is only available for emulator and access key authentication. For Entra ID authentication, this property will be null.
Gets the "connectionString" reference from the secret outputs of the Azure Cosmos DB resource.
public BicepSecretOutputReference ConnectionString { get; } Gets the connection string template for the manifest for the Azure Cosmos DB resource.
public ReferenceExpression ConnectionStringExpression { get; } Gets the "connectionString" output reference from the bicep template for the Azure Cosmos DB resource. This is used when Entra ID authentication is used. The connection string is an output of the bicep template.
public BicepOutputReference ConnectionStringOutput { get; }Remarks
The value is taken from the cosmos.properties.documentEndpoint bicep property and contains an endpoint.
Gets a value indicating whether the Azure Cosmos DB resource is running in the local emulator.
public bool IsEmulator { get; } Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; } Gets the account endpoint URI expression for the Cosmos DB account.
public ReferenceExpression UriExpression { get; }Remarks
Format:
https://{name}.documents.azure.com:443/. Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }