简体   繁体   English

您可以使用 sql server 别名通过活动目录集成身份验证连接到 azure 吗?

[英]Can you use a sql server alias to connect to azure using active directory integrated authentication?

We are currently migrating to Azure managed instances.我们目前正在迁移到 Azure 托管实例。 All of our SSIS packages use server alias to connect so if we need to quickly repoint a package to another server we just change what the alias points to on the execution server.我们所有的 SSIS 包都使用服务器别名进行连接,因此如果我们需要快速将包重新指向另一台服务器,我们只需更改别名在执行服务器上指向的内容。

Unfortunately this doesn't seem to be working for azure MI.不幸的是,这似乎不适用于 azure MI。 I can create the alias but then when I attempt to connect to the server via SSMS I get the below error message.我可以创建别名,但是当我尝试通过 SSMS 连接到服务器时,我收到以下错误消息。

TITLE: Connect to Server
------------------------------

Cannot connect to BRHTEST.

------------------------------
ADDITIONAL INFORMATION:

Cannot open server "BRHTEST" requested by the login.  The login failed. (Microsoft SQL Server, Error: 40532)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=40532&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

If I go into the details of the error I can see the below which has the correct server address I put in the alias.如果我进入错误的详细信息,我可以看到下面的内容,其中包含我放入别名的正确服务器地址。

Server Name: XXXXX.XXXXXXXXX.database.windows.net
Error Number: 40532
Severity: 20
State: 1

Is it not possible to use an alias to connect to an Azure MI using azure active directory integrated?使用集成的 azure 活动目录是否无法使用别名连接到 Azure MI?

I searched and found that only Azure SQL database and Azure Synapse Analytics (SQL DW) support DNS alias :我搜索发现只有 Azure SQL 数据库和 Azure Synapse Analytics (SQL DW) 支持DNS 别名

  • A DNS alias can be used in place of the server name.可以使用 DNS 别名代替服务器名称。 Client programs can use the alias in their connection strings.客户端程序可以在其连接字符串中使用别名。 The DNS alias provides a translation layer that can redirect your client programs to different servers. DNS 别名提供了一个转换层,可以将您的客户端程序重定向到不同的服务器。 This layer spares you the difficulties of having to find and edit all the clients and their connection strings.这一层免除了您必须查找和编辑所有客户端及其连接字符串的困难。

在此处输入图片说明

We could not find more details about server alias in Azure Managed instance document, we will consider it's not supported usually.我们无法在 Azure 托管实例文档中找到有关服务器别名的更多详细信息,我们会认为它通常不受支持。

It's not possible to use an alias to connect to an Azure MI using azure active directory integrated使用集成的 azure 活动目录无法使用别名连接到 Azure MI

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用 AppService 中的 Active Directory 集成身份验证连接到 Azure SQL Server - Can not connect to Azure SQL Server using Active directory integrated authentication in AppService 如何使用Active Directory集成身份验证通过python SQL炼金术连接到Azure sql数据库 - How to connect to Azure sql database with python SQL alchemy using Active directory integrated authentication Azure Active Directory 集成身份验证与 SQL - Azure Active Directory Integrated Authentication with SQL Azure SQL 数据库 - Active Directory 集成身份验证 - Azure SQL Database - Active Directory integrated authentication 在 Python 中,是否可以使用 Active Directory 密码身份验证连接 Azure SQL Server? - In Python, Is it possible to connect Azure SQL Server using Active Directory Password Authentication? 使用Python连接到具有Active Directory通用身份验证的SQL Server DB - Connect to SQL Server DB with Active Directory Universal Authentication using Python 如何使用Azure Active Directory凭据连接到SQL Server? - How to connect to SQL Server using Azure Active Directory Credentials? npm mssql是否支持认证类型azure-active-directory-access-token连接azure sql服务器 - Does npm mssql supports authentication type azure-active-directory-access-token to connect to azure sql server Azure function - 使用 Active Directory 交互式身份验证连接到 Azure SQL 数据库 - Azure function - connect to Azure SQL database using Active Directory Interactive authentication Azure Active Directory身份验证出现错误“我们无法立即连接到您需要的服务” - Azure Active directory authentication got error “we can't connect to the service you need right now”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM