Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_isv.newrelicobservability.accounts

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.
accountIdstringaccount id.
accountNamestringaccount name.
organizationIdstringorganization id.
regionstringRegion where New Relic account is present.
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
listselectsubscription_id, userEmail, locationLists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created.

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
locationstringLocation for NewRelic. Required.
subscription_idstring
userEmailstringUser Email. Required.

SELECT examples

Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created.

SELECT
id,
name,
accountId,
accountName,
organizationId,
region,
systemData,
type
FROM azure_isv.newrelicobservability.accounts
WHERE subscription_id = '{{ subscription_id }}' -- required
AND userEmail = '{{ userEmail }}' -- required
AND location = '{{ location }}' -- required
;