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

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.
scopestringAll the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workspaceIdstringThe full Azure ID of the workspace to save the data in. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectworkspace_setting_name, subscription_idSettings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set.
listselectsubscription_idSettings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set.
createinsertworkspace_setting_name, subscription_idcreating settings about where we should store your security data and logs.
updateupdateworkspace_setting_name, subscription_idSettings about where we should store your security data and logs.
deletedeleteworkspace_setting_name, subscription_idDeletes the custom workspace settings for this subscription. new VMs will report to the default workspace.

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
subscription_idstring
workspace_setting_namestringName of the security setting. Required.

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,
systemData,
type,
workspaceId
FROM azure.security.workspace_settings
WHERE workspace_setting_name = '{{ workspace_setting_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

creating settings about where we should store your security data and logs.

INSERT INTO azure.security.workspace_settings (
properties,
workspace_setting_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ workspace_setting_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Settings about where we should store your security data and logs.

UPDATE azure.security.workspace_settings
SET
properties = '{{ properties }}'
WHERE
workspace_setting_name = '{{ workspace_setting_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the custom workspace settings for this subscription. new VMs will report to the default workspace.

DELETE FROM azure.security.workspace_settings
WHERE workspace_setting_name = '{{ workspace_setting_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;