components
Creates, updates, deletes, gets or lists a components
resource.
Overview
Name | components |
Type | Resource |
Id | azure.application_insights.components |
Fields
- vw_components
- components
Name | Datatype | Description |
---|---|---|
id | text | Azure resource Id |
name | text | Azure resource name |
app_id | text | field from the properties object |
application__type | text | field from the properties object |
application_id | text | field from the properties object |
connection_string | text | field from the properties object |
creation_date | text | field from the properties object |
disable_ip_masking | text | field from the properties object |
disable_local_auth | text | field from the properties object |
etag | text | Resource etag |
flow__type | text | field from the properties object |
force_customer_storage_for_profiler | text | field from the properties object |
hockey_app_id | text | field from the properties object |
hockey_app_token | text | field from the properties object |
immediate_purge_data_on30_days | text | field from the properties object |
ingestion_mode | text | field from the properties object |
instrumentation_key | text | field from the properties object |
kind | text | The 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_date | text | field from the properties object |
location | text | Resource location |
private_link_scoped_resources | text | field from the properties object |
provisioning_state | text | field from the properties object |
public_network_access_for_ingestion | text | field from the properties object |
public_network_access_for_query | text | field from the properties object |
request__source | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
retention_in_days | text | field from the properties object |
sampling_percentage | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags |
tenant_id | text | field from the properties object |
type | text | Azure resource type |
workspace_resource_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource Id |
name | string | Azure resource name |
etag | string | Resource etag |
kind | string | The 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. |
location | string | Resource location |
properties | object | Properties that define an Application Insights component resource. |
tags | `` | Resource tags |
type | string | Azure resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, resourceName, subscriptionId | Returns an Application Insights component. |
list | SELECT | subscriptionId | Gets a list of all Application Insights components within a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets a list of Application Insights components within a resource group. |
create_or_update | INSERT | resourceGroupName, resourceName, subscriptionId, data__kind | Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. |
delete | DELETE | resourceGroupName, resourceName, subscriptionId | Deletes an Application Insights component. |
purge | EXEC | resourceGroupName, resourceName, subscriptionId, data__filters, data__table | Purges 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.
- vw_components
- components
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 }}';
SELECT
id,
name,
etag,
kind,
location,
properties,
tags,
type
FROM azure.application_insights.components
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new components
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: etag
value: string
- name: properties
value:
- name: ApplicationId
value: string
- name: AppId
value: string
- name: Name
value: string
- name: Application_Type
value: string
- name: Flow_Type
value: string
- name: Request_Source
value: string
- name: InstrumentationKey
value: string
- name: CreationDate
value: string
- name: TenantId
value: string
- name: HockeyAppId
value: string
- name: HockeyAppToken
value: string
- name: provisioningState
value: string
- name: SamplingPercentage
value: number
- name: ConnectionString
value: string
- name: RetentionInDays
value: integer
- name: DisableIpMasking
value: boolean
- name: ImmediatePurgeDataOn30Days
value: boolean
- name: WorkspaceResourceId
value: string
- name: LaMigrationDate
value: string
- name: PrivateLinkScopedResources
value:
- - name: ResourceId
value: string
- name: ScopeId
value: string
- name: publicNetworkAccessForIngestion
value: []
- name: IngestionMode
value: string
- name: DisableLocalAuth
value: boolean
- name: ForceCustomerStorageForProfiler
value: boolean
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: string
DELETE
example
Deletes the specified components
resource.
/*+ delete */
DELETE FROM azure.application_insights.components
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';