Provisioning Azure relational database services to create Azure SQL, MySQL, and PostgreSQL database resources

An Azure subscription was required. I visited https://azure.microsoft.com/free and signed in with a Microsoft account that I already had. That took me to the Azure portal. I selected + Create a resource:

Create a resource

I searched for Azure SQL:

Create a resource

I clicked Create Azure SQL:

Create Azure SQL Resource

I clicked Start with an Azure free trial to get $200 free credit toward Azure products and services, plus 12 months of popular free services:

Start with an Azure free trial

I clicked Start free:

Start free

I received a message saying that I already had an Azure account. I clicked Sign up for a Pay-As-You-Go subscription.

Show that I already had an Azure account

I clicked Upgrade your account.

Click Upgrade your account

I provided my phone number for identity purposes and clicked Text me:

Provide phone number for identity purposes

I provided the code that I received on my phone and clicked Verify code:

Click Verify code

I provided a subscription name, chose the Basic support plan, and clicked Upgrade to pay as you go:

Upgrade to pay as you go

I received a message revealing that I had upgraded my account successfully. I followed the steps above one more time, to Create Azure SQL resource. I reviewed the Azure SQL options that were available, and then in the SQL databases tile, I ensured that Single database was selected. Finally, I clicked Create in the SQL databases section, keeping Single instance as the Resource type:

Create SQL managed instance

I entered the following values on the Create SQL Database Server page, and left all other properties with their default setting:

I clicked Apply offer (Preview):

Apply Offer

After applying the free database offer, the cost per month changed to 0.00 USD:

Free database offer applied

Create SQL Database, Basics tab, part 1 of 2:

Create SQL Database, Basics tab, part 1 of 2

Create SQL Database, Basics tab, part 2 of 2:

Create SQL Database, Basics tab, part 2 of 2

Create SQL Database, Networking tab:

Create SQL Database, Networking tab

Create SQL Database, Security tab, part 1 of 2:

Create SQL Database, Security tab, part 1 of 2

Create SQL Database, Security tab, part 2 of 2:

Create SQL Database, Security tab, part 2 of 2

Create SQL Database, Additional settings tab:

Create SQL Database, Additional settings tab

Create SQL Database, Tags tab:

Create SQL Database, Tags tab

Create SQL Database, Review + create tab, part 1 of 2:

Create SQL Database, Review + create tab, part 1 of 2

Create SQL Database, Review + create tab, part 2 of 2. I clicked Create to complete the process and create the database using the provided configurations:

Create SQL Database, Review + create tab, part 2 of 2

The Deployment in progress message appeared:

Show Deployment in progress

Finally, I received the message notifying that the deployment was complete. I clicked Go to resource:

Deployment complete

My SQL Database resource was successfully created and available. I clicked Query editor (preview):

Show database created and available

I provided my credentials to log in (created in previous steps) and clicked OK:

Log in to database

My connection attempt was denied. The reason was my Deny Public Network Access being set to Yes. I clicked Finances (jaimemontoya/Finances):

Connection denied

I clicked the Set server firewall link:

Set server firewall

I clicked the Selected networks radio button. Then I clicked Add your client IPv4 address (181.129.42.189) to allow access to the database from my current client IP address. After that, I checked the box Allow Azure services and resources to access this server to allow access to the database from Azure services. Finally, I clicked Save:

Allow Public Network Access

I tried again clicking Query editor (preview) as shown in steps above, and after providing my credentials for SQL server authentication, I was able to login successfully. But I did not have any tables available to query:

SQL query editor

When creating the database, in the Additional settings tab, I chose None. For that reason, I started with a blank database without tables to query. I had the option to choose Sample as my Use existing data option to have sample data to populate my new database.

I followed the same process above to create a second SQL Database. I used AdventureWorks as the Database name and Development as the Workload environment:

Create AdventureWorks database

In the Additional settings tab, I chose Sample as the option for Use existing data. Then I clicked OK.

Create AdventureWorks database

From the Review + create tab, I confirmed that everything was correct and clicked Create.

Create a second SQL Database, part 1 of 2:

Create a second SQL Database

Create a second SQL Database, part 2 of 2:

Create a second SQL Database

My deployment of a second SQL Database was complete. I clicked Go to resource:

Deployment of second SQL Database complete

My new database had the Online status. I clicked Query editor (preview):

Go to Query editor

When trying to log in, an error message stating that the client IP address was not allowed was displayed. I clicked the Allowlist IP 168.243.238.98 on server jaimemontoya link at the end of the message to allow access and tried to sign in again. I previously added my own computer's client IP address to the firewall rules, but the query editor may connect from a different address depending on my network configuration:

Allow list IP on server

I could log in successfully and run SQL queries:

Run queries from the Query editor

Since I had finished exploring Azure SQL Database, I deleted the resource group that I created:

Delete resource group

I confirmed that I wanted to delete the resource group:

Confirm deletion of resource group

In order to provision an Azure Database for PostgreSQL resource, I clicked the Create Azure Database for PostgreSQL link:

Create Azure Database for PostgreSQL

I entered the following values on the New Azure Database for PostgreSQL Flexible server page, and left all other properties with their default setting:

Basics tab when creating a new Azure Database for PostgreSQL Flexible server, part 1 of 3:

Basics tab when creating new Azure Database for PostgreSQL Flexible server, part 1 of 3

Basics tab when creating a new Azure Database for PostgreSQL Flexible server, part 2 of 3:

Basics tab when creating new Azure Database for PostgreSQL Flexible server, part 2 of 3

Basics tab when creating a new Azure Database for PostgreSQL Flexible server, part 3 of 3:

Basics tab when creating new Azure Database for PostgreSQL Flexible server, part 3 of 3

From the Networking tab, I clicked the + Add current client IP address ( 181.129.42.189 ) link:

From Networking tab click Add current client IP address

The rule was created successfully:

Rule created successfully

After reviewing settings, I clicked Create:

Create new Azure Database for PostgreSQL Flexible server

My deployment was complete. I clicked Go to resource:

PostgreSQL deployment complete

My server was ready to host PostgreSQL databases:

Server ready to host PostgreSQL databases

I deleted my resource:

Delete PostgreSQL resource

I confirmed the deletion of my resource:

Confirm deletion of resource

I confirmed the delition of my resource a second time:

Confirm a second time deletion of resource

I deleted the resource group that I had previously created:

Delete resource group

I confirmed the deletion:

Confirm resource group deletion

I confirmed the deletion a second time:

Confirm deletion a second time

In order to provision an Azure Database for MySQL resource, I clicked the Create Azure Database for MySQL link:

Create Azure Database for MySQL

From the Select Azure Database for MySQL deployment option page, I chose Flexible server as my plan to use the service and clicked Create:

Create Flexible Server for MySQL

I entered the following values on the Flexible server page, and left all other properties with their default setting:

Basics tab when creating a new Azure Database for MySQL, part 1 of 2:

Basics tab when creating new Azure Database for MySQL, part 1 of 2

Basics tab when creating a new Azure Database for MySQL, part 2 of 2:

Basics tab when creating new Azure Database for MySQL, part 2 of 2

From the Networking tab, I clicked the + Add current client IP address ( 181.129.42.189 ) link:

Networking tab creating MySQL database

The rule was created successfully:

Rule created successfully

After reviewing settings, I clicked Create:

Create MySQL database

My deployment was complete. I clicked Go to resource:

MySQL deployment complete

My server was ready to host MySQL databases:

Server ready to host MySQL databases

Finally, I deleted the resouces that I created for MySQL (steps to delete resources previously shown in this post).

Published: 11:41 AM GMT · Dec 17, 2023