title | description | ms.author | ms.date | ms.topic | author | ms.reviewer |
---|---|---|---|---|---|---|
AppSourceCop Warning AS0092 |
The app.json file must specify an Azure Application Insights resource for monitoring operations related to this extension. |
solsen |
05/14/2024 |
reference |
SusanneWindfeldPedersen |
solsen |
The app.json file must specify an Azure Application Insights resource.
The app.json file must specify an Azure Application Insights resource for monitoring operations related to this extension. See https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-overview for additional information.
This diagnostic can be fixed by specifying an Azure Application Insights resource for the extension.
For more information about enabling Application Insights, see Monitoring and Analyzing Telemetry and Environment Telemetry.
For additional information about the manifest of extensions (app.json), see JSON Files.
If your extension is targeting runtime 7.2
(i.e. Business Central 2021 release wave 1 update 18.2), you can fix this diagnostic by specifying the connection string of the Azure Application Insights resource setup to monitor the operations related to this extension.
{
"applicationInsightsConnectionString": "<your-azure-application-insight-connection-string>"
}
If your extension is targeting a lower runtime version than 7.2
, you can fix this diagnostic by specifying the instrumentation key of the Azure Application Insights resource setup to monitor the operations related to this extension.
Or before 7.2
- Business Central 2021 release wave 1 update 18.2:
{
"applicationInsightsKey": "<your-azure-application-insight-instrumentationKey>"
}
This rule is triggered when both the 'applicationInsightsConnection' and the 'applicationInsightsKey' properties are not specified in the manifest (app.json) of the extension, or when its value is set to the empty string/GUID as shown below:
{
"applicationInsightsConnectionString": ""
}
{
"applicationInsightsKey": "00000000-0000-0000-0000-000000000000"
}
This rule is also triggered when specifying 'applicationInsightsKey' and targeting a runtime version higher or equal to 7.2
.
{
"applicationInsightsKey": "241514be-e378-4455-a2d3-bf7e40b7d41d",
"runtime": "7.2"
}
Using Application Insights provides telemetry to troubleshoot, understand, and fix issues related to your extension in production.
The Azure Application Insights resource specified in the manifest of the extension submitted to AppSource will be used to log detailed information about the validation process for your AppSource submission. For more information, see Analyzing AppSource Submission Validation Trace Telemetry.
AppSourceCop Analyzer
Get Started with AL
Developing Extensions