Skip to main content

tools

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

Overview

Nametools
TypeResource
Idazure.discovery.tools

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.
definitionContentobjectThe JSON content for defining a resource. Required.
environmentVariablesobjectEnvironment variables to make available.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Provisioning, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionstringThe version of a resource definition. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, tool_name, subscription_idGet a Tool.
list_by_resource_groupselectresource_group_name, subscription_idList Tool resources by resource group.
list_by_subscriptionselectsubscription_idList Tool resources by subscription ID.
create_or_updateinsertresource_group_name, tool_name, subscription_id, locationCreate a Tool.
updateupdateresource_group_name, tool_name, subscription_id, locationUpdate a Tool.
create_or_updatereplaceresource_group_name, tool_name, subscription_id, locationCreate a Tool.
deletedeleteresource_group_name, tool_name, subscription_idDelete a Tool.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
tool_namestringThe name of the Tool. Required.

SELECT examples

Get a Tool.

SELECT
id,
name,
definitionContent,
environmentVariables,
location,
provisioningState,
systemData,
tags,
type,
version
FROM azure.discovery.tools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND tool_name = '{{ tool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Tool.

INSERT INTO azure.discovery.tools (
tags,
location,
properties,
resource_group_name,
tool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ tool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Tool.

UPDATE azure.discovery.tools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND tool_name = '{{ tool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a Tool.

REPLACE azure.discovery.tools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND tool_name = '{{ tool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Tool.

DELETE FROM azure.discovery.tools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND tool_name = '{{ tool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;