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
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectWorkspace setting data
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectsubscriptionId, workspaceSettingNameapi-versionSettings about where we should store your security data and logs. If the result is empty, it means that no custom-workspace configuration was set
listselectsubscriptionIdapi-versionSettings 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, workspaceSettingNameapi-versioncreating settings about where we should store your security data and logs
updateupdatesubscriptionId, workspaceSettingNameapi-versionSettings about where we should store your security data and logs
deletedeletesubscriptionId, workspaceSettingNameapi-versionDeletes 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
subscriptionIdstringAzure subscription ID
workspaceSettingNamestringName of the security setting
api-versionstringAPI version for the operation

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,
properties,
systemData,
type
FROM azure.security.workspace_settings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND workspaceSettingName = '{{ workspaceSettingName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

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

INSERT INTO azure.security.workspace_settings (
data__properties,
subscriptionId,
workspaceSettingName,
api-version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ workspaceSettingName }}',
'{{ api-version }}'
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
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND workspaceSettingName = '{{ workspaceSettingName }}' --required
AND api-version = '{{ api-version}}'
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 subscriptionId = '{{ subscriptionId }}' --required
AND workspaceSettingName = '{{ workspaceSettingName }}' --required
AND api-version = '{{ api-version }}'
;