Skip to content

Commit 0a0f75c

Browse files
committed
Merge branch 'main' into release-agents-foundry
2 parents faa9a1e + f826899 commit 0a0f75c

File tree

8 files changed

+38
-9
lines changed

8 files changed

+38
-9
lines changed

articles/ai-foundry/model-inference/includes/configure-entra-id/bicep.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ Once you configured Microsoft Entra ID in your resource, you need to update your
100100
101101
[!INCLUDE [about-credentials](about-credentials.md)]
102102
103+
## Troubleshooting
104+
105+
[!INCLUDE [troubleshooting](troubleshooting.md)]
106+
103107
## Disable key-based authentication in the resource
104108
105109
Disabling key-based authentication is advisable when you implemented Microsoft Entra ID and fully addressed compatibility or fallback concerns in all the applications that consume the service. You can achieve it by changing the property `disableLocalAuth`:

articles/ai-foundry/model-inference/includes/configure-entra-id/cli.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,8 @@ Once Microsoft Entra ID is configured in your resource, you need to update your
8989
9090
[!INCLUDE [code](../code-create-chat-client-entra.md)]
9191
92-
[!INCLUDE [about-credentials](about-credentials.md)]
92+
[!INCLUDE [about-credentials](about-credentials.md)]
93+
94+
## Troubleshooting
95+
96+
[!INCLUDE [troubleshooting](troubleshooting.md)]

articles/ai-foundry/model-inference/includes/configure-entra-id/portal.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Follow these steps to configure Microsoft Entra ID for inference:
4848
4949
Notice that key-based access is still possible for users that already have keys available to them. If you want to revoke the keys, in the Azure portal, on the left navigation, select **Resource Management** > **Keys and Endpoints** > **Regenerate Key1** and **Regenerate Key2**.
5050

51-
5251
## Use Microsoft Entra ID in your code
5352

5453
Once you configured Microsoft Entra ID in your resource, you need to update your code to use it when consuming the inference endpoint. The following example shows how to use a chat completions model:
@@ -57,6 +56,10 @@ Once you configured Microsoft Entra ID in your resource, you need to update your
5756

5857
[!INCLUDE [about-credentials](about-credentials.md)]
5958

59+
## Troubleshooting
60+
61+
[!INCLUDE [troubleshooting](troubleshooting.md)]
62+
6063
## Use Microsoft Entra ID in your project
6164

6265
Even when your resource has Microsoft Entra ID configured, your projects may still be using keys to consume predictions from the resource. When using the Azure AI Foundry playground, the credentials associated with the connection your project has are used.
@@ -79,7 +82,6 @@ To change this behavior, you have to update the connections from your projects t
7982

8083
7. Your connection is configured to work with Microsoft Entra ID now.
8184

82-
8385
## Disable key-based authentication in the resource
8486

8587
Disabling key-based authentication is advisable when you implemented Microsoft Entra ID and fully addressed compatibility or fallback concerns in all the applications that consume the service.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
manager: nitinme
3+
author: santiagxf
4+
ms.author: fasantia
5+
ms.service: azure-ai-model-inference
6+
ms.date: 01/23/2025
7+
ms.topic: include
8+
---
9+
10+
The following table contains multiple scenarios that can help troubleshooting Microsoft Entra ID:
11+
12+
| Error / Scenario | Root cause | Solution |
13+
| -------------------- | ------------- | -------- |
14+
| You're using an SDK. | Known issues. | Before making further troubleshooting, it's advisable to install the latest version of the software you are using to connect to the service. Authentication bugs may have been fixed in a newer version of the software you're using. |
15+
| `401 Principal does not have access to API/Operation` | The request indicates authentication in the correct way, however, the user principal doesn't have the required permissions to use the inference endpoint. | Ensure you have: <br /> 1. Assigned the role **Cognitive Services User** to your principal to the Azure AI Services resource. <br /> 2. Wait at least 5 minutes before making the first call. |
16+
| `401 HTTP/1.1 401 PermissionDenied` | The request indicates authentication in the correct way, however, the user principal doesn't have the required permissions to use the inference endpoint. | Assigned the role **Cognitive Services User** to your principal in the Azure AI Services resource. Roles like **Administrator** or **Contributor** don't grand inference access. Wait at least 5 minutes before making the first call. |
17+
| You're using REST API calls and you get `401 Unauthorized. Access token is missing, invalid, audience is incorrect, or have expired.` | The request is failing to perform authentication with Entra ID. | Ensure the `Authentication` header contains a valid token with a scope `https://cognitiveservices.azure.com/.default`. |
18+
| You're using `AzureOpenAI` class and you get `401 Unauthorized. Access token is missing, invalid, audience is incorrect, or have expired.` | The request is failing to perform authentication with Entra ID. | Ensure that you are using an **OpenAI model** connected to the endpoint `https://<resource>.openai.azure.com`. You can't use `OpenAI` class or a Models-as-a-Service model. If your model is not from OpenAI, use the Azure AI Inference SDK. |
19+
| You're using the Azure AI Inference SDK and you get `401 Unauthorized. Access token is missing, invalid, audience is incorrect, or have expired.` | The request is failing to perform authentication with Entra ID. | Ensure you're connected to the endpoint `https://<resource>.services.ai.azure.com/model` and that you indicated the right scope for Entra ID (`https://cognitiveservices.azure.com/.default`). |
20+
| `404 Not found` | The endpoint URL is incorrect based on the SDK you are using, or the model deployment doesn't exist. | Ensure you are using the right SDK connected to the right endpoint: <br /> 1. If you are using the Azure AI inference SDK, ensure the endpoint is `https://<resource>.services.ai.azure.com/model` with `model="<model-deployment-name>"` in the payloads, or endpoint is `https://<resource>.openai.azure.com/deployments/<model-deployment-name>`. <br /> If you are using the `AzureOpenAI` class, ensure the endpoint is `https://<resource>.openai.azure.com`. |

articles/ai-services/openai/azure-government.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ recommendations: false
1212

1313
# Azure OpenAI Service and features in Azure Government
1414

15-
This article highlights the differences when using Azure OpenAI in Azure Government as compared to the commercial cloud offering. If not specified, the Azure OpenAI model or feature should be assumed to be not available in the Azure Government environment. Learn more about the Azure OpenAI Service itself in [Azure OpenAI Service documentation](/azure/ai-services/openai/).
15+
This article highlights the differences when using Azure OpenAI in Azure Government as compared to the commercial cloud offering. Learn more about the Azure OpenAI Service itself in [Azure OpenAI Service documentation](/azure/ai-services/openai/).
1616
<br><br>
1717

1818
## Azure OpenAI models
1919

2020
Learn more about the different capabilities of each model in [Azure OpenAI Service models](./concepts/models.md). For customers with [Business Continuity and Disaster Recovery (BCDR) considerations](./how-to/business-continuity-disaster-recovery.md), take careful note of the deployment types, regions, and model availability as not all model/type combinations are available in both regions.
2121

22-
The following sections show model availability by region and deployment type. Models and versions not listed are not currently available in Azure Government.
22+
The following sections show model availability by region and deployment type. Models and versions not listed are not currently available in Azure Government. For general limits, quotas, and other details refer to [Azure OpenAI Service quotas and limits](/azure/ai-services/openai/quotas-limits/).
2323

2424
<br>
2525

articles/ai-studio/how-to/configure-private-link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ If your storage account is private (uses a private endpoint to communicate with
272272
| `Storage Blob Data Contributor` | Azure AI Search | Storage Account | Read blob and write knowledge store | [Search doc](/azure/search/search-howto-managed-identities-data-sources). |
273273

274274
> [!TIP]
275-
> Your storage account may have multiple private endpoints. You need to assign the `Reader` role to each private endpoint.
275+
> Your storage account may have multiple private endpoints. You need to assign the `Reader` role to each private endpoint for your Azure AI Foundry project managed identity.
276276
277277
1. Assign the `Storage Blob Data reader` role to your developers. This role allows them to read data from the storage account.
278278

articles/machine-learning/concept-train-model-git-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ When you submit an Azure Machine Learning training job that has source files fro
3030

3131
Azure Machine Learning provides a shared file system for all users in a workspace. The best way to clone a Git repository into this file share is to create a compute instance and [open a terminal](./how-to-access-terminal.md). In the terminal, you have access to a full Git client and can clone and work with Git by using the Git CLI. For more information, see [Git CLI](https://git-scm.com/docs/gitcli).
3232

33-
You can clone any Git repository you can authenticate to, such as a GitHub, Azure Repos, or BitBucket repo. It's best to clone the repository into your user directory, so that other users don't collide directly on your working branch.
33+
You can clone any Git repository you can authenticate to, such as a GitHub, Azure Repos, or Bitbucket repo. It's best to clone the repository into your user directory, so that other users don't collide directly on your working branch.
3434

3535
There are some differences between cloning to the local file system of the compute instance or cloning to the shared file system, mounted as the *~/cloudfiles/code/* directory. In general, cloning to the local file system provides better performance than cloning to the mounted file system. However, if you delete and recreate the compute instance, the local file system is lost, while the mounted shared file system is kept.
3636

@@ -87,7 +87,7 @@ Add the SSH key to your Git account by using the following instructions, dependi
8787
- [GitHub](https://docs.github.com/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account#adding-a-new-ssh-key-to-your-account)
8888
- [GitLab](https://docs.gitlab.com/ee/user/ssh.html#add-an-ssh-key-to-your-gitlab-account)
8989
- [Azure DevOps](/azure/devops/repos/git/use-ssh-keys-to-authenticate#step-2-add-the-public-key-to-azure-devops)
90-
- [BitBucket](https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/)
90+
- [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/)
9191

9292
### Clone the Git repository with SSH
9393

articles/search/search-sku-tier.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Currently, several regions are capacity-constrained for specific tiers and can't
6262
| France Central | Basic, S1| Sweden Central, Switzerland North|
6363
| North Europe | All tiers | Sweden Central, Switzerland North|
6464
| West Europe | All tiers | Sweden Central, Switzerland North|
65-
| US Gov Virginia | All tiers | US Gov Arizona |
6665

6766
## Feature availability by tier
6867

0 commit comments

Comments
 (0)