Skip to main content

application

Creates, updates, deletes, gets or lists an application resource.

Overview

Nameapplication
TypeResource
Idazure.security.application

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.
conditionSetsarrayThe application conditionSets - see examples. Required.
descriptionstringdescription of the application.
displayNamestringdisplay name of the application.
sourceResourceTypestringThe application source, what it affects, e.g. Assessments. Required. "Assessments" (Assessments)
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
getselectapplication_id, subscription_idGet a specific application for the requested scope by applicationId.
create_or_updateinsertapplication_id, subscription_idCreates or update a security application on the given subscription.
create_or_updatereplaceapplication_id, subscription_idCreates or update a security application on the given subscription.
deletedeleteapplication_id, subscription_idDelete an Application over a given scope.

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
application_idstringThe security Application key - unique key for the standard application. Required.
subscription_idstring

SELECT examples

Get a specific application for the requested scope by applicationId.

SELECT
id,
name,
conditionSets,
description,
displayName,
sourceResourceType,
systemData,
type
FROM azure.security.application
WHERE application_id = '{{ application_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or update a security application on the given subscription.

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

REPLACE examples

Creates or update a security application on the given subscription.

REPLACE azure.security.application
SET
properties = '{{ properties }}'
WHERE
application_id = '{{ application_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete an Application over a given scope.

DELETE FROM azure.security.application
WHERE application_id = '{{ application_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;