Skip to content

Commit 23161dc

Browse files
committed
fixing merge conflicts
2 parents 990c1bd + aca0e5d commit 23161dc

File tree

943 files changed

+26610
-36634
lines changed

Some content is hidden

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

943 files changed

+26610
-36634
lines changed

.openpublishing.redirection.api-management.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "articles/api-management/api-management-in-workspace.md",
5+
"redirect_url": "/azure/api-management/how-to-create-workspace",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "articles/api-management/set-graphql-resolver-policy.md",
510
"redirect_url": "/previous-versions/azure/api-management/set-graphql-resolver-policy",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/azure-functions/durable/durable-functions-configure-durable-functions-with-credentials.md",
5+
"redirect_url": "/azure/azure-functions/durable/durable-functions-configure-managed-identity",
6+
"redirect_document_id": false
7+
}
8+
]
9+
}

.openpublishing.redirection.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/storage/files/storage-files-migration-storsimple-1200.md",
5+
"redirect_url": "/previous-versions/azure/storage/files/storage-files-migration-storsimple-1200",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "articles/storage/files/storage-files-migration-storsimple-8000.md",
10+
"redirect_url": "/previous-versions/azure/storage/files/storage-files-migration-storsimple-8000",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path": "articles/storage/file-sync/file-sync-storsimple-cost-comparison.md",
15+
"redirect_url": "/previous-versions/azure/storage/file-sync/file-sync-storsimple-cost-comparison",
16+
"redirect_document_id": false
17+
},
318
{
419
"source_path_from_root": "/articles/advisor/advisor-alerts.md",
520
"redirect_url": "/azure/advisor/advisor-alerts-portal",

.openpublishing.redirection.sentinel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "articles/sentinel/cef-name-mapping.md",
5+
"redirect_url": "/azure/sentinel/cef-syslog-ama-overview",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "articles/sentinel/detect-threats-built-in.md#use-analytics-rule-templates",
510
"redirect_url": "/azure/sentinel/create-analytics-rule-from-template",

CODEOWNERS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Codeowners file
22
# Each line is a file pattern followed by one or more owners.
33

4-
# Specify owners for the aks folder
4+
# Folder paths in this list have been migrated to new repositories and content can no longer be created for these services in this repo.
55
/articles/aks @tynevi @thomps23
6+
/articles/defender-for-cloud @tynevi @thomps23
7+
/articles/attestation @tynevi @thomps23
8+
/articles/confidential-ledger @tynevi @thomps23
9+
/articles/dedicated-hsm @tynevi @thomps23
10+
/articles/key-vault @tynevi @thomps23
11+
/articles/payment-hsm @tynevi @thomps23
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
title: "Face Java client library quickstart"
3+
description: Use the Face client library for Java to detect faces and identify faces (facial recognition search).
4+
#services: cognitive-services
5+
author: PatrickFarley
6+
manager: nitinme
7+
ms.service: azure-ai-vision
8+
ms.subservice: azure-ai-face
9+
ms.custom:
10+
- ignite-2023
11+
ms.topic: include
12+
ms.date: 08/08/2024
13+
ms.author: pafarley
14+
---
15+
16+
Get started with facial recognition using the Face client library for Java. Follow these steps to install the package and try out the example code for basic tasks. 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.
17+
18+
[Reference documentation](https://aka.ms/azsdk-java-face-ref) | [Library source code](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/face/azure-ai-vision-face) | [Package (Maven)](https://central.sonatype.com/artifact/com.azure/azure-ai-vision-face) | [Samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/face/azure-ai-vision-face/src/samples)
19+
20+
## Prerequisites
21+
22+
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
23+
* The current version of the [Java Development Kit (JDK)](https://www.microsoft.com/openjdk)
24+
* [Apache Maven](https://maven.apache.org/download.cgi) installed. On Linux, install from the distribution repositories if available.
25+
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesFace" title="Create a Face resource" target="_blank">create a Face resource</a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
26+
* You'll need the key and endpoint from the resource you create to connect your application to the Face API.
27+
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
28+
29+
30+
## Create environment variables
31+
32+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
33+
34+
## Identify and verify faces
35+
36+
1. Install the client library
37+
38+
Open a console window and create a new folder for your quickstart application. Copy the following content to a new file. Save the file as `pom.xml` in your project directory:
39+
40+
<!-- [!INCLUDE][](https://raw.githubusercontent.com/Azure-Samples/cognitive-services-quickstart-code/master/java/Face/pom.xml)] -->
41+
```xml
42+
<project xmlns="http://maven.apache.org/POM/4.0.0"
43+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
45+
<modelVersion>4.0.0</modelVersion>
46+
<groupId>com.example</groupId>
47+
<artifactId>my-application-name</artifactId>
48+
<version>1.0.0</version>
49+
<dependencies>
50+
<!-- https://mvnrepository.com/artifact/com.azure/azure-ai-vision-face -->
51+
<dependency>
52+
<groupId>com.azure</groupId>
53+
<artifactId>azure-ai-vision-face</artifactId>
54+
<version>1.0.0-beta.1</version>
55+
</dependency>
56+
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
57+
<dependency>
58+
<groupId>org.apache.httpcomponents</groupId>
59+
<artifactId>httpclient</artifactId>
60+
<version>4.5.13</version>
61+
</dependency>
62+
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
63+
<dependency>
64+
<groupId>com.google.code.gson</groupId>
65+
<artifactId>gson</artifactId>
66+
<version>2.11.0</version>
67+
</dependency>
68+
</dependencies>
69+
</project>
70+
```
71+
72+
Install the SDK and dependencies by running the following in the project directory:
73+
74+
```console
75+
mvn clean dependency:copy-dependencies
76+
```
77+
78+
1. Create a new Java application
79+
80+
Create a file named `Quickstart.java`, open it in a text editor, and paste in the following code:
81+
82+
> [!NOTE]
83+
> If you haven't received access to the Face service using the [intake form](https://aka.ms/facerecognition), some of these functions won't work.
84+
85+
[!code-java[](~/cognitive-services-quickstart-code/java/Face/Quickstart.java?name=snippet_single)]
86+
87+
88+
1. Run your face recognition app from the application directory with the `javac` and `java` commands.
89+
90+
#### [Windows](#tab/windows)
91+
92+
```console
93+
javac -cp target\dependency\* Quickstart.java
94+
java -cp .;target\dependency\* Quickstart
95+
```
96+
97+
#### [Linux](#tab/linux)
98+
99+
```console
100+
javac -cp target/dependency/* Quickstart.java
101+
java -cp .:target/dependency/* Quickstart
102+
```
103+
104+
---
105+
106+
107+
108+
## Output
109+
110+
```console
111+
========IDENTIFY FACES========
112+
113+
Create a person group (3761e61a-16b2-4503-ad29-ed34c58ba676).
114+
Create a person group person 'Family1-Dad'.
115+
Check whether image is of sufficient quality for recognition
116+
Add face to the person group person(Family1-Dad) from image `Family1-Dad1.jpg`
117+
Check whether image is of sufficient quality for recognition
118+
Add face to the person group person(Family1-Dad) from image `Family1-Dad2.jpg`
119+
Create a person group person 'Family1-Mom'.
120+
Check whether image is of sufficient quality for recognition
121+
Add face to the person group person(Family1-Mom) from image `Family1-Mom1.jpg`
122+
Check whether image is of sufficient quality for recognition
123+
Add face to the person group person(Family1-Mom) from image `Family1-Mom2.jpg`
124+
Create a person group person 'Family1-Son'.
125+
Check whether image is of sufficient quality for recognition
126+
Add face to the person group person(Family1-Son) from image `Family1-Son1.jpg`
127+
Check whether image is of sufficient quality for recognition
128+
Add face to the person group person(Family1-Son) from image `Family1-Son2.jpg`
129+
130+
Train person group 3761e61a-16b2-4503-ad29-ed34c58ba676.
131+
Training status: succeeded.
132+
133+
Pausing for 60 seconds to avoid triggering rate limit on free account...
134+
4 face(s) with 4 having sufficient quality for recognition.
135+
Person 'Family1-Dad' is identified for the face in: identification1.jpg - d7995b34-1b72-47fe-82b6-e9877ed2578d, confidence: 0.96807.
136+
Verification result: is a match? true. confidence: 0.96807
137+
Person 'Family1-Mom' is identified for the face in: identification1.jpg - 844da0ed-4890-4bbf-a531-e638797f96fc, confidence: 0.96902.
138+
Verification result: is a match? true. confidence: 0.96902
139+
No person is identified for the face in: identification1.jpg - c543159a-57f3-4872-83ce-2d4a733d71c9.
140+
Person 'Family1-Son' is identified for the face in: identification1.jpg - 414fac6c-7381-4dba-9c8b-fd26d52e879b, confidence: 0.9281.
141+
Verification result: is a match? true. confidence: 0.9281
142+
143+
========DELETE PERSON GROUP========
144+
145+
Deleted the person group 3761e61a-16b2-4503-ad29-ed34c58ba676.
146+
147+
End of quickstart.
148+
```
149+
150+
151+
152+
## Clean up resources
153+
154+
If you want to clean up and remove an Azure AI services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
155+
156+
* [Azure portal](../../../multi-service-resource.md?pivots=azportal#clean-up-resources)
157+
* [Azure CLI](../../../multi-service-resource.md?pivots=azcli#clean-up-resources)
158+
159+
## Next steps
160+
161+
In this quickstart, you learned how to use the Face client library for Java to do basic face identification. Next, learn about the different face detection models and how to specify the right model for your use case.
162+
163+
> [!div class="nextstepaction"]
164+
> [Specify a face detection model version](../../how-to/specify-detection-model.md)
165+
166+
* [What is the Face service?](../../overview-identity.md)
167+
* More extensive sample code can be found on [GitHub](https://aka.ms/FaceSamples).

articles/ai-services/computer-vision/quickstarts-sdk/identity-client-library.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ keywords: face search by image, facial recognition search, facial recognition, f
3535

3636
::: zone-end
3737

38+
::: zone pivot="programming-language-java"
39+
40+
[!INCLUDE [Java quickstart](../includes/quickstarts-sdk/identity-java-sdk.md)]
41+
42+
::: zone-end
3843

3944
::: zone pivot="programming-language-javascript"
4045

articles/ai-services/content-safety/how-to/encrypt-data-at-rest.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ Azure AI Content Safety automatically encrypts your data when it's persisted to
2020

2121
Azure AI Content Safety is part of Azure AI services. Azure AI services data is encrypted and decrypted using [FIPS 140-2](https://en.wikipedia.org/wiki/FIPS_140-2) compliant [256-bit AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard) encryption. Encryption and decryption are transparent, meaning encryption and access are managed for you. Your data is secure by default and you don't need to modify your code or applications to take advantage of encryption.
2222

23-
2423
## About encryption key management
2524

2625
By default, your subscription uses Microsoft-managed encryption keys. There's also the option to manage your subscription with your own keys called customer-managed keys (CMK). CMK offers greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.
2726

28-
> [!IMPORTANT]
29-
> For blocklist names, only MMK encryption is applied by default. Using CMK or not will not change this behavior. All the other data will use either MMK or CMK depending on what you've selected.
30-
3127
## Customer-managed keys with Azure Key Vault
3228

3329
Customer-managed keys (CMK), also known as Bring your own key (BYOK), offer greater flexibility to create, rotate, disable, and revoke access controls. You can also audit the encryption keys used to protect your data.

articles/ai-services/content-safety/studio-quickstart.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ In this quickstart, get started with the Azure AI Content Safety service using C
2323

2424
* An active Azure account. If you don't have one, you can [create one for free](https://azure.microsoft.com/free/cognitive-services/).
2525
* A [Content Safety](https://aka.ms/acs-create) Azure resource.
26-
* Assign `Cognitive Services User` role to your account to ensure the studio experience. Go to [Azure portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then click **+ Add role assignment**, choose the `Cognitive Services User` role and select the member of your account that you need to assign this role to, then review and assign. It might take few minutes for the assignment to take effect.
26+
* Assign `Cognitive Services User` role to your account. Go to the [Azure Portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then select **+ Add role assignment**, choose the `Cognitive Services User` role and select the member of your account that you need to assign this role to, then review and assign. It might take few minutes for the assignment to take effect.
2727
* Sign in to [Content Safety Studio](https://contentsafety.cognitive.azure.com) with your Azure subscription and Content Safety resource.
2828

29+
> [!IMPORTANT]
30+
> * You must assign the `Cognitive Services User` role to your Azure account to use the studio experience. Go to the [Azure Portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then select **+ Add role assignment**, choose the `Cognitive Services User` role and select the member of your account that you need to assign this role to, then review and assign. It might take few minutes for the assignment to take effect.
31+
2932

3033
## Analyze text content
3134
The [Moderate text content](https://contentsafety.cognitive.azure.com/text) page provides capability for you to quickly try out text moderation.

0 commit comments

Comments
 (0)