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
Workspace-based resources support full integration between Application Insights and Log Analytics. Now you can send your Application Insights telemetry to a common Log Analytics workspace. You'll have full access to all the features of Log Analytics, while your application, infrastructure, and platform logs remain in a single consolidated location.
This integration allows for common Azure role-based access control across your resources. It also eliminates the need for cross-app/workspace queries.
14
+
With workspace-based resources, [Application Insights](app-insights-overview.md#application-insights-overview) sends telemetry to a common [Log Analytics](../logs/log-analytics-overview.md#overview-of-log-analytics-in-azure-monitor) workspace, providing full access to all the features of [Log Analytics](../logs/log-analytics-overview.md#overview-of-log-analytics-in-azure-monitor) while keeping your application, infrastructure, and platform logs in a single consolidated location. This integration allows for common [Azure role-based access control](../roles-permissions-security.md) across your resources and eliminates the need for cross-app/workspace queries.
15
15
16
16
> [!NOTE]
17
17
> Data ingestion and retention for workspace-based Application Insights resources are billed through the Log Analytics workspace where the data is located. To learn more about billing for workspace-based Application Insights resources, see [Azure Monitor Logs pricing details](../logs/cost-logs.md).
With workspace-based Application Insights, you can take advantage of the latest capabilities of Azure Monitor and Log Analytics. For example:
24
22
25
23
*[Customer-managed key](../logs/customer-managed-keys.md) provides encryption at rest for your data with encryption keys to which only you have access.
26
24
*[Azure Private Link](../logs/private-link-security.md) allows you to securely link Azure platform as a service (PaaS) services to your virtual network by using private endpoints.
27
-
*[Bring your own storage (BYOS) for Profiler and Snapshot Debugger](./profiler-bring-your-own-storage.md) gives you full control over the encryption-at-rest policy, the lifetime management policy, and network access for all data associated with Application Insights Profiler and Snapshot Debugger.
25
+
*[Bring your own storage (BYOS) for Profiler and Snapshot Debugger](./profiler-bring-your-own-storage.md) allows you to control this data associated with Application Insights [Profiler](../profiler/profiler-overview.md) and [Snapshot Debugger](../snapshot-debugger/snapshot-debugger.md).
26
+
* Encryption-at-rest policy
27
+
* Lifetime management policy
28
+
* Network access
28
29
*[Commitment tiers](../logs/cost-logs.md#commitment-tiers) enable you to save as much as 30% compared to the pay-as-you-go price.
29
30
* Log Analytics streaming ingests data faster.
30
31
@@ -33,15 +34,15 @@ With workspace-based Application Insights, you can take advantage of the latest
33
34
Sign in to the [Azure portal](https://portal.azure.com), and create an Application Insights resource.
34
35
35
36
> [!div class="mx-imgBorder"]
36
-
> 
37
+
> :::image type="content" source="./media/create-workspace-resource/create-workspace-based.png" lightbox="./media/create-workspace-resource/create-workspace-based.png" alt-text="Screenshot that shows a workspace-based Application Insights resource.":::
37
38
38
39
If you don't have an existing Log Analytics workspace, see the [Log Analytics workspace creation documentation](../logs/quick-create-workspace.md).
39
40
40
-
*Workspace-based resources are currently available in all commercial regions and Azure Government.*
41
+
*Workspace-based resources are currently available in all commercial regions and Azure Government. Having Application Insights and Log Analytics in two different regions can impact latency and reduce overall reliability of the monitoring solution. *
41
42
42
43
After you create your resource, you'll see corresponding workspace information in the **Overview** pane.
43
44
44
-

45
+
:::image type="content" source="./media/create-workspace-resource/workspace-name.png" lightbox="./media/create-workspace-resource/workspace-name.png" alt-text="Screenshot that shows a workspace name.":::
45
46
46
47
Select the blue link text to go to the associated Log Analytics workspace where you can take advantage of the new unified workspace query environment.
47
48
@@ -50,15 +51,15 @@ Select the blue link text to go to the associated Log Analytics workspace where
50
51
51
52
## Copy the connection string
52
53
53
-
The [connection string](./sdk-connection-string.md?tabs=net) identifies the resource that you want to associate your telemetry data with. You can also use it to modify the endpoints your resource will use as a destination for your telemetry. You must copy the connection string and add it to your application's code or to an environment variable.
54
+
The [connection string](./sdk-connection-string.md?tabs=net) identifies the resource that you want to associate your telemetry data with. You can also use it to modify the endpoints your resource uses as a destination for your telemetry. You must copy the connection string and add it to your application's code or to an environment variable.
54
55
55
56
## Configure monitoring
56
57
57
58
After you've created a workspace-based Application Insights resource, you configure monitoring.
58
59
59
60
### Code-based application monitoring
60
61
61
-
For code-based application monitoring, you install the appropriate Application Insights SDK and point the instrumentation key or connection string to your newly created resource.
62
+
For code-based application monitoring, you install the appropriate Application Insights SDK and point the connection string to your newly created resource.
62
63
63
64
For information on how to set up an Application Insights SDK for code-based monitoring, see the following documentation specific to the language or framework:
64
65
@@ -89,7 +90,7 @@ To access the preview Application Insights Azure CLI commands, you first need to
89
90
az extension add -n application-insights
90
91
```
91
92
92
-
If you don't run the `az extension add` command, you'll see an error message that states `az : ERROR: az monitor: 'app-insights' is not in the 'az monitor' command group. See 'az monitor --help'`.
93
+
If you don't run the `az extension add` command, you see an error message that states `az : ERROR: az monitor: 'app-insights' is not in the 'az monitor' command group. See 'az monitor --help'`.
93
94
94
95
Now you can run the following code to create your Application Insights resource:
For the full PowerShell documentation for this cmdlet, and to learn how to retrieve the instrumentation key, see the [Azure PowerShell documentation](/powershell/module/az.applicationinsights/new-azapplicationinsights).
153
+
For the full PowerShell documentation for this cmdlet, and to learn how to retrieve the connection string, see the [Azure PowerShell documentation](/powershell/module/az.applicationinsights/new-azapplicationinsights).
0 commit comments