Connectivity from Azure extension for SQL Server to DPS is not OK

Jonathan Hobdell 20 Reputation points
2024-10-30T11:17:34.4533333+00:00

Hi

I'm trying to register my machine / on-prem SQL Server instance with my Azure subscription. I've done it two different ways because the first one failed. In both cases the machine seemed to register successfully (it's visible within Azure Arc), but both times, I get the subject message:

Connectivity from Azure extension for SQL Server to DPS is not OK (Status: null, Message: null)

As a result, neither the SQL Server instance nor any of its databases are visible. I've got lost trying to find stuff in the docs. Does anyone have any idea what's going wrong here?

Thanks so much!

Azure SQL Database
{count} votes

Accepted answer
  1. Sai Raghunadh M 4,640 Reputation points Microsoft External Staff Moderator
    2024-11-01T11:49:25.42+00:00

    Hi @Jonathan Hobdell,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Issue:

    I'm trying to register my machine / on-prem SQL Server instance with my Azure subscription. I've done it two different ways because the first one failed. In both cases the machine seemed to register successfully (it's visible within Azure Arc), but both times, I get the subject message:

    Connectivity from Azure extension for SQL Server to DPS is not OK (Status: null, Message: null)

    As a result, neither the SQL Server instance nor any of its databases are visible. I've got lost trying to find stuff in the docs. Does anyone have any idea what's going wrong here?

    Solution:

    I eventually managed to get this working. The documentation is very thorough, but extremely confusing sometimes, and I suspect out of date in places.

    Here's what I established, in case it's helpful to anyone else some time:

    • Install Azure Extension via installation centre - steps should be fairly straightforward if you know Azure Portal even a little bit
    • Install Azure Arc Agent following steps here: https://learn.microsoft.com/en-us/azure/network-watcher/connection-monitor-connected-machine-agent?tabs=WindowsScript
      • Basically, register single server after searching "Servers - Azure Arc" in Azure Portal
      • In Azure Portal, under Azure Arc, click Data Services > SQL Server Instances
    • Click Add and follow the steps to create the script and run it locally via PowerShell (you may need to install the Azure PowerShell module and / or change the execution policy for your local machine account) If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information. Hope this helps. Do let us know if you have any further queries. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

1 additional answer

Sort by: Most helpful
  1. Jonathan Hobdell 20 Reputation points
    2024-11-01T10:20:20.3266667+00:00

    I eventually managed to get this working. The documentation is very thorough, but extremely confusing sometimes, and I suspect out of date in places.

    Here's what I established, in case it's helpful to anyone else some time:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.