Skip to content

Commit 056ebbe

Browse files
authored
Merge pull request #277632 from MicrosoftDocs/main
6/7/2024 PM Publish
2 parents ab61d58 + 0c94463 commit 056ebbe

File tree

240 files changed

+5935
-1177
lines changed

Some content is hidden

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

240 files changed

+5935
-1177
lines changed

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

Lines changed: 592 additions & 74 deletions
Large diffs are not rendered by default.
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: 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 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

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: |

articles/ai-services/document-intelligence/managed-identities-secured-access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ That's it! You can now configure secure access for your Document Intelligence re
285285

286286
:::image type="content" source="media/managed-identities/access-denied.png" alt-text="Screenshot of an access denied error.":::
287287

288-
**Resolution**: Check to make sure there's connectivity between the computer accessing the Document Intelligence Studio and the Document Intelligence service. For example, you might need to allow the client IP address in **Networking > Firewalls and virtual networks** setting page of both Document Intelligence resource and storage account.
288+
**Resolution**: Make sure the client computer can access Document Intelligence resource and storage account, either they are in the same `VNET`, or client IP address is allowed in **Networking > Firewalls and virtual networks** setting page of both Document Intelligence resource and storage account.
289289

290290
## Next steps
291291

articles/ai-services/document-intelligence/quickstarts/try-document-intelligence-studio.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ For custom projects, the following role assignments are required for different s
104104
* **Storage Account Contributor**: You need this role for the Storage Account to set up CORS settings (this action is a one-time effort if the same storage account is reused).
105105
* **Contributor**: You need this role to create a resource group and resources.
106106

107+
> [!NOTE]
108+
> If local (key-based) authentication is disabled for your Document Intelligence service resource and storage account, be sure to obtain **Cognitive Services User** and **Storage Blob Data Contributor** roles respectively, so you have enough permissions to use Document Intelligence Studio. The **Storage Account Contributor** and **Contributor** roles only allow you to list keys but does not give you permission to use the resources when key-access is disabled.
109+
107110
### Configure CORS
108111

109112
[CORS (Cross Origin Resource Sharing)](/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) needs to be configured on your Azure storage account for it to be accessible from the Document Intelligence Studio. To configure CORS in the Azure portal, you need access to the CORS tab of your storage account.

0 commit comments

Comments
 (0)