Please follow the steps provided on this quickstart article, on how to create an Azure SQL Database. After that, you can create a firewall rule to add the IP of your Azure VM as a trusted connection using this step-by-step documentation.
Finally, you can install SQL Server Management Studio (SSMS) on the Azure VM and get connected to your Azure SQL Database or you can create an ODBC Data Source to test connectivity.