How to Access Microsoft Azure SQL from a Self-Service Non-Production Environment

By Jackie Olson | September 30, 2020

Lifecycle Services

Issue –

Microsoft will be removing remote desktop access to Sandbox Tier2 through Tier5 environments.

Question –

I no longer have Remote Desktop access to my sandbox environment.  How do I connect to Microsoft Azure SQL db  in my Sandbox environment?

Answer –

Microsoft provided the answer here – https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/deploymentfaq#i-dont-have-remote-desktop-access-to-my-sandbox-environment-and-the-critical-action-that-i-must-perform-isnt-listed-in-this-topic-how-do-i-get-help

Here are the detailed steps with screenshots to make it easier to follow:

In LCS project, I selected the Sandbox environment, clicked on Full details – note the environment type is “self-service”.

white out version 1

database accounts

avaliable accounts

You will notice account information and links to the machines are no longer available.

Firstly, you will need to add the IP of the machine you will be using to connect to Microsoft Azure SQL. To add your IP to the safe list, go to Maintain> Enable access, then add the IP of the machine you will be using to connect via SQL Server Management Studio (SSMS). This step adds a SQL firewall rule and the rule will expire after 8 hours.

You may install SSMS on your local machine OR alternatively, you may use the SSMS on your developer box in the project

To request access to SQL – pick one of the options in the Reason for access field –

reason for access

If you need to update the AX database for example, you will need to pick Performance tuning for AX (write to AX) and enter a reason in Details field and click Request Access.

You will need to refresh the page a couple times. Within a couple minutes you will see your temporary login information that you can use to login to SQL Azure server for your environment.

It will look something like this –

reason for access with details

NOTE –

The first column contains the SQL server name AND the database name in this format (separated by “\”) – dbServerName\dbName. 

spartan-srv-nam-d365opsprod-b90492b86d59.database.windows.net\db_d365opsprod_ssitest_ax_20210118_05211896_e540

Then the second column is the SQL login name.

The 3rd column contains the password for the SQL login.

In this example I want to connect to that SQL Azure server from my laptop. I downloaded SSMS 18.8 to my laptop.

Download SQL Server Management Studio (SSMS) – SQL Server Management Studio (SSMS) | Microsoft Docs

Launch SSMS

In the Server Name, copy the database server name from your LCS environment’s page.  That would be everything in the first column right up to the last character before the “\”. So, in this example the Server name is –

spartan-srv-nam-d365opsprod-b90492b86d59.database.windows.net

Select SQL server Authentication for Authentication field. Then enter your login and password.

sql server message

Next, click on Options.>> button on the bottom right.

Click on the Connections Properties tab and enter the database name. (the stuff after the “server name\”

In this example, the database name is – db_d365opsprod_ssitest_ax_20210118_05211896_e540

sql server connect

Then click on Connect.

If the connection failed, check to make sure you have added the IP of the machine you are running SSMS on to Maintain> Enable access in the environment’s page in LCS.

Or if you are a partner, make sure you are not connected to another customer’s environment via VPN.

Source:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/deploymentfaq#i-dont-have-remote-desktop-access-to-my-sandbox-environment-and-the-critical-action-that-i-must-perform-isnt-listed-in-this-topic-how-do-i-get-help

Enable just-in-time database access – Finance & Operations | Dynamics 365 | Microsoft Docs

 

Related Posts

Recommended Reading:

5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article
5.5.22 Dynamics GP

The Real Story about the Long-Term Future of Dynamics GP Support

I’ve seen a number of people put forward comment that Dynamics GP is going away and you have to get […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release Part 3 – Financial Enhancements

The Dynamics 365 Businses Central 2022 Wave 1 Release has a lot of new and exciting features to help your […]

Read the Article
4.29.22 Dynamics GP

Dynamics GP Transaction Removals: Bank Reconciliation

  This is part 2 of a 3 part series on Dynamics GP Transaction Removals. These quick tips will hopefully […]

Read the Article
4.28.22 Dynamics GP

Uncommonly Used Features – Integrate Purchasing and Payables to Fixed Assets in Dynamics GP

Being able to integrate Purchasing and Payables to Fixed Assets in Dynamics GP will help you create visibility for your […]

Read the Article

New Features in the Dynamics 365 Business Central 2022 Wave 1 Release Part 2 – Ease-of-Use Features

  There are many new features in the Dynamics 365 Business Central 2022 Wave 1 Release to get excited about! […]

Read the Article
4.22.22 Dynamics GP

Dynamics GP Transaction Removal Series: Receivables

  This is part 1 of a 3 part series on Dynamics GP Transaction Removal. These quick tips will hopefully […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X