Connect-CosmosDB Cmdlet
Opens a new connection to Azure Cosmos DB.
Syntax
$CosmosDBConnection = Connect-CosmosDB [parameters]
Remarks
The Connect-CosmosDB cmdlet is used to create a persistent connection object to be used with related cmdlets. When executing the cmdlet a connection object is returned. Pass this object to the Connection parameter of related cmdlets to use the newly created connection object. To close the connection, call Disconnect-CosmosDB.
See Establishing a Connection for common connection parameters and more information.