Skip to main content

sandbox_custom_images

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

Overview

Namesandbox_custom_images
TypeResource
Idazure.data_explorer.sandbox_custom_images

Fields

NameDatatypeDescription
clusterNametextfield from the properties object
languagetextfield from the properties object
language_versiontextfield from the properties object
provisioning_statetextfield from the properties object
requirements_file_contenttextfield from the properties object
resourceGroupNametextfield from the properties object
sandboxCustomImageNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, sandboxCustomImageName, subscriptionIdReturns a sandbox custom image
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdReturns the list of the existing sandbox custom images of the given Kusto cluster.
create_or_updateINSERTclusterName, resourceGroupName, sandboxCustomImageName, subscriptionIdCreates or updates a sandbox custom image.
deleteDELETEclusterName, resourceGroupName, sandboxCustomImageName, subscriptionIdDeletes a sandbox custom image.
updateUPDATEclusterName, resourceGroupName, sandboxCustomImageName, subscriptionIdUpdates a sandbox custom image.
check_name_availabilityEXECclusterName, resourceGroupName, subscriptionId, data__name, data__typeChecks that the sandbox custom image resource name is valid and is not already in use.

SELECT examples

Returns the list of the existing sandbox custom images of the given Kusto cluster.

SELECT
clusterName,
language,
language_version,
provisioning_state,
requirements_file_content,
resourceGroupName,
sandboxCustomImageName,
subscriptionId
FROM azure.data_explorer.vw_sandbox_custom_images
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_explorer.sandbox_custom_images (
clusterName,
resourceGroupName,
sandboxCustomImageName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ sandboxCustomImageName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a sandbox_custom_images resource.

/*+ update */
UPDATE azure.data_explorer.sandbox_custom_images
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sandboxCustomImageName = '{{ sandboxCustomImageName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified sandbox_custom_images resource.

/*+ delete */
DELETE FROM azure.data_explorer.sandbox_custom_images
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sandboxCustomImageName = '{{ sandboxCustomImageName }}'
AND subscriptionId = '{{ subscriptionId }}';