Observe the output of the query within the shell. To learn more, see the official MongoDB documentation for cursor.pretty. The pretty() method in Mongo displays the results of a query in a format that's easy to read. PromptĪfter the operation completes, the new database should appear in the list of databases. In the Database and Collection popup dialogs, use the details in this table. Open the context menu for your account, and select Create Database. The following steps will create a database named SourceDatabase and a collection named People: Make sure to replace the user and password tokens inside the string with your admin username and password (found in Azure Portal).Ħ.Select Connect. Paste the Connection string from the Azure Portal into the Connection String field. In the dialog that appears, select Mongo account > Connection String. Navigate to “Settings” > “Connection string”. Open the new Azure Cosmos DB for MongoDB (vCore) account in the Azure Portal. Your server will open in the SERVERS sidebar after you've successfully connected. If you selected Azure Active Directory authentication, you may be prompted to select a MongoDB connection string value to use for your connection. Enter the connection string for authentication.Įnter any unique name to use in the SERVERS sidebar. Only visible if using Basic authentication. Select the Azure AD account that you wish to use for authentication. Only visible if using Azure Active Directory authentication. Set this value to Mongo account to use with Azure Cosmos DB API for MongoDB.Īzure Active Directory - Universal with MFA supportĬhoose between Azure Active Directory or Basic authentication options. Once you're signed in to Azure, select the Azure Cosmos DB account you'd like to access or fill in the Connection Details from fields using the details in this table. In the dialog that appears, select Browse, and then select the + icon to sign in to Azure. If the Connection dialog doesn't open, select the New Connection icon in the SERVERS page: The first time you start Azure Data Studio the Connection dialog opens.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |