Skip to main content

workspace_sql_aad_admins

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

Overview

Nameworkspace_sql_aad_admins
TypeResource
Idazure.synapse.workspace_sql_aad_admins

Fields

NameDatatypeDescription
administrator_typetextfield from the properties object
logintextfield from the properties object
resourceGroupNametextfield from the properties object
sidtextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGets a workspace SQL active directory admin
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceNameCreates or updates a workspace SQL active directory admin
deleteDELETEresourceGroupName, subscriptionId, workspaceNameDeletes a workspace SQL active directory admin

SELECT examples

Gets a workspace SQL active directory admin

SELECT
administrator_type,
login,
resourceGroupName,
sid,
subscriptionId,
tenant_id,
workspaceName
FROM azure.synapse.vw_workspace_sql_aad_admins
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.workspace_sql_aad_admins (
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workspace_sql_aad_admins resource.

/*+ delete */
DELETE FROM azure.synapse.workspace_sql_aad_admins
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';