Skip to main content

server_azure_ad_administrators

Creates, updates, deletes, gets or lists a server_azure_ad_administrators resource.

Overview

Nameserver_azure_ad_administrators
TypeResource
Idazure.sql.server_azure_ad_administrators

Fields

NameDatatypeDescription
administratorNametextfield from the properties object
administrator_typetextfield from the properties object
azure_ad_only_authenticationtextfield from the properties object
logintextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
sidtextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTadministratorName, resourceGroupName, serverName, subscriptionIdGets a Azure Active Directory administrator.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of Azure Active Directory administrators in a server.
create_or_updateINSERTadministratorName, resourceGroupName, serverName, subscriptionIdCreates or updates an existing Azure Active Directory administrator.
deleteDELETEadministratorName, resourceGroupName, serverName, subscriptionIdDeletes the Azure Active Directory administrator with the given name.

SELECT examples

Gets a list of Azure Active Directory administrators in a server.

SELECT
administratorName,
administrator_type,
azure_ad_only_authentication,
login,
resourceGroupName,
serverName,
sid,
subscriptionId,
tenant_id
FROM azure.sql.vw_server_azure_ad_administrators
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new server_azure_ad_administrators resource.

/*+ create */
INSERT INTO azure.sql.server_azure_ad_administrators (
administratorName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ administratorName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified server_azure_ad_administrators resource.

/*+ delete */
DELETE FROM azure.sql.server_azure_ad_administrators
WHERE administratorName = '{{ administratorName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';