Skip to main content

software_inventories

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

Overview

Namesoftware_inventories
TypeResource
Idazure.security.software_inventories

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
propertiesobjectProperties of the Software Inventory resource
systemDataobjectMetadata pertaining to creation and last modification of the resource.
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, resourceNamespace, resourceType, resourceName, softwareNameapi-versionGets a single software data of the virtual machine.
list_by_extended_resourceselectsubscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceNameapi-versionGets the software inventory of the virtual machine.
list_by_subscriptionselectsubscriptionIdapi-versionGets the software inventory of all virtual machines in the subscriptions.

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
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
resourceNamestringName of the resource.
resourceNamespacestringThe namespace of the resource.
resourceTypestringThe type of the resource.
softwareNamestringName of the installed software.
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Gets a single software data of the virtual machine.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.software_inventories
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceNamespace = '{{ resourceNamespace }}' -- required
AND resourceType = '{{ resourceType }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND softwareName = '{{ softwareName }}' -- required
AND api-version = '{{ api-version }}'
;