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

by | Updated May 12, 2021 | Dynamics AX, 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

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

june

02jun2:00 pm2:30 pmBusiness Intelligence for Batch Manufacturers

16jun10:00 am10:30 amHow AP automation can speed up month-end close in D365 Finance

17jun11:00 am12:00 pmConfab Live with Stoneridge – Real Time Marketing Strategies for Success

23jun10:00 am10:30 amThe Modern Manufacturer: Cost Accounting in D365

30jun10:00 am10:30 amAP Automation Checklist for a 2022 Rebound

30jun2:00 pm2:30 pmAchieving Success: How Technology Is Helping Nonprofits Thrive

july

01jul11:00 am12:00 pmConfab Live with Stoneridge – Dataverse Virtual Entities

14jul12:00 pm12:30 pmBeyond Reporting - What Business Intelligence Can Do For Your Agribusiness

15jul11:00 am12:00 pmConfab Live with Stoneridge – Integration Strategies for End User Success

21jul10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

21jul12:00 pm1:00 pmIs it Worth it to Upgrade to Dynamics 365 Finance and Supply Chain Management? - Everything AX Users Need to Consider

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X