Skip to content

Commit 71c51d3

Browse files
authored
Merge pull request #276946 from MicrosoftDocs/main
Publish to live, Sunday 4 AM PST, 6/2
2 parents 2d2202a + 066a27b commit 71c51d3

File tree

207 files changed

+3082
-1380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+3082
-1380
lines changed

.openpublishing.redirection.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
{
22
"redirections": [
33
{
4+
"source_path": "articles/application-gateway/scripts/create-vmss-waf-cli.md",
5+
"redirect_url": "/previous-versions/azure/application-gateway/scripts/create-vmss-waf-cli",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "articles/application-gateway/scripts/create-vmss-waf-powershell.md",
10+
"redirect_url": "/previous-versions/azure/application-gateway/scripts/create-vmss-waf-powershell",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path": "articles/traffic-manager/powershell-samples.md",
15+
"redirect_url": "/previous-versions/azure/traffic-manager/powershell-samples",
16+
"redirect_document_id": false
17+
},
18+
{
19+
"source_path": "articles/traffic-manager/scripts/traffic-manager-cli-websites-high-availability.md",
20+
"redirect_url": "/previous-versions/azure/traffic-manager/scripts/traffic-manager-cli-websites-high-availability",
21+
"redirect_document_id": false
22+
},
23+
{
424
"source_path": "articles/network-watcher/network-watcher-security-group-view-powershell.md",
525
"redirect_url": "/previous-versions/azure/network-watcher/network-watcher-security-group-view-powershell",
626
"redirect_document_id": false
@@ -34,7 +54,7 @@
3454
"source_path": "articles/germany/index.yml",
3555
"redirect_url": "/previous-versions/azure/germany/index",
3656
"redirect_document_id": false
37-
},
57+
},
3858
{
3959
"source_path_from_root": "/articles/internet-analyzer/internet-analyzer-cli.md",
4060
"redirect_url": "/previous-versions/azure/internet-analyzer/internet-analyzer-cli",

.openpublishing.redirection.sentinel.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "articles/sentinel/detect-threats-built-in.md#use-analytics-rule-templates",
5+
"redirect_url": "/azure/sentinel/create-analytics-rule-from-template",
6+
"redirect_document_id": true
7+
},
8+
{
9+
"source_path": "articles/sentinel/detect-threats-built-in.md",
10+
"redirect_url": "/azure/sentinel/threat-detection",
11+
"redirect_document_id": true
12+
},
13+
{
14+
"source_path": "articles/sentinel/detect-threats-custom.md",
15+
"redirect_url": "/azure/sentinel/create-analytics-rules",
16+
"redirect_document_id": true
17+
},
318
{
419
"source_path": "articles/sentinel/automate-responses-with-playbooks.md#azure-logic-apps-basic-concepts",
520
"redirect_url": "/azure/sentinel/playbooks/logic-apps-playbooks",

articles/ai-services/computer-vision/how-to/call-analyze-image-40.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: PatrickFarley
88
ms.author: pafarley
99
ms.service: azure-ai-vision
1010
ms.topic: how-to
11-
ms.date: 08/01/2023
11+
ms.date: 06/01/2024
1212
ms.custom: references_regions, devx-track-python, devx-track-extended-java, devx-track-js
1313
zone_pivot_groups: programming-languages-computer-vision
1414
---
@@ -55,6 +55,5 @@ This article demonstrates how to call the Image Analysis 4.0 API to return infor
5555
- [C#](https://aka.ms/azsdk/image-analysis/samples/csharp)
5656
- [Python](https://aka.ms/azsdk/image-analysis/samples/python)
5757
- [Java](https://aka.ms/azsdk/image-analysis/samples/java)
58-
- [JavaScript](https://aka.ms/azsdk/image-analysis/samples/js)
59-
58+
- [JavaScript](https://aka.ms/azsdk/image-analysis/samples/js)
6059
* See the [REST API reference](https://aka.ms/vision-4-0-ref) to learn more about the API functionality.

articles/ai-services/computer-vision/how-to/shelf-modify-images.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ author: PatrickFarley
66
manager: nitinme
77
ms.service: azure-ai-vision
88
ms.topic: how-to
9-
ms.date: 07/10/2023
10-
ms.author: ginle
9+
ms.date: 06/01/2024
10+
ms.author: pafarley
1111
ms.custom: references_regions, build-2023
1212
---
1313

14-
# Shelf Image Composition (preview)
14+
# Shelf image composition (preview)
1515

1616
Part of the Product Recognition workflow involves fixing and modifying the input images so the service can perform correctly.
1717

@@ -59,7 +59,7 @@ To run the image stitching operation on a set of images, follow these steps:
5959
1. Open a command prompt window.
6060
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
6161
62-
## Examine the stitching response
62+
### Examine the stitching response
6363
6464
The API returns a `200` response, and the new file is downloaded to the location you specified.
6565
@@ -108,15 +108,12 @@ To correct the perspective distortion in the composite image, follow these steps
108108

109109
:::image type="content" source="../media/shelf/rectify.png" alt-text="Photo of a shelf with its four corners outlined.":::
110110

111-
> [!NOTE]
112-
> The brands shown in the images are not affiliated with Microsoft and do not indicate any form of endorsement of Microsoft or Microsoft products by the brand owners, or an endorsement of the brand owners or their products by Microsoft.
113-
114111
1. Replace `<your_filename>` with the name and extension of the file where you'd like to get the result (for example, `download.jpg`).
115112
1. Open a command prompt window.
116113
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
117114
118115
119-
## Examine the rectification response
116+
### Examine the rectification response
120117
121118
The API returns a `200` response, and the new file is downloaded to the location you specified.
122119

articles/ai-services/computer-vision/includes/environment-variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ To set the environment variable for your key and endpoint, open a console window
2323
#### [Windows](#tab/windows)
2424

2525
```console
26-
setx VISION_KEY your-key
26+
setx VISION_KEY <your_key>
2727
```
2828

2929
```console
30-
setx VISION_ENDPOINT your-endpoint
30+
setx VISION_ENDPOINT <your_endpoint>
3131
```
3232

3333
After you add the environment variables, you may need to restart any running programs that will read the environment variables, including the console window.
3434

3535
#### [Linux](#tab/linux)
3636

3737
```bash
38-
export VISION_KEY=your-key
38+
export VISION_KEY=<your_key>
3939
```
4040

4141
```bash
42-
export VISION_ENDPOINT=your-endpoint
42+
export VISION_ENDPOINT=<your_endpoint>
4343
```
4444

4545
After you add the environment variables, run `source ~/.bashrc` from your console window to make the changes effective.

articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-js.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ Alternatively, you can pass in the image as a data array. For example, read from
4545

4646
## Select visual features
4747

48-
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the available visual features, but for practical usage you likely need fewer.
48+
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [Overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the available visual features, but for practical usage you likely need fewer.
49+
50+
> [!IMPORTANT]
51+
> The visual features [Captions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-caption) and [DenseCaptions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-dense-captions) are only supported in the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US.
4952
5053
[!code-javascript[](~/cognitive-services-quickstart-code/javascript/ComputerVision/4-0/how-to.js?name=snippet_features)]
5154

articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-python.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ ms.author: pafarley
1010

1111
## Prerequisites
1212

13-
This guide assumes you have followed the steps mentioned in the [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40). This means:
13+
This guide assumes you've followed the steps of the [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40). This means:
1414

15-
* You have <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision" title="created a Computer Vision resource" target="_blank">created a Computer Vision resource </a> and obtained a key and endpoint URL.
16-
* You have the appropriate SDK package installed and you have a running [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40) application. You can modify this quickstart application based on the code examples here.
15+
* You've <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision" title="Created a Computer Vision resource" target="_blank">created a Computer Vision resource </a> and obtained a key and endpoint URL.
16+
* You've installed the appropriate SDK package and have a working [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40) application. You can modify this quickstart application based on the code examples here.
1717

1818
## Create and authenticate the client
1919

@@ -27,7 +27,7 @@ To authenticate against the Image Analysis service, you need a Computer Vision k
2727

2828
Start by creating an [ImageAnalysisClient](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient) object using one of the constructors. For example:
2929

30-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_client)]
30+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_client)]
3131

3232

3333
## Select the image to analyze
@@ -38,20 +38,23 @@ You can select an image by providing a publicly accessible image URL, or by read
3838

3939
You can use the following sample image URL.
4040

41-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_url)]
41+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_url)]
4242

4343

4444
### Image buffer
4545

4646
Alternatively, you can pass in the image as [bytes](https://docs.python.org/3/library/stdtypes.html#bytes-objects) object. For example, read from a local image file you want to analyze.
4747

48-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_file)]
48+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_file)]
4949

5050
## Select visual features
5151

5252
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the [available visual features](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.models.visualfeatures), but for practical usage you likely need fewer.
5353

54-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_features)]
54+
> [!IMPORTANT]
55+
> The visual features [Captions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-caption) and [DenseCaptions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-dense-captions) are only supported in the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US.
56+
57+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_features)]
5558

5659
<!--
5760
### Set model name when using a custom model
@@ -65,9 +68,9 @@ To use a custom model, create the [ImageAnalysisOptions](/python/api/azure-ai-vi
6568

6669
## Call the analyze_from_url method with options
6770

68-
The following code calls the [analyze_from_url](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyzefromurl) method on the client with the features you selected above and additional options, defined below. To analyze from an image buffer instead of URL, call the method [analyze](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyze) instead, with `image_data=image_data` as the first argument.
71+
The following code calls the [analyze_from_url](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyzefromurl) method on the client with the features you selected above and other options, defined below. To analyze from an image buffer instead of URL, call the method [analyze](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyze) instead, with `image_data=image_data` as the first argument.
6972

70-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_call)]
73+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_call)]
7174

7275
### Select smart cropping aspect ratios
7376

@@ -87,7 +90,7 @@ You can specify the language of the returned data. The language is optional, wit
8790

8891
The following code shows you how to parse the results from the **analyze_from_url** or **analyze** operations.
8992

90-
[!code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_result)]
93+
[!Code-python[](~/cognitive-services-quickstart-code/python/ComputerVision/4-0/how-to.py?name=snippet_result)]
9194

9295

9396
<!--
@@ -124,7 +127,7 @@ Reason: PermissionDenied
124127
Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
125128
```
126129

127-
Or when you provide an image URL that does not exist or not accessible:
130+
Or when you provide an image URL that doesn't exist or is not accessible:
128131
```
129132
Status code: 400
130133
Reason: Bad Request
@@ -161,7 +164,7 @@ handler.setFormatter(formatter)
161164

162165
<!-- END SNIPPET -->
163166

164-
By default logs redact the values of URL query strings, the values of some HTTP request and response headers (including `Ocp-Apim-Subscription-Key` which holds the key), and the request and response payloads. To create logs without redaction, set the method argument `logging_enable = True` when you create `ImageAnalysisClient`, or when you call `analyze` on the client.
167+
By default logs redact the values of URL query strings, the values of some HTTP request and response headers (including `Ocp-Apim-Subscription-Key`, which holds the key), and the request and response payloads. To create logs without redaction, set the method argument `logging_enable = True` when you create `ImageAnalysisClient`, or when you call `analyze` on the client.
165168

166169
<!-- SNIPPET:sample_analyze_all_image_file.create_client_with_logging -->
167170

articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-rest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ Authentication is done by adding the HTTP request header **Ocp-Apim-Subscription
3232

3333
The code in this guide uses remote images referenced by URL. You may want to try different images on your own to see the full capability of the Image Analysis features.
3434

35-
35+
### Image URL
3636
When analyzing a remote image, you specify the image's URL by formatting the request body like this: `{"url":"https://learn.microsoft.com/azure/cognitive-services/computer-vision/images/windows-kitchen.jpg"}`. The **Content-Type** should be `application/json`.
3737

38+
### Image file
3839
To analyze a local image, you'd put the binary image data in the HTTP request body. The **Content-Type** should be `application/octet-stream` or `multipart/form-data`.
3940

4041

articles/ai-services/computer-vision/includes/identity-curl-quickstart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Get started with facial recognition using the Face REST API. The Face service pr
2424
* You'll need the key and endpoint from the resource you create to connect your application to the Face API. You'll paste your key and endpoint into the code below later in the quickstart.
2525
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2626
* [PowerShell version 6.0+](/powershell/scripting/install/installing-powershell-core-on-windows), or a similar command-line application.
27+
* [cURL](https://curl.haxx.se/) installed.
28+
2729

2830

2931

articles/ai-services/computer-vision/includes/quickstarts-sdk/identity-csharp-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.date: 05/03/2022
1313
ms.author: pafarley
1414
---
1515

16-
Get started with facial recognition using the Face client library for .NET. The Face service provides you with access to advanced algorithms for detecting and recognizing human faces in images. Follow these steps to install the package and try out the example code for basic face identification using remote images.
16+
Get started with facial recognition using the Face client library for .NET. The Azure AI Face service provides you with access to advanced algorithms for detecting and recognizing human faces in images. Follow these steps to install the package and try out the example code for basic face identification using remote images.
1717

1818
[Reference documentation](/dotnet/api/overview/azure/cognitiveservices/face-readme) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cognitiveservices/Vision.Face) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Vision.Face/2.7.0-preview.3) | [Samples](/samples/browse/?products=azure&term=face)
1919

0 commit comments

Comments
 (0)