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

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.
administratorTypestringWorkspace active directory administrator type.
loginstringLogin of the workspace active directory administrator.
sidstringObject ID of the workspace active directory administrator.
tenantIdstringTenant ID of the workspace active directory administrator.
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, workspace_name, subscription_idGets a workspace SQL active directory admin.
create_or_updateinsertresource_group_name, workspace_name, subscription_idCreates or updates a workspace SQL active directory admin.
create_or_updatereplaceresource_group_name, workspace_name, subscription_idCreates or updates a workspace SQL active directory admin.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes a workspace SQL active directory admin.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets a workspace SQL active directory admin.

SELECT
id,
name,
administratorType,
login,
sid,
tenantId,
type
FROM azure.synapse.workspace_sql_aad_admins
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workspace SQL active directory admin.

INSERT INTO azure.synapse.workspace_sql_aad_admins (
properties,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;

REPLACE examples

Creates or updates a workspace SQL active directory admin.

REPLACE azure.synapse.workspace_sql_aad_admins
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Deletes a workspace SQL active directory admin.

DELETE FROM azure.synapse.workspace_sql_aad_admins
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;