Microsoft Power Platform and Dynamics 365 products continuously emit telemetry about events that happen in the customer environment. This telemetry can be useful for troubleshooting an issue or to gain insights into what is happening in the application.
Application Insights is billed based on the volume of telemetry data that your application sends. Currently, the first 5 GB of data per month is free. Regarding data retention, every GB of data ingested can be retained at no charge for up to first 90 days.
Please check the documentation https://azure.microsoft.com/en-us/pricing/details/monitor/ for up-to-date information on pricing.
Azure monitor alerts are billed separately.
To reduce ingestion cost, you can
- set limits on daily data ingestion
- reduce data ingestion by sampling to only ingest a percentage of the inbound data (see https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#ingestion-sampling)
- set a daily limit of how much data that can be ingested
- purge data from your Application Insights resource (see How do I delete data from Application Insights? below)
- set alerts on cost thresholds being exceeded to get notified if this happens
- use Data Collection Rules on Azure Log Analytics (the backend of Azure Application Insights)
Please visit the KQL README page for learning resources on KQL and the Trouble Shooting Guides README page for learning resources on Azure Data Studio.
The default retention for Application Insights resources is 90 days. Different retention periods can be selected for each Application Insights resource. The full set of available retention periods is 30, 60, 90, 120, 180, 270, 365, 550 or 730 days.
See https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing#change-the-data-retention-period
Purge data in an Application Insights component by a set of user-defined filters.
See https://docs.microsoft.com/en-us/rest/api/application-insights/components/purge#examples
You can use Powershell to setup a purge process, see an example here: How do I use Powershell to delete telemetry data?
To grant a person read-only access to Application Insights, go to the Access control (IAM) page in the Application Insights portal, and then add the role assignment "Reader" to the person.
You might also need to add the role assignment "Reader" to the person on the Resource Group for the Application Insights subscription.
The Microsoft products do not emit any End User Identifiable Information (EUII) to Application Insights. So the telemetry is born GDPR compliant. The service only emits data that is classified as either System Metadata or Organization Identifiable Information (OII). The meaning of these classifications are described here: DataClassification Option Type
Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use and modify the software code provided by us for the purposes of illustration ("Sample Code") and to reproduce and distribute the object code form of the Sample Code, provided that you agree: (i) to not use our name, logo, or trademarks to market your software product in which the Sample Code is embedded; (ii) to include a valid copyright notice on your software product in which the Sample Code is embedded; and (iii) to indemnify, hold harmless, and defend us and our suppliers from and against any claims or lawsuits, whether in an action of contract, tort or otherwise, including attorneys’ fees, that arise or result from the use or distribution of the Sample Code or the use or other dealings in the Sample Code. Unless applicable law gives you more rights, Microsoft reserves all other rights not expressly granted herein, whether by implication, estoppel or otherwise.
THE SAMPLE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL MICROSOFT OR ITS LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE SAMPLE CODE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.