You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/console.md
+70-67Lines changed: 70 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Azure Application Insights for Console Applications | Microsoft Docs
3
-
description: Monitor web applications for availability, performance and usage.
2
+
title: Application Insights for console applications | Microsoft Docs
3
+
description: Monitor web applications for availability, performance, and usage.
4
4
ms.topic: conceptual
5
5
ms.date: 05/21/2020
6
6
ms.devlang: csharp
@@ -12,58 +12,59 @@ ms.reviewer: casocha
12
12
13
13
[Application Insights](./app-insights-overview.md) lets you monitor your web application for availability, performance, and usage.
14
14
15
-
You need a subscription with [Microsoft Azure](https://azure.com). Sign in with a Microsoft account, which you might have for Windows, Xbox Live, or other Microsoft cloud services. Your team might have an organizational subscription to Azure: ask the owner to add you to it using your Microsoft account.
15
+
You need an [Azure](https://azure.com) subscription. Sign in with a Microsoft account, which you might have for Windows, Xbox Live, or other Microsoft cloud services. Your team might have an organizational subscription to Azure. Ask the owner to add you to it by using your Microsoft account.
16
16
17
17
> [!NOTE]
18
-
> It is *highly recommended* to use the newer [Microsoft.ApplicationInsights.WorkerService](https://www.nuget.org/packages/Microsoft.ApplicationInsights.WorkerService) package and associated instructions from [here](./worker-service.md) for any Console Applications. This package is compatible with [Long Term Support (LTS) versions](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) of .NET Core and .NET Framework or higher.
18
+
> We recommend using the newer [Microsoft.ApplicationInsights.WorkerService](https://www.nuget.org/packages/Microsoft.ApplicationInsights.WorkerService) package and associated instructions from [Application Insights for Worker Service applications (non-HTTP applications)](./worker-service.md) for any console applications. This package is compatible with [Long Term Support (LTS) versions](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) of .NET Core and .NET Framework or higher.
* Set the connection string in your code before tracking any telemetry (or set the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable). After that, you should be able to manually track telemetry and see it on the Azure portal
28
-
29
-
```csharp
30
-
// you may use different options to create configuration as shown later in this article
> - Telemetry isn't sent instantly; items are batched and sent by the ApplicationInsights SDK. Console apps exit after calling `Track()` methods.
39
-
> - Telemetry may not be sent unless `Flush()` and `Sleep`/`Delay` is done before the app exits as shown in [full example](#full-example) later in this article. `Sleep` is not required if you're using `InMemoryChannel`.
40
-
41
-
* Install latest version of [Microsoft.ApplicationInsights.DependencyCollector](https://www.nuget.org/packages/Microsoft.ApplicationInsights.DependencyCollector) package - it automatically tracks HTTP, SQL, or some other external dependency calls.
42
-
43
-
You may initialize and configure Application Insights from the code or using `ApplicationInsights.config` file. Make sure initialization happens as early as possible.
25
+
* Take a copy of the connection string. Find the connection string in the **Essentials** dropdown of the new resource you created.
26
+
* Install the latest [Microsoft.ApplicationInsights](https://www.nuget.org/packages/Microsoft.ApplicationInsights) package.
27
+
* Set the connection string in your code before you track any telemetry (or set the `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable). After that, you should be able to manually track telemetry and see it in the Azure portal.
28
+
29
+
```csharp
30
+
// You may use different options to create configuration as shown later in this article
>Telemetryisn't sent instantly. Items are batched and sent by the ApplicationInsights SDK. Console apps exit after calling `Track()` methods.
39
+
>
40
+
>Telemetrymightnotbesentunless `Flush()` and `Sleep`/`Delay` aredonebeforetheappexits, asshowninthe [fullexample](#full-example) laterinthisarticle. `Sleep` isn't required if you'reusing `InMemoryChannel`.
41
+
42
+
* Installthelatestversionofthe [Microsoft.ApplicationInsights.DependencyCollector](https://www.nuget.org/packages/Microsoft.ApplicationInsights.DependencyCollector) package. It automatically tracks HTTP, SQL, or some other external dependency calls.
For .NET Frameworkbased application, by default, Application Insights SDK looks for `ApplicationInsights.config` file in the working directory when `TelemetryConfiguration` is being created. Reading config file is not supported on .NET Core.
51
+
For .NETFramework-basedapplications, bydefault, theApplicationInsightsSDKlooksforthe`ApplicationInsights.config` fileintheworkingdirectorywhen `TelemetryConfiguration` isbeingcreated. Readingtheconfigfileisn'tsupportedon .NETCore.
51
52
52
53
```csharp
53
54
TelemetryConfigurationconfig=TelemetryConfiguration.Active; // Reads ApplicationInsights.config file if present
For more information, see [configuration file reference](configuration-with-applicationinsights-config.md).
65
+
For more information, see [Configuration file reference](configuration-with-applicationinsights-config.md).
65
66
66
-
You may get a full example of the config file by installing latest version of [Microsoft.ApplicationInsights.WindowsServer](https://www.nuget.org/packages/Microsoft.ApplicationInsights.WindowsServer) package. Here's the **minimal** configuration for dependency collection that is equivalent to the code example.
67
+
You can get a full example of the config file by installing the latest version of the [Microsoft.ApplicationInsights.WindowsServer](https://www.nuget.org/packages/Microsoft.ApplicationInsights.WindowsServer) package. Here's the *minimal* configuration for dependency collection that's equivalent to the code example:
67
68
68
69
```xml
69
70
<?xml version="1.0" encoding="utf-8"?>
@@ -93,44 +94,45 @@ You may get a full example of the config file by installing latest version of [M
93
94
94
95
```
95
96
96
-
### Configuring telemetry collection from code
97
-
> [!NOTE]
98
-
> Reading config file is not supported on .NET Core.
99
-
100
-
* During application start-up, create and configure `DependencyTrackingTelemetryModule` instance - it must be singleton and must be preserved for application lifetime.
101
-
102
-
```csharp
103
-
varmodule=newDependencyTrackingTelemetryModule();
104
-
105
-
// prevent Correlation Id to be sent to certain endpoints. You may add other domains as needed.
If you created configuration with plain `TelemetryConfiguration()` constructor, you need to enable correlation support additionally. **It is not needed** if you read configuration from file, used `TelemetryConfiguration.CreateDefault()` or `TelemetryConfiguration.Active`.
* You may also want to install and initialize Performance Counter collector module as described [here](https://apmtips.com/posts/2017-02-13-enable-application-insights-live-metrics-from-code/)
99
+
> [!NOTE]
100
+
> Reading the config file isn't supported on .NET Core.
101
+
102
+
* During application startup, create and configure a `DependencyTrackingTelemetryModule` instance. It must be singleton and must be preserved for the application lifetime.
103
+
104
+
```csharp
105
+
varmodule=newDependencyTrackingTelemetryModule();
106
+
107
+
// prevent Correlation Id to be sent to certain endpoints. You may add other domains as needed.
Ifyoucreatedconfigurationwithaplain `TelemetryConfiguration()` constructor, youneedtoenablecorrelationsupportadditionally. *Itisn't needed* if you read configuration from a file or used `TelemetryConfiguration.CreateDefault()` or `TelemetryConfiguration.Active`.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/usage-segmentation.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,51 +6,51 @@ ms.date: 07/30/2021
6
6
ms.reviewer: mmcc
7
7
---
8
8
9
-
# Users, sessions, and events analysis in Application Insights
9
+
# User, session, and event analysis in Application Insights
10
10
11
11
Find out when people use your web app, what pages they're most interested in, where your users are located, and what browsers and operating systems they use. Analyze business and usage telemetry by using [Application Insights](./app-insights-overview.md).
12
12
13
13
:::image type="content" source="./media/usage-segmentation/users.png" alt-text="Screen capture shows the Users tab with an area chart. " lightbox="./media/usage-overview/users.png":::
14
14
15
15
## Get started
16
16
17
-
If you don't yet see data in the users, sessions, or events blades in the Application Insights portal, [learn how to get started with the usage tools](usage-overview.md).
17
+
If you don't yet see data in the **Users**, **Sessions**, or **Events** panes in the Application Insights portal, [learn how to get started with the Usage tools](usage-overview.md).
18
18
19
19
## The Users, Sessions, and Events segmentation tool
20
20
21
-
Three of the usage blades use the same tool to slice and dice telemetry from your web app from three perspectives. By filtering and splitting the data, you can uncover insights about the relative usage of different pages and features.
21
+
Three of the **Usage** panes use the same tool to slice and dice telemetry from your web app from three perspectives. By filtering and splitting the data, you can uncover insights about the relative use of different pages and features.
22
22
23
-
***Users tool**: How many people used your app and its features. Users are counted by using anonymous IDs stored in browser cookies. A single person using different browsers or machines will be counted as more than one user.
24
-
***Sessions tool**: How many sessions of user activity have included certain pages and features of your app. A session is counted after half an hour of user inactivity, or after 24 hours of continuous use.
25
-
***Events tool**: How often certain pages and features of your app are used. A page view is counted when a browser loads a page from your app, provided you've [instrumented it](./javascript.md).
23
+
***Users tool**: How many people used your app and its features? Users are counted by using anonymous IDs stored in browser cookies. A single person using different browsers or machines will be counted as more than one user.
24
+
***Sessions tool**: How many sessions of user activity have included certain pages and features of your app? A session is counted after half an hour of user inactivity, or after 24 hours of continuous use.
25
+
***Events tool**: How often are certain pages and features of your app used? A page view is counted when a browser loads a page from your app, provided you've [instrumented it](./javascript.md).
26
+
27
+
A custom event represents one occurrence of something happening in your app. It's often a user interaction like a button selection or the completion of a task. You insert code in your app to [generate custom events](./api-custom-events-metrics.md#trackevent).
26
28
27
-
A custom event represents one occurrence of something happening in your app, often a user interaction like a button select or the completion of some task. You insert code in your app to [generate custom events](./api-custom-events-metrics.md#trackevent).
28
-
29
29
> [!NOTE]
30
-
> For details on an alternative to using [anonymous IDs](./data-model-context.md#anonymous-user-id) and ensuring an accurate count, reference the documentation for [authenticated IDs](./data-model-context.md#authenticated-user-id).
30
+
> For information on an alternatives to using [anonymous IDs](./data-model-context.md#anonymous-user-id) and ensuring an accurate count, see the documentation for [authenticated IDs](./data-model-context.md#authenticated-user-id).
31
31
32
-
## Querying for certain users
32
+
## Query for certain users
33
33
34
34
Explore different groups of users by adjusting the query options at the top of the Users tool:
35
35
36
-
- During: Choose a time range.
37
-
- Show: Choose a cohort of users to analyze.
38
-
- Who used: Choose which custom events, requests, and page views.
39
-
- Events: Choose multiple events, requests, and page views that will show users who did at least one, not necessarily all of the selected.
40
-
- By value x-axis: Choose how to bucket the data, either by time range or by another property such as browser or city.
41
-
- Split By: Choose a property by which to split or segment the data.
42
-
- Add Filters: Limit the query to certain users, sessions, or events based on their properties, such as browser or city.
43
-
36
+
-**During**: Choose a time range.
37
+
-**Show**: Choose a cohort of users to analyze.
38
+
-**Who used**: Choose custom events, requests, and page views.
39
+
-**Events**: Choose multiple events, requests, and page views that will show users who did at least one, not necessarily all, of the selected options.
40
+
-**By value x-axis**: Choose how to categorize the data, either by time range or by another property, such as browser or city.
41
+
-**Split By**: Choose a property to use to split or segment the data.
42
+
-**Add Filters**: Limit the query to certain users, sessions, or events based on their properties, such as browser or city.
43
+
44
44
## Meet your users
45
45
46
-
The **Meet your users** section shows information about five sample users matched by the current query. Exploring the behaviors of individuals and in aggregate, can provide insights about how people actually use your app.
46
+
The **Meet your users** section shows information about five sample users matched by the current query. Exploring the behaviors of individuals and in aggregate can provide insights about how people use your app.
47
47
48
48
## Next steps
49
49
50
50
- To enable usage experiences, start sending [custom events](./api-custom-events-metrics.md#trackevent) or [page views](./api-custom-events-metrics.md#page-views).
51
-
- If you already send custom events or page views, explore the Usage tools to learn how users use your service.
51
+
- If you already send custom events or page views, explore the **Usage** tools to learn how users use your service.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/sms/send.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,10 @@ To troubleshoot issues related to SMS delivery, you can [enable delivery reporti
56
56
57
57
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources).
58
58
59
+
## Toll-free verification
60
+
61
+
If you have a new toll-free number and want to send [high volume of SMS messages](../../concepts/sms/sms-faq.md#what-happens-if-i-dont-verify-my-toll-free-numbers) or send SMS messages to Canadian phone numbers, please visit [here](../../concepts/sms/sms-faq.md#how-do-i-submit-a-toll-free-verification) to learn how to verify your toll-free number.
62
+
59
63
## Next steps
60
64
61
65
In this quickstart, you learned how to send SMS messages by using Communication Services.
* Now that you've created a subscription, you can grant that ability to other users and service principals. For more information, see [Grant access to create Azure Enterprise subscriptions (preview)](grant-access-to-create-subscription.md).
471
471
* For more information about managing large numbers of subscriptions using management groups, see [Organize your resources with Azure management groups](../../governance/management-groups/overview.md).
472
472
* To change the management group for a subscription, see [Move subscriptions](../../governance/management-groups/manage.md#move-subscriptions).
473
+
* For advanced subscription creation scenarios using REST API, see [Alias - Create](/rest/api/subscription/2021-10-01/alias/create).
0 commit comments