Create and use a database on Azure with Visual Studio Code
An Azure Database for PostgreSQL server resource provides you with a PostgreSQL server.
Create Azure Database with Visual Studio Code
Use this procedure for the following types of resources:
- PostgreSQL
- Cosmos DB databases with support for
- MongoDB
- Graph (Gremlin)
- Core (SQL) (previously known as DocumentDB)
Create a PostgreSQL database in Azure explorer
Install the Azure Databases extension for Visual Studio Code.
In Visual Studio Code, select Azure from the activity bar, then select the subscription where you want to create the database resource.
Right-click Cosmos DB and select Create server.
Create a MongoDB server
Select Azure Cosmos DB for MongoDB API from the list.
Use the following table to answer the questions to create the resource.
Prompt Answer Account name Provide a unique name for the resource. Capacity model Select Provisioned Throughput for constant usage. Select Serverless for less-frequent usage. Resource group Select an existing resource group or create a new resource group. This is a logical unit of all resources associated with a certain product, feature, or website. Location Select a location close to you. The Azure activity log displays the status.
Create a PostgreSQL server in Azure explorer
Select PostgreSQL from the list.
Use the following table to answer the questions to create the resource.
Prompt Answer PostgreSQL server Enter a name for your PostgreSQL server. This name is used as part of the connection string. SKU Select the pricing and options SKU. Administrator user name Enter an Administrator user name. Administrator password Enter an Administrator password, then enter it a second time in the next screen to confirm. Resource group Select an existing resource group or create a new resource group. This is a logical unit of all resources associated with a certain product, feature, or website. Location Select a location close to you. The Azure activity log displays the status.
Next steps
Povratne informacije
Pošalјite i prikažite povratne informacije za