az sql server ad-admin

Manage a server's Active Directory administrator.

Commands

az sql server ad-admin create Creates a new server Active Directory administrator.
az sql server ad-admin delete Deletes an existing server Active Directory Administrator.
az sql server ad-admin list Returns a list of server Administrators.
az sql server ad-admin update Updates an existing server Active Directory administrator.

az sql server ad-admin create

Creates a new server Active Directory administrator.

az sql server ad-admin create --display-name
--object-id
--resource-group
--server-name

Required Parameters

--display-name -u

Display name of the Azure AD administrator user or group.

--object-id -i

The unique ID of the Azure AD administrator.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--server-name -s

The name of the SQL Server.

az sql server ad-admin delete

Deletes an existing server Active Directory Administrator.

az sql server ad-admin delete --resource-group
--server-name

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--server-name -s

The name of the SQL Server.

az sql server ad-admin list

Returns a list of server Administrators.

az sql server ad-admin list --resource-group
--server-name

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--server-name -s

The name of the SQL Server.

az sql server ad-admin update

Updates an existing server Active Directory administrator.

az sql server ad-admin update --resource-group
--server-name
[--add]
[--display-name]
[--object-id]
[--remove]
[--set]

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--server-name -s

The name of the SQL Server.

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .

--display-name -u

Display name of the Azure AD administrator user or group.

--object-id -i

The unique ID of the Azure AD administrator.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.