|
| 1 | +--- |
| 2 | +title: Deploy SQL Server on Azure Virtual Machine |
| 3 | +description: This tutorial shows how you can create SQL Server on Azure Virtual Machines |
| 4 | +author: ninarn |
| 5 | +ms.author: ninarn |
| 6 | +ms.reviewer: alayu, maghan |
| 7 | +ms.topic: tutorial |
| 8 | +ms.prod: azure-data-studio |
| 9 | +ms.technology: azure-data-studio |
| 10 | +ms.custom: "" |
| 11 | +ms.date: 10/14/2020 |
| 12 | +--- |
| 13 | + |
| 14 | +# Create SQL Server on Azure Virtual Machines using Azure Data Studio |
| 15 | + |
| 16 | +You can create an SQL virtual machine (VM) using Azure Data Studio through the deployment wizard and notebooks. |
| 17 | + |
| 18 | +## Pre-requisites |
| 19 | + |
| 20 | +- [Azure Data Studio](download-azure-data-studio.md) is installed |
| 21 | +- An active Azure account and subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/). |
| 22 | + |
| 23 | +## Use the deployment wizard |
| 24 | + |
| 25 | +Follow these steps to use the deployment wizard, which will guide you through the required settings in a simple UI experience. |
| 26 | + |
| 27 | +First, find, and select Azure SQL VM in the deployment wizard. |
| 28 | + |
| 29 | +1. In Azure Data Studio, select the Connections viewlet on the left-side navigation. |
| 30 | + |
| 31 | +2. Select the **...** button at the top of the Connections panel and choose **New Deployment.** |
| 32 | + |
| 33 | +3. In the deployment wizard, select the **Azure SQL VM** tile and check the terms acceptance checkbox |
| 34 | + |
| 35 | +4. If prompted to, install the required tools and then select the **Select** button at the bottom. |
| 36 | + |
| 37 | +Next, enter all of the required parameters in the Azure SQL VM wizard. |
| 38 | + |
| 39 | +1. Sign in to your Azure account if you'ven't already. You can refresh your connection if you've issues on this page of the wizard. |
| 40 | + |
| 41 | +2. Select your desired subscription, resource group, and region. Then select **Next**. |
| 42 | + |
| 43 | +3. Enter a unique Virtual Machine name and your username and password credentials. |
| 44 | + |
| 45 | +4. Select your preferred image, SKU, and version, and then select your preferred VM size. You can learn more about [available VM sizes](https://docs.microsoft.com/azure/virtual-machines/sizes) to help you make your selection. Then select **Next**. |
| 46 | + |
| 47 | +5. Either select an existing virtual network from the dropdown, or check the **New virtual network** checkbox to enter a name for a new virtual network. |
| 48 | + |
| 49 | +6. Do the same for selecting or creating a subnet and public IP address. |
| 50 | + |
| 51 | +7. If you would like to connect to your VM via Remote Desktop (RDP), check the **Enable RDP inbound port** checkbox. Then select **Next**. |
| 52 | + |
| 53 | +8. Enter your preferred SQL Server settings. The recommendation for testing out this experience is to set SQL connectivity to **Public (internet)**, enter port 1433, and enable SQL authentication with your preferred username and password. Then select **Next**. |
| 54 | + |
| 55 | +9. Review the parameters you've entered and then select **Script to Notebook**. |
| 56 | + |
| 57 | +Once the Notebook opens, you can review the content and the code and make changes if you like. However making changes isn't recommended since it could cause validation errors. |
| 58 | + |
| 59 | +The last step is to select **Run all** to run all cells in the Notebook. Once this completes, you should have a fully created and running: |
| 60 | + |
| 61 | +- An Azure virtual machine |
| 62 | +- A SQL virtual machine |
| 63 | +- A Virtual Network, subnet, and public IP address |
| 64 | +- A network security group and a network interface |
| 65 | +- Access to RDP into the VM |
| 66 | +- Access to a variety of SQL Server manageability features to easily control the Backup schedule, patching schedule, the SQL Server edition and licensing, the storage performance configurations, and much more. |
| 67 | + |
| 68 | +## Next steps |
| 69 | + |
| 70 | +To learn more about how to migrate your data to the new SQL VM, see the following article. |
| 71 | + |
| 72 | +> [!div class="nextstepaction"] |
| 73 | +> [Migrate a database to a SQL VM](https://docs.microsoft.com/azure/azure-sql/virtual-machines/windows/migrate-to-vm-from-sql-server) |
| 74 | +
|
| 75 | +For other information about using SQL Server in Azure, see [SQL Server on Azure Virtual Machines](https://docs.microsoft.com/azure/azure-sql/virtual-machines/windows/sql-server-on-azure-vm-iaas-what-is-overview) and the [Frequently Asked Questions](https://docs.microsoft.com/azure/azure-sql/virtual-machines/windows/frequently-asked-questions-faq). |
0 commit comments