Skip to main content

tags

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

Overview

Nametags
TypeResource
Idazure.consumption.tags

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.
eTagstringeTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
nextLinkstringThe link (url) to the next page of results.
previousLinkstringThe link (url) to the previous page of results.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsarrayA list of Tag.
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
getselectscopeGet all available tag keys for the defined 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
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get all available tag keys for the defined scope.

SELECT
id,
name,
eTag,
nextLink,
previousLink,
systemData,
tags,
type
FROM azure.consumption.tags
WHERE scope = '{{ scope }}' -- required
;