Skip to content

Commit b3c54b1

Browse files
authored
Merge pull request #111102 from MicrosoftDocs/master
Merge master to live, 4 AM
2 parents 71db233 + 1bc92cf commit b3c54b1

16 files changed

+101
-87
lines changed

articles/api-management/transform-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ To see the original response:
108108
2. Select **All operations**.
109109
3. On the top of the screen, select **Design** tab.
110110
4. In the **Outbound processing** section, click the **</>** icon.
111-
5. Position the cursor inside the **&lt;outbound&gt;** element.
111+
5. Position the cursor inside the **&lt;outbound&gt;** element and click **Insert policy** button at the top right corner.
112112
6. In the right window, under **Transformation policies**, click **+ Find and replace string in body**.
113113
7. Modify your **find-and-replace** code (in the **\<outbound\>** element) to replace the URL to match your APIM gateway. For example:
114114

articles/azure-functions/functions-create-first-azure-function-azure-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Navigate into the project folder:
9292

9393
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
9494
```
95-
cd LocalFunctionsProject
95+
cd LocalFunctionProj
9696
```
9797
::: zone-end
9898
::: zone pivot="programming-language-java"

articles/azure-monitor/app/sampling.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ When metric counts are presented in the portal, they are renormalized to take in
1717

1818
* There are three different types of sampling: adaptive sampling, fixed-rate sampling, and ingestion sampling.
1919
* Adaptive sampling is enabled by default in all the latest versions of the Application Insights ASP.NET and ASP.NET Core Software Development Kits (SDKs). It is also used by [Azure Functions](https://docs.microsoft.com/azure/azure-functions/functions-overview).
20-
* Fixed-rate sampling is available in recent versions of the Application Insights SDKs for ASP.NET, ASP.NET Core, Java, and Python.
20+
* Fixed-rate sampling is available in recent versions of the Application Insights SDKs for ASP.NET, ASP.NET Core, Java (both the agent and the SDK), and Python.
2121
* Ingestion sampling works on the Application Insights service endpoint. It only applies when no other sampling is in effect. If the SDK samples your telemetry, ingestion sampling is disabled.
2222
* For web applications, if you log custom events and need to ensure that a set of events is retained or discarded together, the events must have the same `OperationId` value.
2323
* If you write Analytics queries, you should [take account of sampling](../../azure-monitor/log-query/aggregations.md). In particular, instead of simply counting records, you should use `summarize sum(itemCount)`.
@@ -239,7 +239,7 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
239239
</TelemetryProcessors>
240240
```
241241

242-
Alternatively, instead of setting the sampling parameter in the `ApplicationInsights.config` file, you can programmatically set these values:
242+
Alternatively, instead of setting the sampling parameter in the `ApplicationInsights.config` file, you can programmatically set these values:
243243

244244
```csharp
245245
using Microsoft.ApplicationInsights.Extensibility;
@@ -301,7 +301,29 @@ In Metrics Explorer, rates such as request and exception counts are multiplied b
301301

302302
### Configuring fixed-rate sampling for Java applications
303303

304-
By default no sampling is enabled in the Java SDK. Currently it only supports fixed rate sampling. Adaptive sampling is not supported in the Java SDK.
304+
By default no sampling is enabled in the Java agent and SDK. Currently it only supports fixed rate sampling. Adaptive sampling is not supported in Java.
305+
306+
#### Configuring Java Agent
307+
308+
1. Download [applicationinsights-agent-3.0.0-PREVIEW.2.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.0.0-PREVIEW.2/applicationinsights-agent-3.0.0-PREVIEW.2.jar)
309+
310+
1. To enable sampling add the following to your `ApplicationInsights.json` file:
311+
312+
```json
313+
{
314+
"instrumentationSettings": {
315+
"preview": {
316+
"sampling": {
317+
"fixedRate": {
318+
"percentage": 10 //this is just an example that shows you how to enable only only 10% of transaction
319+
}
320+
}
321+
}
322+
}
323+
}
324+
```
325+
326+
#### Configuring Java SDK
305327

306328
1. Download and configure your web application with the latest [Application Insights Java SDK](../../azure-monitor/app/java-get-started.md).
307329

@@ -530,7 +552,7 @@ The accuracy of the approximation largely depends on the configured sampling per
530552

531553
* Ingestion sampling can occur automatically for any telemetry above a certain volume, if the SDK is not performing sampling. This configuration would work, for example, if you are using an older version of the ASP.NET SDK or Java SDK.
532554
* If you're using the current ASP.NET or ASP.NET Core SDKs (hosted either in Azure or on your own server), you get adaptive sampling by default, but you can switch to fixed-rate as described above. With fixed-rate sampling, the browser SDK automatically synchronizes to sample related events.
533-
* If you're using the current Java SDK, you can configure `ApplicationInsights.xml` to turn on fixed-rate sampling. Sampling is turned off by default. With fixed-rate sampling, the browser SDK and the server automatically synchronize to sample related events.
555+
* If you're using the current Java agent, you can configure `ApplicationInsights.json` (for Java SDK, configure `ApplicationInsights.xml`) to turn on fixed-rate sampling. Sampling is turned off by default. With fixed-rate sampling, the browser SDK and the server automatically synchronize to sample related events.
534556

535557
*There are certain rare events I always want to see. How can I get them past the sampling module?*
536558

articles/azure-monitor/platform/customer-managed-keys.md

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ The procedure is not supported in the UI currently and the provisioning process
119119
For example:
120120

121121
```rst
122-
GET
123-
https://management.azure.com/subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/Microsoft.OperationalInsights/workspaces/<workspaceName>?api-version=2015-11-01-preview
122+
GET https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>?api-version=2020-03-01-preview
124123
Authorization: Bearer eyJ0eXAiO....
125124
```
126125

@@ -130,21 +129,21 @@ You can acquire the token using one of these methods:
130129

131130
1. Use [App registrations](https://docs.microsoft.com/graph/auth/auth-concepts#access-tokens) method.
132131
2. In the Azure portal
133-
1. Navigate to Azure portal in "developer tool (F12)
134-
1. Look for authorization string under "Request Headers" in one of the "batch?api-version" instances. It looks like: "authorization: Bearer \<token\>".
132+
1. Navigate to Azure portal while in "developer tool" (F12)
133+
1. Look for authorization string under "Request Headers" in one of the "batch?api-version" instances. It looks like: "authorization: Bearer eyJ0eXAiO....".
135134
1. Copy and add it to your API call per the examples below.
136135
3. Navigate to Azure REST documentation site. Press "Try it" on any API and copy the Bearer token.
137136

138137
### Asynchronous operations and status check
139138

140139
Some of the operations in this configuration procedure run asynchronously because they can't be completed quickly. The response for asynchronous operation initially returns an HTTP status code 200 (OK) and header with *Azure-AsyncOperation* property when accepted:
141140
```json
142-
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/ subscription-id/providers/Microsoft.OperationalInsights/locations/region-name/operationStatuses/operation-id?api-version=2015-11-01-preview"
141+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscription-id/providers/Microsoft.OperationalInsights/locations/region-name/operationStatuses/operation-id?api-version=2020-03-01-preview"
143142
```
144143

145144
You can check the status of the asynchronous operation by sending a GET request to the *Azure-AsyncOperation* header value:
146145
```rst
147-
GET https://management.azure.com/subscriptions/ subscription-id/providers/Microsoft.OperationalInsights/locations/region-name/operationStatuses/operation-id?api-version=2015-11-01-preview
146+
GET https://management.azure.com/subscriptions/subscription-id/providers/microsoft.operationalInsights/locations/region-name/operationstatuses/operation-id?api-version=2020-03-01-preview
148147
Authorization: Bearer <token>
149148
```
150149

@@ -239,11 +238,9 @@ The identity is assigned to the *Cluster* resource at creation time.
239238
**Response**
240239

241240
200 OK and header.
242-
243-
>[!Important]
244-
> During the early access period of the feature, the ADX cluster is provisioned manually. While it takes the provisioning of the underly ADX cluster a while to complete, you can check the provisioning state in two ways:
245-
> 1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
246-
> 2. Send a GET request on the *Cluster* resource and look at the *provisioningState* value. It is *ProvisioningAccount* while provisioning and *Succeeded* when completed.
241+
During the early access period of the feature, the ADX cluster is provisioned manually. While it takes the provisioning of the underly ADX cluster a while to complete, you can check the provisioning state in two ways:
242+
1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
243+
2. Send a GET request on the *Cluster* resource and look at the *provisioningState* value. It is *ProvisioningAccount* while provisioning and *Succeeded* when completed.
247244

248245
### Azure Monitor data-store (ADX cluster) provisioning
249246

@@ -255,7 +252,7 @@ Authorization: Bearer <token>
255252
```
256253

257254
> [!IMPORTANT]
258-
> Copy and save the response since you will need its details in later steps
255+
> Copy and save the response since you will need the details in next steps.
259256
260257
**Response**
261258

@@ -311,11 +308,11 @@ details.
311308

312309
This Resource Manager request is asynchronous operation.
313310

314-
>[!Warning]
311+
> [!Warning]
315312
> You must provide a full body in *Cluster* resource update that includes *identity*, *sku*, *KeyVaultProperties* and *location*. Missing the *KeyVaultProperties* details will remove the key identifier from the *Cluster* resource and cause [key revocation](#cmk-kek-revocation).
316313
317314
```rst
318-
PUT https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2019-08-01-preview
315+
PUT https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2020-03-01-preview
319316
Authorization: Bearer <token>
320317
Content-type: application/json
321318
@@ -342,11 +339,9 @@ Content-type: application/json
342339
**Response**
343340

344341
200 OK and header.
345-
346-
>[!Important]
347-
> It takes the propagation of the Key identifier a few minutes to complete. You can check the provisioning state in two ways:
348-
> 1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
349-
> 2. Send a GET request on the *Cluster* resource and look at the *KeyVaultProperties* properties. Your recently updated Key identifier details should return in the response.
342+
It takes the propagation of the Key identifier a few minutes to complete. You can check the provisioning state in two ways:
343+
1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
344+
2. Send a GET request on the *Cluster* resource and look at the *KeyVaultProperties* properties. Your recently updated Key identifier details should return in the response.
350345

351346
A response to GET request on the *Cluster* resource should look like this when Key identifier update is complete:
352347

@@ -382,8 +377,6 @@ A response to GET request on the *Cluster* resource should look like this when K
382377
### Workspace association to *Cluster* resource
383378
For Application Insights CMK configuration, follow the Appendix content for this step.
384379

385-
This Resource Manager request is asynchronous operation.
386-
387380
You need to have 'write' permissions to both your workspace and *Cluster* resource to perform this operation, which include these actions:
388381

389382
- In workspace: Microsoft.OperationalInsights/workspaces/write
@@ -397,7 +390,7 @@ You need to have 'write' permissions to both your workspace and *Cluster* resour
397390
This Resource Manager request is asynchronous operation.
398391

399392
```rst
400-
PUT https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>/linkedservices/cluster?api-version=2019-08-01-preview
393+
PUT https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>/linkedservices/cluster?api-version=2020-03-01-preview
401394
Authorization: Bearer <token>
402395
Content-type: application/json
403396
@@ -411,14 +404,12 @@ Content-type: application/json
411404
**Response**
412405

413406
200 OK and header.
414-
415-
>[!Important]
416-
> Ingested data is stored encrypted with your managed key after association operation, which can take up to 90 minutes to complete. You can check the workspace association state in two ways:
417-
> 1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
418-
> 2. Send a [Workspaces – Get](https://docs.microsoft.com/rest/api/loganalytics/workspaces/get) request and observe the response, associated workspace will have a clusterResourceId under "features".
407+
Ingested data is stored encrypted with your managed key after association operation, which can take up to 90 minutes to complete. You can check the workspace association state in two ways:
408+
1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
409+
2. Send a [Workspaces – Get](https://docs.microsoft.com/rest/api/loganalytics/workspaces/get) request and observe the response, associated workspace will have a clusterResourceId under "features".
419410

420411
```rest
421-
GET https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalInsights/workspaces/<workspace-name>?api-version=2015-11-01-preview
412+
GET https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalInsights/workspaces/<workspace-name>?api-version=2020-03-01-preview
422413
```
423414

424415
**Response**
@@ -521,7 +512,7 @@ All your data is accessible after the key rotation operation including data inge
521512
- Get all *Cluster* resources for a resource group:
522513

523514
```rst
524-
GET https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters?api-version=2019-08-01-preview
515+
GET https://management.azure.com/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters?api-version=2020-03-01-preview
525516
Authorization: Bearer <token>
526517
```
527518

@@ -558,7 +549,7 @@ All your data is accessible after the key rotation operation including data inge
558549
- Get all *Cluster* resources for a subscription:
559550

560551
```rst
561-
GET https://management.azure.com/subscriptions/<subscription-id>/providers/Microsoft.OperationalInsights/clusters?api-version=2019-08-01-preview
552+
GET https://management.azure.com/subscriptions/<subscription-id>/providers/Microsoft.OperationalInsights/clusters?api-version=2020-03-01-preview
562553
Authorization: Bearer <token>
563554
```
564555

@@ -570,8 +561,7 @@ All your data is accessible after the key rotation operation including data inge
570561
After the soft-delete period, your *Cluster* resource and data are non-recoverable. Associated workspaces are de-associated from the *Cluster* resource and new data is ingested to shared Storage and encrypted with Microsoft key.
571562

572563
```rst
573-
DELETE
574-
https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2019-08-01-preview
564+
DELETE https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2020-03-01-preview
575565
Authorization: Bearer <token>
576566
```
577567

@@ -614,8 +604,10 @@ This resource is used as intermediate identity connection between your Key Vault
614604

615605
**Create**
616606

607+
This Resource Manager request is asynchronous operation.
608+
617609
```rst
618-
PUT https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2019-08-01-preview
610+
PUT https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2020-03-01-preview
619611
Authorization: Bearer <token>
620612
Content-type: application/json
621613
@@ -636,11 +628,10 @@ Content-type: application/json
636628

637629
**Response**
638630

639-
200 OK and header when accepted.
640-
>[!Important]
641-
> During the early access period of the feature, the ADX cluster is provisioned manually. While it takes the provisioning of the underly ADX cluster a while to complete, you can check the provisioning state in two ways:
642-
> 1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
643-
> 2. Send a GET request on the *Cluster* resource and look at the *provisioningState* value. It is *ProvisioningAccount* while provisioning and *Succeeded* when completed.
631+
200 OK and header.
632+
During the early access period of the feature, the ADX cluster is provisioned manually. While it takes the provisioning of the underly ADX cluster a while to complete, you can check the provisioning state in two ways:
633+
1. Copy the Azure-AsyncOperation URL value from the response and follow the [asynchronous operations status check](#asynchronous-operations-and-status-check).
634+
2. Send a GET request on the *Cluster* resource and look at the *provisioningState* value. It is *ProvisioningAccount* while provisioning and *Succeeded* when completed.
644635

645636
### Associate a component to a *Cluster* resource using [Components - Create Or Update](https://docs.microsoft.com/rest/api/application-insights/components/createorupdate) API
646637

@@ -654,7 +645,7 @@ You need to have 'write' permissions on both your component and *Cluster* resour
654645
> To verify that the ADX cluster is provisioned, execute *Cluster* resource Get REST API and check that the *provisioningState* value is *Succeeded*.
655646
656647
```rst
657-
GET https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2019-08-01-preview
648+
GET https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.OperationalInsights/clusters/<cluster-name>?api-version=2020-03-01-preview
658649
Authorization: Bearer <token>
659650
```
660651

@@ -689,7 +680,7 @@ Authorization: Bearer <token>
689680
```
690681

691682
> [!IMPORTANT]
692-
> Copy and keep the "principle-id" value since you will need it in next steps.
683+
> Copy and keep the response since you will need it in next steps.
693684
694685
**Associate a component**
695686

0 commit comments

Comments
 (0)