Skip to content

Commit 53cfe74

Browse files
committed
Merge branch 'TSItoFabric' of github.com:cosh/azure-docs-pr-new; branch 'main' of github.com:MicrosoftDocs/azure-docs-pr into TSItoFabric
2 parents 1edbe06 + 39abc66 commit 53cfe74

File tree

1,393 files changed

+14715
-5243
lines changed

Some content is hidden

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

1,393 files changed

+14715
-5243
lines changed

articles/active-directory-b2c/oauth2-error-technical-profile.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: CelesteDG
99
ms.service: active-directory
1010

1111
ms.topic: reference
12-
ms.date: 01/11/2024
12+
ms.date: 05/07/2024
1313
ms.author: kengaderdus
1414
ms.subservice: B2C
1515

@@ -73,6 +73,43 @@ The following example shows a technical profile for `ReturnOAuth2Error`:
7373
</ClaimsProviders> -->
7474
```
7575

76+
## Define claims transformation to generate custom values of error code and error message
77+
78+
Use these steps to generate custom values of error code and error message:
79+
80+
1. Locate the `ClaimsTransformations` element, then add the following code inside it
81+
82+
```xml
83+
<!--
84+
<ClaimsTransformations> -->
85+
<ClaimsTransformation Id="GenerateErrorCode" TransformationMethod="CreateStringClaim">
86+
<InputParameters>
87+
<InputParameter Id="value" DataType="string" Value="Error_001" />
88+
</InputParameters>
89+
<OutputClaims>
90+
<OutputClaim ClaimTypeReferenceId="errorCode" TransformationClaimType="createdClaim" />
91+
</OutputClaims>
92+
</ClaimsTransformation>
93+
<ClaimsTransformation Id="GenerateErrorMessage" TransformationMethod="CreateStringClaim">
94+
<InputParameters>
95+
<InputParameter Id="value" DataType="string" Value="Insert error description." />
96+
</InputParameters>
97+
<OutputClaims>
98+
<OutputClaim ClaimTypeReferenceId="errorMessage" TransformationClaimType="createdClaim" />
99+
</OutputClaims>
100+
</ClaimsTransformation>
101+
<!--
102+
</ClaimsTransformations> -->
103+
```
104+
105+
1. Add the two claims transformations in the `OutputClaimsTransformations` element of any technical profile before Oauth2 technical that you define:
106+
107+
```xml
108+
<OutputClaimsTransformations>
109+
<OutputClaimsTransformation ReferenceId="generateErrorCode" />
110+
<OutputClaimsTransformation ReferenceId="generateErrorMessage" />
111+
</OutputClaimsTransformations>
112+
```
76113
## Input claims
77114

78115
The **InputClaims** element contains a list of claims required to return OAuth2 error.
@@ -123,6 +160,20 @@ In the following example:
123160
</UserJourney>
124161
```
125162

163+
Optionally, you can use preconditions to manipulate the Oauth2 error technical profile. For example, if there is no email claim, you can set to call Oauth2 error technical profile:
164+
165+
```xml
166+
<OrchestrationStep Order="3" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="ReturnOAuth2Error">
167+
<Preconditions>
168+
<Precondition Type="ClaimsExist" ExecuteActionsIf="false">
169+
<Value>email</Value>
170+
<Action>SkipThisOrchestrationStep</Action>
171+
</Precondition>
172+
</Preconditions>
173+
</OrchestrationStep>
174+
```
175+
176+
126177
## Next steps
127178

128179
Learn about [UserJourneys](userjourneys.md)

articles/ai-services/computer-vision/Tutorials/liveness.md

Lines changed: 592 additions & 74 deletions
Large diffs are not rendered by default.

articles/ai-services/computer-vision/how-to/find-similar-faces.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ The following code uses the above method to get face data from a series of image
4646
[!code-csharp[](~/cognitive-services-quickstart-code/dotnet/Face/FaceQuickstart.cs?name=snippet_loadfaces)]
4747

4848

49-
#### [JavaScript](#tab/javascript)
50-
51-
The following face detection method is optimized for comparison operations. It doesn't extract detailed face attributes, and it uses an optimized recognition model.
52-
53-
:::code language="js" source="~/cognitive-services-quickstart-code/javascript/Face/sdk_quickstart.js" id="recognize":::
54-
55-
The following code uses the above method to get face data from a series of images.
56-
57-
:::code language="js" source="~/cognitive-services-quickstart-code/javascript/Face/sdk_quickstart.js" id="snippet_loadfaces":::
58-
59-
6049
#### [REST API](#tab/rest)
6150

6251
Copy the following cURL command and insert your key and endpoint where appropriate. Then run the command to detect one of the target faces.
@@ -89,12 +78,6 @@ The following code prints the match details to the console:
8978

9079
[!code-csharp[](~/cognitive-services-quickstart-code/dotnet/Face/FaceQuickstart.cs?name=snippet_find_similar_print)]
9180

92-
#### [JavaScript](#tab/javascript)
93-
94-
The following method takes a set of target faces and a single source face. Then, it compares them and finds all the target faces that are similar to the source face. Finally, it prints the match details to the console.
95-
96-
:::code language="js" source="~/cognitive-services-quickstart-code/javascript/Face/sdk_quickstart.js" id="find_similar":::
97-
9881

9982
#### [REST API](#tab/rest)
10083

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
author: PatrickFarley
3+
ms.service: azure-ai-vision
4+
ms.topic: include
5+
ms.date: 08/07/2023
6+
ms.author: pafarley
7+
---
8+
9+
In this example, write your credentials to environment variables on the local machine that runs the application.
10+
11+
[!INCLUDE [find key and endpoint](./find-key.md)]
12+
13+
> [!TIP]
14+
> Don't include the key directly in your code, and never post it publicly. See the Azure AI services [security](../../security-features.md) article for more authentication options like [Azure Key Vault](../../use-key-vault.md).
15+
16+
To set the environment variable for your key and endpoint, open a console window and follow the instructions for your operating system and development environment.
17+
18+
1. To set the `VISION_KEY` environment variable, replace `your-key` with one of the keys for your resource.
19+
2. To set the `VISION_ENDPOINT` environment variable, replace `your-endpoint` with the endpoint for your resource.
20+
21+
#### [Windows](#tab/windows)
22+
23+
```console
24+
setx VISION_KEY your-key
25+
```
26+
27+
```console
28+
setx VISION_ENDPOINT your-endpoint
29+
```
30+
31+
After you add the environment variables, you may need to restart any running programs that will read the environment variables, including the console window.
32+
33+
#### [Linux](#tab/linux)
34+
35+
```bash
36+
export VISION_KEY=your-key
37+
```
38+
39+
```bash
40+
export VISION_ENDPOINT=your-endpoint
41+
```
42+
43+
After you add the environment variables, run `source ~/.bashrc` from your console window to make the changes effective.
44+
45+
---

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ Get started with facial recognition using the Face client library for .NET. The
2727
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2828

2929

30+
## Create environment variables
3031

31-
[!INCLUDE [create environment variables](../environment-variables.md)]
32+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3233

3334
## Identify and verify faces
3435

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.author: pafarley
1515

1616
Get started with facial recognition using the Face client library for JavaScript. 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.
1717

18-
[Reference documentation](/javascript/api/overview/azure/cognitiveservices-face-readme) | [Package (npm)](https://www.npmjs.com/package/@azure/cognitiveservices-face) | [Samples](/samples/browse/?products=azure&term=face&languages=javascript)
18+
[Reference documentation](https://aka.ms/azsdk-javascript-face-ref) | [Library source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest) | [Package (npm)](https://www.npmjs.com/package/@azure-rest/ai-vision-face) | [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/samples)
1919

2020
## Prerequisites
2121

@@ -27,8 +27,9 @@ Get started with facial recognition using the Face client library for JavaScript
2727
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2828

2929

30+
## Create environment variables
3031

31-
[!INCLUDE [create environment variables](../environment-variables.md)]
32+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3233

3334

3435
## Identify and verify faces
@@ -47,10 +48,10 @@ Get started with facial recognition using the Face client library for JavaScript
4748
npm init
4849
```
4950

50-
1. Install the `ms-rest-azure` and `azure-cognitiveservices-face` npm packages:
51+
1. Install the `@azure-rest/ai-vision-face` npm packages:
5152

5253
```console
53-
npm install @azure/cognitiveservices-face @azure/ms-rest-js uuid
54+
npm install @azure-rest/ai-vision-face
5455
```
5556

5657
Your app's `package.json` file is updated with the dependencies.
@@ -96,12 +97,18 @@ Add face to the person group person: (Family2-Lady) from image: Family2-Lady1.jp
9697
Done adding faces to person group.
9798

9899
Training person group: c08484e0-044b-4610-8b7e-c957584e5d2d.
99-
Waiting 10 seconds...
100100
Training status: succeeded.
101-
101+
No persons identified for face with ID 259dd648-be70-499c-9942-3512594e21eb
102102
Person: Family1-Mom is identified for face in: identification1.jpg with ID: b7f7f542-c338-4a40-ad52-e61772bc6e14. Confidence: 0.96921.
103103
Person: Family1-Son is identified for face in: identification1.jpg with ID: 600dc1b4-b2c4-4516-87de-edbbdd8d7632. Confidence: 0.92886.
104104
Person: Family1-Dad is identified for face in: identification1.jpg with ID: e83b494f-9ad2-473f-9d86-3de79c01e345. Confidence: 0.96725.
105+
Verification result between face bb7f7f542-c338-4a40-ad52-e61772bc6e14 and person de1d7dea-a393-4f69-9062-10cb66d4cf17: true with confidence: 0.96921
106+
Verification result between face 600dc1b4-b2c4-4516-87de-edbbdd8d7632 and person 05fd84e4-41b0-4716-b767-4376e33fa207: true with confidence: 0.92886
107+
Verification result between face e83b494f-9ad2-473f-9d86-3de79c01e345 and person c5124fe2-39dd-47ba-9163-1ed2998fdeb2: true with confidence: 0.96725
108+
109+
Deleting person group: c08484e0-044b-4610-8b7e-c957584e5d2d
110+
111+
Done.
105112
```
106113

107114

@@ -120,4 +127,4 @@ In this quickstart, you learned how to use the Face client library for JavaScrip
120127
> [Specify a face detection model version](../../how-to/specify-detection-model.md)
121128
122129
* [What is the Face service?](../../overview-identity.md)
123-
* More extensive sample code can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/javascript/Face/sdk_quickstart.js).
130+
* More extensive sample code can be found on [GitHub](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/samples).

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ Get started with facial recognition using the Face client library for Python. Fo
2828
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2929

3030

31+
## Create environment variables
3132

32-
[!INCLUDE [create environment variables](../environment-variables.md)]
33+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3334

3435
## Identify and verify faces
3536

41.8 KB
Loading
48.7 KB
Loading

articles/ai-services/document-intelligence/faq.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ sections:
207207
208208
- **Storage Account Contributor**: You need this role for the storage account to set up cross-origin resource sharing (CORS) settings. It's a one-time effort if you reuse the same storage account.
209209
210-
- **Contributor**: You need this role to create a resource group and resources.
211-
212-
Having Contributor or Storage Account Contributor role doesn't give you access to use your Document Intelligence resource or storage account if local (key-based) authentication is disabled. You still need the basic roles (Cognitive Services User and Storage Data Blob Contributor) to use the functions on Document Intelligence Studio.
210+
- **Contributor**: You need this role to create a resource group and resources. **Contributor** or **Storage Account Contributor** role doesn't give you access to use your Document Intelligence resource or storage account if local (key-based) authentication is disabled. You still need the basic roles (**Cognitive Services User** and **Storage Data Blob Contributor**) to use the functions on Document Intelligence Studio.
213211
214212
For more information, see [Microsoft Entra built-in roles](../../role-based-access-control/built-in-roles.md) and the sections about Azure role assignments in the [Document Intelligence Studio quickstart](quickstarts/try-document-intelligence-studio.md).
215213
@@ -256,6 +254,44 @@ sections:
256254
257255
- Re-create a custom project with the migrated Document Intelligence resource and specify the same storage account.
258256
257+
- question: |
258+
Why an I receiving the error "PermissionDenied" when using prebuilt apps or opening my custom project?
259+
answer: |
260+
If you received error "PermissionDenied: Principal does not have access to API/Operation" when analyzing against prebuilt models or opening a custom project, it is likely the local (key-based) authentication is disabled for your Document Intelligence resource and your do not have enough permission to access the resource. Please reference [Azure role assignments](quickstarts/try-document-intelligence-studio.md#azure-role-assignments) to configure your access roles.
261+
262+
- question: |
263+
Why an I receiving the error "AuthorizationPermissionMismatch" when opening my custom project?
264+
answer: |
265+
If you received error "AuthorizationPermissionMismatch: This request is not authorized to perform this operation using this permission" when opening a custom project, it is likely the local (key-based) authentication is disabled for your storage account and your do not have enough permission to access the blob data. Please reference [Azure role assignments](quickstarts/try-document-intelligence-studio.md#azure-role-assignments-1) to configure your access roles.
266+
267+
- question: |
268+
Why am I not able to sign in to Document Intelligence Studio and keeps seeing InteractionRequiredAuthError error (AADSTS50058)?
269+
answer: |
270+
If you received error "InteractionRequiredAuthError: login_required: AADSTS50058: A silent sign-request was sent but no user is signed in.", this is due to 3rd-party cookies are blocked by your browser so we cannot successfully sign in your account.
271+
272+
For **Edge** users, please:
273+
- Go to **Settings** for Edge
274+
- Search for "**third-party**"
275+
- Go to **Manage and delete cookies and site data**
276+
- Turn off the setting of **Block third-party cookies**
277+
278+
For **Chrome** users, please:
279+
- Go to **Settings** for Chrome
280+
- Search for "**Third-party**"
281+
- Under **Default behavior**, select **Allow third-party cookies**
282+
283+
For **Firefox** users, please:
284+
- Go to **Settings** for Firefox
285+
- Search for "**cookies**"
286+
- Under **Enhanced Tracking Protection**, select **Manage Exceptions**
287+
- Add exception for **https://documentintelligence.ai.azure.com** or the Document Intelligence Studio URL of your environment
288+
289+
For **Safari** users, please:
290+
- Choose **Safari** > **Preferences**
291+
- Click **Privacy**
292+
- Deselect **Block all cookies**
293+
294+
259295
- question: |
260296
Are there separate URL endpoints for Document Intelligence sovereign cloud regions?
261297
answer: |

0 commit comments

Comments
 (0)