Review the Microsoft Entra administrator for Azure SQL

Configure a Microsoft Entra administrator for the Azure SQL logical server to support organizational authentication.

Description

Assign a Microsoft Entra administrator to use Entra authentication on an Azure SQL logical server.

Potential impact

Without an Entra administrator, database users cannot connect with their Entra accounts.

Remediation

In administrators, enter the administrator group’s display name (login), object ID (sid) and tenant ID. Connect as a group member, then grant other users the database permissions they need.

Examples

Here sqladmin is the Entra group. The SQL administrator login mylogin remains available. Supply sql_admin_password from a secret store.

Before

yaml
- name: Create the SQL server
  azure.azcollection.azure_rm_sqlserver:
    resource_group: myResourceGroup
    name: server-name
    location: westus
    admin_username: mylogin
    admin_password: "{{ sql_admin_password }}"
  no_log: true

After

yaml
- name: Create the SQL server
  azure.azcollection.azure_rm_sqlserver:
    resource_group: myResourceGroup
    name: server-name
    location: westus
    admin_username: mylogin
    admin_password: "{{ sql_admin_password }}"
    administrators:
      administrator_type: ActiveDirectory
      principal_type: Group
      login: sqladmin
      sid: "{{ sql_admin_group_object_id }}"
      tenant_id: "{{ tenant_id }}"
  no_log: true

References