Azure SQL Managed Instance - Unable to create Symmetric key and Certificate for Microsoft Entra Service Principles and Azure Active Directory Integrated authentication

Abhishek Modi (amodi) 0 Reputation points
2024-06-20T13:47:18.2533333+00:00

Hi Team,

I am working on Azure SQL Managed Instance and trying to run the SQL statement below from the SQL server with Microsoft Entra Service Principles authentication in the Azure Managed Instance environment but getting an error - 'Cannot find the user 'xxxx-xxxx', because it does not exist or you do not have permission.'

USE [master];
GO
CREATE SYMMETRIC KEY [TestMISQL] AUTHORIZATION [AppId]
WITH ALGORITHM = AES_128,
KEY_SOURCE = N'1',
IDENTITY_VALUE = N'123'
ENCRYPTION BY PASSWORD = 'Test@123'
GO

Please find the screenshot below for reference -

CreateSymmentricKey_AzureMicrosoftEntra

Please suggest on the above query.

Thanks,

Abhishek Modi

Azure SQL Database
{count} votes

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.