nerdexam
Microsoft

DP-300 · Question #343

SIMULATION You plan to create an automation runbook that will create database users in db1 from Azure AD identities. You need to configure sql12345678 to support the creation of new database users…

Provisioning a Microsoft Entra (Azure AD) admin for the SQL Managed Instance is the prerequisite step that grants the instance the necessary permissions to read Microsoft Entra ID, enabling it to authenticate and create Azure AD-based database users. Without an assigned…

Submitted by brentm· Mar 6, 2026Implement and manage identities and access - specifically configuring Microsoft Entra authentication for Azure SQL Managed Instance to enable Azure AD-based database user provisioning, aligning with the AZ-104 or DP-300 certification domain on securing data services.

Question

SIMULATION You plan to create an automation runbook that will create database users in db1 from Azure AD identities. You need to configure sql12345678 to support the creation of new database users. To complete this task, sign in to the virtual machine. You may need to use SQL Server Management Studio and the Azure portal. Answer: Provision Microsoft Entra admin (SQL Managed Instance) Your SQL Managed Instance needs permission to read Microsoft Entra ID to accomplish tasks such as authentication of users through security group membership or creation of new users. For this to work, you must grant the SQL Managed Instance permission to read Microsoft Entra ID. You can do this using the Azure portal or PowerShell. To grant your SQL Managed Instance read permissions to Microsoft Entra ID using the Azure portal, sign in as a Global Administrator and follow these steps: Step 1: In the Azure portal, in the upper-right corner select your account, and then choose Switch directories to confirm which directory is your Current directory. Switch directories, if necessary. Step 2: Choose the correct Microsoft Entra directory as the Current directory. This step links the subscription associated with Microsoft Entra ID to the SQL Managed Instance, ensuring the Microsoft Entra tenant and SQL Managed Instance use the same subscription. Step 3: Now, you can choose your Microsoft Entra admin for your SQL Managed Instance. For that, go to your managed instance resource in the Azure portal and select Microsoft Entra admin under Settings. Step 4: Select the banner on top of the Microsoft Entra admin page and grant permission to the current user. Step 5: After the operation succeeds, the following notification will show up in the top-right corner: Note: Microsoft Entra authentication uses identities in Microsoft Entra ID to access data sources such as Azure SQL Database, Azure SQL Managed Instance, and Azure Synapse Analytics. The Microsoft.Data.SqlClient namespace allows client applications to specify Microsoft Entra credentials in different authentication modes when they're connecting to Azure SQL Database and Azure SQL Managed Instance. To use Microsoft Entra authentication with Azure SQL, you must configure and manage Microsoft Entra authentication with Azure SQL. Reference: https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-configure https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication

Exhibit

DP-300 question #343 exhibit

Explanation

Provisioning a Microsoft Entra (Azure AD) admin for the SQL Managed Instance is the prerequisite step that grants the instance the necessary permissions to read Microsoft Entra ID, enabling it to authenticate and create Azure AD-based database users. Without an assigned Microsoft Entra admin, the SQL Managed Instance cannot resolve Azure AD identities or allow T-SQL commands like CREATE USER [user@domain] FROM EXTERNAL PROVIDER to succeed. This configuration is done through the Azure portal under the SQL Managed Instance's 'Microsoft Entra admin' settings blade by a Global Administrator.

Topics

#Microsoft Entra ID (Azure AD)#Azure SQL Managed Instance#Database Security#Identity and Access Management

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice