Skip to main content

azure_ad_administrators

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

Overview

Nameazure_ad_administrators
TypeResource
Idazure.mysql.azure_ad_administrators

Fields

NameDatatypeDescription
administratorNametextfield from the properties object
administrator_typetextfield from the properties object
identity_resource_idtextfield 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 information about an azure ad administrator.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdList all the AAD administrators in a given server.
create_or_updateINSERTadministratorName, resourceGroupName, serverName, subscriptionIdCreates or updates an existing Azure Active Directory administrator.
deleteDELETEadministratorName, resourceGroupName, serverName, subscriptionIdDeletes an Azure AD Administrator.

SELECT examples

List all the AAD administrators in a given server.

SELECT
administratorName,
administrator_type,
identity_resource_id,
login,
resourceGroupName,
serverName,
sid,
subscriptionId,
tenant_id
FROM azure.mysql.vw_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 azure_ad_administrators resource.

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

DELETE example

Deletes the specified azure_ad_administrators resource.

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