Skip to main content

workspace_settings

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

Overview

Nameworkspace_settings
TypeResource
Idazure.security.workspace_settings

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
scopetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type
workspaceSettingNametextfield from the properties object
workspace_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionId, workspaceSettingNameSettings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set
listSELECTsubscriptionIdSettings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set
createINSERTsubscriptionId, workspaceSettingNamecreating settings about where we should store your security data and logs
deleteDELETEsubscriptionId, workspaceSettingNameDeletes the custom workspace settings for this subscription. new VMs will report to the default workspace
updateUPDATEsubscriptionId, workspaceSettingNameSettings about where we should store your security data and logs

SELECT examples

Settings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set

SELECT
id,
name,
scope,
subscriptionId,
type,
workspaceSettingName,
workspace_id
FROM azure.security.vw_workspace_settings
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.workspace_settings (
subscriptionId,
workspaceSettingName,
properties
)
SELECT
'{{ subscriptionId }}',
'{{ workspaceSettingName }}',
'{{ properties }}'
;

UPDATE example

Updates a workspace_settings resource.

/*+ update */
UPDATE azure.security.workspace_settings
SET
properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}'
AND workspaceSettingName = '{{ workspaceSettingName }}';

DELETE example

Deletes the specified workspace_settings resource.

/*+ delete */
DELETE FROM azure.security.workspace_settings
WHERE subscriptionId = '{{ subscriptionId }}'
AND workspaceSettingName = '{{ workspaceSettingName }}';