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/api-management/api-management-howto-developer-portal-customize.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,8 @@ Although you don't need to adjust any styles, you may consider adjusting particu
168
168
You can control which portal content appears to different users, based on their identity. For example, you might want to display certain pages only to users who have access to a specific product or API. Or, make a section of a page appear only for certain [groups of users](api-management-howto-create-groups.md). The developer portal has built-in controls for these needs.
169
169
170
170
> [!NOTE]
171
-
> Visibility and access controls are supported only in the managed developer portal. They are not supported in the [self-hosted portal](developer-portal-self-host.md).
171
+
> * These controls are being released during December 2022. It may take several weeks for your API Management service to receive the update.
172
+
> * Visibility and access controls are supported only in the managed developer portal. They are not supported in the [self-hosted portal](developer-portal-self-host.md).
172
173
173
174
* When you add or edit a page, select the **Access** tab to control the users or groups that can access the page
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-dotnet-class-library.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ The order of parameters in the function signature doesn't matter. For example, y
100
100
101
101
### Output bindings
102
102
103
-
A function can have zero or one output bindings defined by using output parameters.
103
+
A function can have zero or multiple output bindings defined by using output parameters.
104
104
105
105
The following example modifies the preceding one by adding an output queue binding named `myQueueItemCopy`. The function writes the contents of the message that triggers the function to a new message in a different queue.
(If you use private links on the agent, you must also add the [dce endpoints](../essentials/data-collection-endpoint-overview.md#components-of-a-data-collection-endpoint)).
(If using private links on the agent, you must also add the [data collection endpoints](../essentials/data-collection-endpoint-overview.md#components-of-a-data-collection-endpoint))
55
55
6. Existing data collection rule(s) you wish to associate with the devices. If it doesn't exist already, [follow the guidance here to create data collection rule(s)](./data-collection-rule-azure-monitor-agent.md#create-data-collection-rule-and-association). **Do not associate the rule to any resources yet**.
Copy file name to clipboardExpand all lines: articles/azure-monitor/alerts/itsmc-definition.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ After you create your ITSM connection, use the ITSM action in action groups to c
74
74
75
75
Certain work item types can use templates that you define in ServiceNow. When you use templates, you can define fields that will be automatically populated by using constant values defined in ServiceNow (not values from the payload). The templates are synced with Azure. You can define which template you want to use as a part of the definition of an action group. For information about how to create templates, see the [ServiceNow documentation](https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/administer/form-administration/task/t_CreateATemplateUsingTheTmplForm.html).
76
76
77
+
### Create ITSM work items
78
+
77
79
To create an action group:
78
80
79
81
1. In the Azure portal, select **Monitor** > **Alerts**.
Sampling is a feature in [Azure Application Insights](./app-insights-overview.md). It's the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data. Sampling also helps you avoid Application Insights throttling your telemetry. The sampling filter selects items that are related, so that you can navigate between items when you're doing diagnostic investigations.
12
+
Sampling is a feature in [Application Insights](./app-insights-overview.md). It's the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data. Sampling also helps you avoid Application Insights throttling your telemetry. The sampling filter selects items that are related, so that you can navigate between items when you're doing diagnostic investigations.
13
13
14
14
When metric counts are presented in the portal, they're renormalized to take into account sampling. Doing so minimizes any effect on the statistics.
15
15
@@ -139,7 +139,7 @@ In [`ApplicationInsights.config`](./configuration-with-applicationinsights-confi
139
139
Instead of setting the sampling parameter in the `.config` file, you can programmatically set these values.
140
140
141
141
1. Remove all the `AdaptiveSamplingTelemetryProcessor` node(s) from the `.config` file.
142
-
2. Use the following snippet to configure adaptive sampling:
142
+
1. Use the following snippet to configure adaptive sampling:
143
143
144
144
```csharp
145
145
usingMicrosoft.ApplicationInsights;
@@ -179,21 +179,37 @@ Adaptive sampling is enabled by default for all ASP.NET Core applications. You c
179
179
180
180
#### Turning off adaptive sampling
181
181
182
-
The default sampling feature can be disabled while adding Application Insights service, in the method `ConfigureServices`, using `ApplicationInsightsServiceOptions` within the `Startup.cs` file:
182
+
The default sampling feature can be disabled while adding the Application Insights service.
183
+
184
+
### [ASP.NET Core 6 and later](#tab/net-core-new)
185
+
186
+
Add `ApplicationInsightsServiceOptions` after the `WebApplication.CreateBuilder()` method in the `Program.cs` file:
The above code will disable adaptive sampling. Follow the steps below to add sampling with more customization options.
198
214
199
215
#### Configure sampling settings
@@ -203,6 +219,39 @@ Use extension methods of `TelemetryProcessorChainBuilder` as shown below to cust
203
219
> [!IMPORTANT]
204
220
> If you use this method to configure sampling, please make sure to set the `aiOptions.EnableAdaptiveSampling` property to `false` when calling `AddApplicationInsightsTelemetry()`. After making this change, you then need to follow the instructions in the code block below **exactly** in order to re-enable adaptive sampling with your customizations in place. Failure to do so can result in excess data ingestion. Always test post changing sampling settings, and set an appropriate [daily data cap](../logs/daily-cap.md) to help control your costs.
// Alternately, the following configures adaptive sampling with 5 items per second, and also excludes DependencyTelemetry from being subject to sampling:
### Configuring adaptive sampling for Azure Functions
231
280
232
281
Follow instructions from [this page](../../azure-functions/configure-monitoring.md#configure-sampling) to configure adaptive sampling for apps running in Azure Functions.
@@ -252,7 +301,7 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
252
301
-->
253
302
```
254
303
255
-
2. **Enable the fixed-rate sampling module.** Add this snippet to [`ApplicationInsights.config`](./configuration-with-applicationinsights-config.md):
304
+
1. **Enable the fixed-rate sampling module.** Add this snippet to [`ApplicationInsights.config`](./configuration-with-applicationinsights-config.md):
256
305
257
306
```xml
258
307
<TelemetryProcessors>
@@ -264,8 +313,8 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
264
313
</TelemetryProcessors>
265
314
```
266
315
267
-
Alternatively, instead of setting the sampling parameter in the `ApplicationInsights.config` file, you can programmatically set these values:
268
-
316
+
Alternatively, instead of setting the sampling parameter in the `ApplicationInsights.config` file, you can programmatically set these values:
317
+
269
318
```csharp
270
319
using Microsoft.ApplicationInsights.Extensibility;
271
320
using Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel;
@@ -288,22 +337,66 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
288
337
289
338
### Configuring fixed-rate sampling for ASP.NET Core applications
290
339
291
-
1. **Disable adaptive sampling**: Changes can be made in the `ConfigureServices` method, using `ApplicationInsightsServiceOptions`:
340
+
1. **Disable adaptive sampling**
341
+
342
+
### [ASP.NET Core 6 and later](#tab/net-core-new)
343
+
344
+
Changes can be made after the `WebApplication.CreateBuilder()` method, using `ApplicationInsightsServiceOptions`:
345
+
346
+
```csharp
347
+
var builder = WebApplication.CreateBuilder(args);
348
+
349
+
var aiOptions = new Microsoft.ApplicationInsights.AspNetCore.Extensions.ApplicationInsightsServiceOptions();
2. **Enable the fixed-rate sampling module.** Changes can be made in the `Configure` method as shown in the below snippet:
397
+
### [ASP.NET Core 5 and earlier](#tab/net-core-old)
398
+
399
+
Changes can be made in the `Configure()` method:
307
400
308
401
```csharp
309
402
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
@@ -319,11 +412,11 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
319
412
builder.UseSampling(fixedSamplingPercentage);
320
413
321
414
builder.Build();
322
-
323
-
// ...
324
415
}
325
416
```
326
417
418
+
---
419
+
327
420
### Configuring sampling overrides and fixed-rate sampling for Java applications
328
421
329
422
By default no sampling is enabled in the Java auto-instrumentation and SDK. Currently the Java auto-instrumentation, [sampling overrides](./java-standalone-sampling-overrides.md) and fixed rate sampling are supported. Adaptive sampling isn't supported in Java.
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/manage-access.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@ To create a [custom role](../../role-based-access-control/custom-roles.md) that
282
282
283
283
1. Create a custom role that grants users permission to execute queries in the Log Analytics workspace, based on the built-in Azure Monitor Logs **Reader** role:
284
284
285
-
1. Navigate to your workspace and select **Access control (AIM)** > **Roles**.
285
+
1. Navigate to your workspace and select **Access control (IAM)** > **Roles**.
286
286
287
287
1. Right-click the **Reader** role and select **Clone**.
1. Enable Application Insights and Profiler in `Startup.cs`:
71
+
1. Enable Application Insights and Profiler:
72
+
73
+
### [ASP.NET Core 6 and later](#tab/net-core-new)
74
+
75
+
Add `builder.Services.AddApplicationInsightsTelemetry()` and `builder.Services.AddServiceProfiler()` after the `WebApplication.CreateBuilder()` method in `Program.cs`:
76
+
77
+
```csharp
78
+
var builder = WebApplication.CreateBuilder(args);
72
79
73
-
```csharp
74
-
public void ConfigureServices(IServiceCollection services)
75
-
{
76
-
services.AddApplicationInsightsTelemetry(); // Add this line of code to enable Application Insights.
77
-
services.AddServiceProfiler(); // Add this line of code to Enable Profiler
78
-
services.AddControllersWithViews();
79
-
}
80
-
```
80
+
builder.Services.AddApplicationInsightsTelemetry(); // Add this line of code to enable Application Insights.
81
+
builder.Services.AddServiceProfiler(); // Add this line of code to enable Profiler
82
+
builder.Services.AddControllersWithViews();
83
+
84
+
var app = builder.Build();
85
+
```
86
+
87
+
### [ASP.NET Core 5 and earlier](#tab/net-core-old)
88
+
89
+
Add `services.AddApplicationInsightsTelemetry()` and `services.AddServiceProfiler()` to the `ConfigureServices()` method in `Startup.cs`:
90
+
91
+
```csharp
92
+
public void ConfigureServices(IServiceCollection services)
93
+
{
94
+
services.AddApplicationInsightsTelemetry(); // Add this line of code to enable Application Insights.
95
+
services.AddServiceProfiler(); // Add this line of code to enable Profiler
96
+
services.AddControllersWithViews();
97
+
}
98
+
```
99
+
100
+
---
81
101
82
102
## Pull the latest ASP.NET Core build/runtime images
0 commit comments