Skip to main content

custom_assessment_automations

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

Overview

Namecustom_assessment_automations
TypeResource
Idazure.security.custom_assessment_automations

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
propertiesobjectdescribes Custom Assessment Automation properties.
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, resourceGroupName, customAssessmentAutomationNameapi-versionGets a single custom assessment automation by name for the provided subscription and resource group.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-versionList custom assessment automations by provided subscription and resource group
list_by_subscriptionselectsubscriptionIdapi-versionList custom assessment automations by provided subscription
createinsertsubscriptionId, resourceGroupName, customAssessmentAutomationNameapi-versionCreates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.
deletedeletesubscriptionId, resourceGroupName, customAssessmentAutomationNameapi-versionDeletes a custom assessment automation by name for a provided subscription

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
customAssessmentAutomationNamestringName of the Custom Assessment Automation.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Gets a single custom assessment automation by name for the provided subscription and resource group.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.custom_assessment_automations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND customAssessmentAutomationName = '{{ customAssessmentAutomationName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.

INSERT INTO azure.security.custom_assessment_automations (
data__properties,
subscriptionId,
resourceGroupName,
customAssessmentAutomationName,
api-version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ customAssessmentAutomationName }}',
'{{ api-version }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Deletes a custom assessment automation by name for a provided subscription

DELETE FROM azure.security.custom_assessment_automations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND customAssessmentAutomationName = '{{ customAssessmentAutomationName }}' --required
AND api-version = '{{ api-version }}'
;