Skip to main content

administrators_microsoft_entra

Creates, updates, deletes, gets or lists an administrators_microsoft_entra resource.

Overview

Nameadministrators_microsoft_entra
TypeResource
Idazure.postgresql_flexible_servers.administrators_microsoft_entra

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
objectIdstringObject identifier of the Microsoft Entra principal.
principalNamestringName of the Microsoft Entra principal.
principalTypestringType of Microsoft Entra principal to which the server administrator is associated. Known values are: "Unknown", "User", "Group", and "ServicePrincipal". (Unknown, User, Group, ServicePrincipal)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tenantIdstringIdentifier of the tenant in which the Microsoft Entra principal exists.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, object_id, subscription_idGets information about a server administrator associated to a Microsoft Entra principal.
list_by_serverselectresource_group_name, server_name, subscription_idList all server administrators associated to a Microsoft Entra principal.
create_or_updateinsertresource_group_name, server_name, object_id, subscription_idCreates a new server administrator associated to a Microsoft Entra principal.
create_or_updatereplaceresource_group_name, server_name, object_id, subscription_idCreates a new server administrator associated to a Microsoft Entra principal.
deletedeleteresource_group_name, server_name, object_id, subscription_idDeletes an existing server administrator associated to a Microsoft Entra principal.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
object_idstringObject identifier of the Microsoft Entra principal. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Gets information about a server administrator associated to a Microsoft Entra principal.

SELECT
id,
name,
objectId,
principalName,
principalType,
systemData,
tenantId,
type
FROM azure.postgresql_flexible_servers.administrators_microsoft_entra
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND object_id = '{{ object_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new server administrator associated to a Microsoft Entra principal.

INSERT INTO azure.postgresql_flexible_servers.administrators_microsoft_entra (
properties,
resource_group_name,
server_name,
object_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ object_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates a new server administrator associated to a Microsoft Entra principal.

REPLACE azure.postgresql_flexible_servers.administrators_microsoft_entra
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND object_id = '{{ object_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing server administrator associated to a Microsoft Entra principal.

DELETE FROM azure.postgresql_flexible_servers.administrators_microsoft_entra
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND object_id = '{{ object_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;