> ## Documentation Index
> Fetch the complete documentation index at: https://hobbyist-e43fa225.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How to troubleshoot your deployments and monitors in Microsoft Foundry portal (classic)

> Learn how to troubleshoot and monitor model deployments in Microsoft Foundry portal to quickly resolve errors and optimize performance. (classic)

**Applies only to:** <img src="https://mintcdn.com/hobbyist-e43fa225/irqB4qz-UwcRETil/images/yes-icon.svg?fit=max&auto=format&n=irqB4qz-UwcRETil&q=85&s=fc11d20d284fa4fc8529a352d007d262" width="27" height="16" data-path="images/yes-icon.svg" /> **Foundry (classic) portal**. This article isn't available for the new Foundry portal. [Learn more about the new portal](https://learn.microsoft.com/en-us/azure/foundry/what-is-foundry).

<Note>
  Links in this article might open content in the new Microsoft Foundry documentation instead of the Foundry (classic) documentation you're viewing now.
</Note>

<Info>
  Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
</Info>

This article provides instructions on how to troubleshoot your deployments and monitors in Microsoft Foundry portal.

## Deployment issues

For general deployment error code reference, see [Troubleshooting online endpoints deployment and scoring](https://learn.microsoft.com/azure/machine-learning/how-to-troubleshoot-online-endpoints) in the Azure Machine Learning documentation. Much of the information there also applies to Foundry deployments.

### Error: Use of Azure OpenAI models in Azure Machine Learning requires Azure OpenAI in Foundry Models resources

The full error message states: "Use of Azure OpenAI models in Azure Machine Learning requires Azure OpenAI in Foundry Models resources. This subscription or region doesn't have access to this model."

This error means that you might not have access to the particular Azure OpenAI model. For example, your subscription might not have access to the latest GPT model yet or this model isn't offered in the region you want to deploy to. You can learn more about it on [Azure OpenAI in Foundry Models](https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-models/concepts/models-sold-directly-by-azure).

### Error: Out of quota

For more information about managing quota, see:

* [Quota for deploying and inferencing a model](../foundry-models/how-to/deploy-foundry-models)
* [Manage Azure OpenAI in Foundry Models quota documentation](https://learn.microsoft.com/azure/ai-foundry/openai/how-to/quota)
* [Manage and increase quotas for resources with Foundry](quota)

### Error: `ToolLoadError`

After you deploy a prompt flow, you might get the error message: "Tool load failed in 'search\_question\_from\_indexed\_docs': (ToolLoadError) Failed to load package tool 'Vector Index Lookup': (HttpResponseError) (AuthorizationFailed)."

To fix this error, manually assign the **Azure ML Data Scientist** role to your endpoint by following these steps. It might take several minutes for the new role to take effect.

<Info>
  This article provides legacy support for hub-based projects. It will not work for **Foundry projects**. See [How do I know which type of project I have?](../what-is-foundry#how-do-i-know-which-type-of-project-i-have)

  **SDK compatibility note**: Code examples require a specific Microsoft Foundry SDK version. If you encounter compatibility issues, consider [migrating from a hub-based to a Foundry project](../how-to/migrate-project).
</Info>

1. Go to your project in [Foundry](https://ai.azure.com/?cid=learnDocs) and select **Management center** from the left pane to open the settings page.
2. Under the **Project** heading, select **Overview**.
3. Under **Project properties**, select the link to your resource group to open it in the Azure portal.
4. Select **Access control (IAM)** from the left pane in the Azure portal.
5. Select **Add role assignment**.
6. Select the **Azure ML Data Scientist** role. You might have to search for it in the search box.
7. Select **Next** to go to the **Members** page.
8. For **Assign access to**, select **Managed Identity**.
9. For **Members**, select **+ Select members**. This action opens up the right pane where you can select managed identities.
   1. Select **Machine learning online endpoint** in the Managed identity dropdown field.
   2. Select your endpoint's name.
   3. Select **Select** to choose the endpoint and close the right pane.
10. Select **Review + assign**. Then select **Review + assign** again to confirm the role assignment.
11. Return to your project in Foundry portal and select **Models + endpoints** from the left pane.
12. On the **Model deployments** page, select your deployment.
13. Test the prompt flow deployment.

### Error: Deployment failure

The full error message is as follows:

"ResourceNotFound: Deployment failed due to timeout while waiting for Environment Image to become available. Check Environment Build Log in ML Studio Workspace or Workspace storage for potential failures. Image build summary: \[N/A]. Environment info: Name: CliV2AnonymousEnvironment, Version: 'Ver', you might be able to find the build log under the storage account 'NAME' in the container 'CONTAINER\_NAME' at the Path 'PATH/PATH/image\_build\_aggregate\_log.txt'."

You might come across an `ImageBuildFailure` error. This error happens when the environment (docker image) is being built. For more information about the error, you can check the build log for your `<CONTAINER NAME>` environment.

This error message refers to a situation where the deployment build failed. You want to read the build log to troubleshoot further. There are two ways to access the build log.

**Option 1: Find the build log for the Azure default blob storage.**

<Info>
  This article provides legacy support for hub-based projects. It will not work for **Foundry projects**. See [How do I know which type of project I have?](../what-is-foundry#how-do-i-know-which-type-of-project-i-have)

  **SDK compatibility note**: Code examples require a specific Microsoft Foundry SDK version. If you encounter compatibility issues, consider [migrating from a hub-based to a Foundry project](../how-to/migrate-project).
</Info>

1. Go to your project in [Foundry](https://ai.azure.com/?cid=learnDocs) and select **Management center** from the left pane to open the overview page of your hub.
2. In the section for **Connected resources**, select the link to your storage account name. This name should be the name of the storage account listed in the error message you received.
3. On the details page of the storage account, select **View in Azure portal** to open up the storage account page in the [Azure portal](https://portal.azure.com).
4. Alternatively, go to the Azure portal, and from the home page, select **Storage accounts** from the list of Azure services.
5. Select your storage account from the list. You might want to search for it in the search box to find it quickly.
6. On the storage account page, select **Data Storage** > **Containers** from the left pane.
7. Select the container name that's listed in the error message you received.
8. Select through folders to find the build logs.

**Option 2: Find the build log within Azure Machine Learning studio.**

<Note>
  This option to access the build log uses [Azure Machine Learning studio](https://ml.azure.com), which is a different portal than [Foundry](https://ai.azure.com/?cid=learnDocs).
</Note>

1. Go to [Azure Machine Learning studio](https://ml.azure.com).
2. Go to your workspace or hub.
3. Select **Endpoints** from the left pane.
4. Select your endpoint name. It might be identical to your deployment name.
5. Select the link to **Environment** from the deployment section.
6. Select **Build log** at the top of the environment details page.

### Error: `UserErrorFromQuotaService`

The full error message is: "UserErrorFromQuotaService: Simultaneous count exceeded for subscription."

This error message means that the shared quota pool reached the maximum number of requests it can handle. Try again later when the shared quota is freed up for use.

### Question: I deployed a web app but I don't see a way to launch it or find it

We're working on improving the user experience of web app deployment. In the meantime, here's a tip: if your web app launch button doesn't become active after a while, try to deploy it again, using the **update an existing app** option. If you properly deploy the web app, it appears on the dropdown list of your existing web apps.

### Question: I deployed a model but I don't see it in the playground

The playground only supports select models, such as Azure OpenAI models and Llama-2. If the playground supports a model, you see the **Open in playground** button on the model deployment's **Details** page.

## Related content

* [Foundry overview](../what-is-foundry)
* [Azure AI FAQ](../faq.yml)
