AuthScheme Parameter (Connect-CosmosDB Cmdlet)
The type of authentication to use when connecting to Azure Cosmos DB.
Syntax
Connect-CosmosDB -AuthScheme string
Possible Values
AccountKey, AzureAD, AzureServicePrincipal, AzureServicePrincipalCertData Type
cstr
Default Value
"AccountKey"
Remarks
- AccountKey: Set this to perform authentication with AccountKey and AccountEndpoint.
- AzureAD: Set this to perform Azure Active Directory OAuth authentication.
- AzureServicePrincipal: Set this to authenticate as an Azure Service Principal using a Client Secret.
- AzureServicePrincipalCert: Set this to authenticate as an Azure Service Principal using a Certificate.