Skip to main content

components

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

Overview

Namecomponents
TypeResource
Idazure.application_insights.components

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name
app_idtextfield from the properties object
application__typetextfield from the properties object
application_idtextfield from the properties object
connection_stringtextfield from the properties object
creation_datetextfield from the properties object
disable_ip_maskingtextfield from the properties object
disable_local_authtextfield from the properties object
etagtextResource etag
flow__typetextfield from the properties object
force_customer_storage_for_profilertextfield from the properties object
hockey_app_idtextfield from the properties object
hockey_app_tokentextfield from the properties object
immediate_purge_data_on30_daystextfield from the properties object
ingestion_modetextfield from the properties object
instrumentation_keytextfield from the properties object
kindtextThe kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
la_migration_datetextfield from the properties object
locationtextResource location
private_link_scoped_resourcestextfield from the properties object
provisioning_statetextfield from the properties object
public_network_access_for_ingestiontextfield from the properties object
public_network_access_for_querytextfield from the properties object
request__sourcetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
retention_in_daystextfield from the properties object
sampling_percentagetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
tenant_idtextfield from the properties object
typetextAzure resource type
workspace_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdReturns an Application Insights component.
listSELECTsubscriptionIdGets a list of all Application Insights components within a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of Application Insights components within a resource group.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId, data__kindCreates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes an Application Insights component.
purgeEXECresourceGroupName, resourceName, subscriptionId, data__filters, data__tablePurges data in an Application Insights component by a set of user-defined filters.

In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected. Note: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. | | update_tags | EXEC | resourceGroupName, resourceName, subscriptionId | Updates an existing component's tags. To update other fields use the CreateOrUpdate method. |

SELECT examples

Gets a list of all Application Insights components within a subscription.

SELECT
id,
name,
app_id,
application__type,
application_id,
connection_string,
creation_date,
disable_ip_masking,
disable_local_auth,
etag,
flow__type,
force_customer_storage_for_profiler,
hockey_app_id,
hockey_app_token,
immediate_purge_data_on30_days,
ingestion_mode,
instrumentation_key,
kind,
la_migration_date,
location,
private_link_scoped_resources,
provisioning_state,
public_network_access_for_ingestion,
public_network_access_for_query,
request__source,
resourceGroupName,
resourceName,
retention_in_days,
sampling_percentage,
subscriptionId,
tags,
tenant_id,
type,
workspace_resource_id
FROM azure.application_insights.vw_components
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new components resource.

/*+ create */
INSERT INTO azure.application_insights.components (
resourceGroupName,
resourceName,
subscriptionId,
data__kind,
kind,
etag,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified components resource.

/*+ delete */
DELETE FROM azure.application_insights.components
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';