Skip to main content

workspace_connections

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

Overview

Nameworkspace_connections
TypeResource
Idazure.ml_services.workspace_connections

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
auth_typetextfield from the properties object
categorytextfield from the properties object
connectionNametextfield from the properties object
created_by_workspace_arm_idtextfield from the properties object
errortextfield from the properties object
expiry_timetextfield from the properties object
grouptextfield from the properties object
is_shared_to_alltextfield from the properties object
metadatatextfield from the properties object
pe_requirementtextfield from the properties object
pe_statustextfield from the properties object
resourceGroupNametextfield from the properties object
shared_user_listtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
targettextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
use_workspace_managed_identitytextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, resourceGroupName, subscriptionId, workspaceName
listSELECTresourceGroupName, subscriptionId, workspaceName
createINSERTconnectionName, resourceGroupName, subscriptionId, workspaceName, data__properties
deleteDELETEconnectionName, resourceGroupName, subscriptionId, workspaceName
updateUPDATEconnectionName, resourceGroupName, subscriptionId, workspaceName
test_connectionEXECconnectionName, resourceGroupName, subscriptionId, workspaceName, data__properties

SELECT examples

SELECT
id,
name,
auth_type,
category,
connectionName,
created_by_workspace_arm_id,
error,
expiry_time,
group,
is_shared_to_all,
metadata,
pe_requirement,
pe_status,
resourceGroupName,
shared_user_list,
subscriptionId,
system_data,
target,
type,
use_workspace_managed_identity,
workspaceName
FROM azure.ml_services.vw_workspace_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.ml_services.workspace_connections (
connectionName,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a workspace_connections resource.

/*+ update */
UPDATE azure.ml_services.workspace_connections
SET
properties = '{{ properties }}'
WHERE
connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified workspace_connections resource.

/*+ delete */
DELETE FROM azure.ml_services.workspace_connections
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';