# This holds instructions on how to setup a VM or SQL VM in Arc To setup a VM or SQL vm you will have to have access to the machine and execute a script on the VM For detailed instructions see [the following link](https://learn.microsoft.com/en-us/sql/sql-server/azure-arc/connect?view=sql-server-ver16&tabs=windows) There is also a way to [use an msi installer for this setup](https://learn.microsoft.com/en-us/sql/sql-server/azure-arc/connect-with-installer?view=sql-server-ver16) ## Detailed instructions on how to setup a VM or SQL VM Steps: - Remote desktop into the machine through the IP provided - Run this MSI - https://aka.ms/AzureExtensionForSQLServer - Verify the connection was successful ## If you are unable to login to AZ then you will have to do the following while setting up a VM Firstly go to the azure portal and navigate to Arc, initiate the process to setup an SQL VM through the navigation bar on the left - This will give you a script that will need to be executed on the target VM - In the script you will have to update the following lines - $servicePrincipalAppId = "your-app-id" - $servicePrincipalTenantId = "your-tenent-id" - $servicePrincipalSecret = "your-secret-id" - Then execute the script - Go back to the portal and verify the connection was successful