Skip to content

Commit 9fffe4d

Browse files
Merge pull request #7356 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-29 22:07 UTC
2 parents ac41a75 + ca34fd5 commit 9fffe4d

35 files changed

+2325
-267
lines changed

articles/ai-foundry/.openpublishing.redirection.ai-studio.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
"redirect_url": "/azure/ai-foundry/whats-new-azure-ai-foundry",
2626
"redirect_document_id": false
2727
},
28+
{
29+
"source_path_from_root": "/articles/ai-foundry/foundry-models/how-to/github/create-model-deployments.md",
30+
"redirect_url": "/azure/ai-foundry/foundry-models/how-to/create-model-deployments",
31+
"redirect_document_id": false
32+
},
2833
{
2934
"source_path_from_root": "/articles/ai-foundry/concepts/rbac-ai-foundry.md",
3035
"redirect_url": "/azure/ai-foundry/concepts/rbac-azure-ai-foundry",

articles/ai-foundry/foundry-models/how-to/create-model-deployments.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
title: Add and configure models to Azure AI Foundry
33
titleSuffix: Azure AI Foundry
4-
description: Learn how to add and configure new models to the Azure AI Foundry's inference endpoint.
4+
description: Learn how to add and configure AI models to Azure AI Foundry Models inference endpoint for deployment and inference in your applications.
55
ms.service: azure-ai-foundry
66
ms.subservice: azure-ai-foundry-model-inference
77
ms.topic: how-to
8-
ms.date: 05/19/2025
8+
ms.date: 09/29/2025
99
ms.custom: ignite-2024, github-universe-2024
1010
author: msakande
1111
ms.author: mopeakande
1212
recommendations: false
1313
zone_pivot_groups: azure-ai-models-deployment
1414
ms.reviewer: fasantia
1515
reviewer: santiagxf
16+
ai.usage: ai-assisted
17+
18+
#CustomerIntent: As a developer or AI practitioner, I want to deploy and configure AI models to Azure AI Foundry Models endpoint so that I can integrate these models into my applications and generate predictions through inference requests.
1619
---
1720

1821
# Add and configure models to Azure AI Foundry Models
@@ -29,6 +32,6 @@ reviewer: santiagxf
2932
[!INCLUDE [bicep](../../foundry-models/includes/create-model-deployments/bicep.md)]
3033
::: zone-end
3134

32-
## Next steps
35+
## Next step
3336

3437
* [Develop applications using Azure AI Foundry Models](../../model-inference/supported-languages.md)

articles/ai-foundry/foundry-models/how-to/github/create-model-deployments.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

articles/ai-foundry/foundry-models/includes/create-model-deployments/bicep.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: santiagxf
44
ms.author: fasantia
55
ms.service: azure-ai-foundry
66
ms.subservice: azure-ai-foundry-model-inference
7-
ms.date: 1/21/2025
7+
ms.date: 09/29/2025
88
ms.topic: include
99
zone_pivot_groups: azure-ai-models-deployment
1010
---
@@ -17,11 +17,11 @@ zone_pivot_groups: azure-ai-models-deployment
1717

1818
* Your Azure subscription ID.
1919

20-
* Your Azure AI Foundry (formerly known Azure AI Services) resource name.
20+
* Your Azure AI Foundry resource (formerly known as Azure AI Services resource) name.
2121

2222
* The resource group where the Azure AI Foundry resource is deployed.
2323

24-
* The model name, provider, version, and SKU you would like to deploy. You can use the Azure AI Foundry portal or the Azure CLI to identify it. In this example we deploy the following model:
24+
* The model name, provider, version, and SKU you want to deploy. You can use the Azure AI Foundry portal or the Azure CLI to find this information. In this example, you deploy the following model:
2525

2626
* **Model name:**: `Phi-3.5-vision-instruct`
2727
* **Provider**: `Microsoft`
@@ -52,7 +52,7 @@ cd azureai-model-inference-bicep/infra
5252

5353
:::code language="bicep" source="~/azureai-model-inference-bicep/infra/modules/ai-services-deployment-template.bicep":::
5454

55-
2. Run the deployment:
55+
1. Run the deployment:
5656

5757
```azurecli
5858
RESOURCE_GROUP="<resource-group-name>"
@@ -70,4 +70,18 @@ cd azureai-model-inference-bicep/infra
7070
7171
## Use the model
7272
73-
Deployed models can be consumed using the [Azure AI model's inference endpoint](../../concepts/endpoints.md) for the resource. When constructing your request, indicate the parameter `model` and insert the model deployment name you have created.
73+
Deployed models in can be consumed using the [Azure AI model's inference endpoint](../../concepts/endpoints.md) for the resource. When constructing your request, indicate the parameter `model` and insert the model deployment name you have created. You can programmatically get the URI for the inference endpoint using the following code:
74+
75+
__Inference endpoint__
76+
77+
```azurecli
78+
az cognitiveservices account show -n $accountName -g $resourceGroupName | jq '.properties.endpoints["Azure AI Model Inference API"]'
79+
```
80+
81+
To make requests to the Azure AI Foundry Models endpoint, append the route `models`, for example `https://<resource>.services.ai.azure.com/models`. You can see the API reference for the endpoint at [Azure AI Model Inference API reference page](https://aka.ms/azureai/modelinference).
82+
83+
__Inference keys__
84+
85+
```azurecli
86+
az cognitiveservices account keys list -n $accountName -g $resourceGroupName
87+
```

articles/ai-foundry/foundry-models/includes/create-model-deployments/cli.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,61 @@ author: santiagxf
44
ms.author: fasantia
55
ms.service: azure-ai-foundry
66
ms.subservice: azure-ai-foundry-model-inference
7-
ms.date: 1/21/2025
7+
ms.date: 09/29/2025
88
ms.topic: include
99
zone_pivot_groups: azure-ai-models-deployment
1010
---
1111

1212
[!INCLUDE [Header](intro.md)]
1313

14-
* Install the [Azure CLI](/cli/azure/) and the `cognitiveservices` extension for Azure AI Services:
14+
* Install the [Azure CLI](/cli/azure/) and the `cognitiveservices` extension for Azure AI Services.
1515

1616
```azurecli
1717
az extension add -n cognitiveservices
1818
```
1919
20-
* Some of the commands in this tutorial use the `jq` tool, which might not be installed in your system. For installation instructions, see [Download `jq`](https://stedolan.github.io/jq/download/).
20+
* Some of the commands in this tutorial use the `jq` tool, which might not be installed on your system. For installation instructions, see [Download `jq`](https://stedolan.github.io/jq/download/).
2121
2222
* Identify the following information:
2323
2424
* Your Azure subscription ID.
2525
2626
* Your Azure AI Services resource name.
2727
28-
* The resource group where the Azure AI Services resource is deployed.
28+
* The resource group where you deployed the Azure AI Services resource.
2929
3030
3131
## Add models
3232
33-
To add a model, you first need to identify the model that you want to deploy. You can query the available models as follows:
33+
To add a model, first identify the model that you want to deploy. You can query the available models as follows:
3434
35-
1. Log in into your Azure subscription:
35+
1. Sign in to your Azure subscription.
3636
3737
```azurecli
3838
az login
3939
```
4040
41-
2. If you have more than 1 subscription, select the subscription where your resource is located:
41+
1. If you have more than one subscription, select the subscription where your resource is located.
4242
4343
```azurecli
4444
az account set --subscription $subscriptionId
4545
```
4646
47-
3. Set the following environment variables with the name of the Azure AI Services resource you plan to use and resource group.
47+
1. Set the following environment variables with the name of the Azure AI Services resource you plan to use and resource group.
4848
4949
```azurecli
5050
accountName="<ai-services-resource-name>"
5151
resourceGroupName="<resource-group>"
5252
location="eastus2"
5353
```
5454
55-
3. If you don't have an Azure AI Services account create yet, you can create one as follows:
55+
1. If you didn't create an Azure AI Services account yet, create one.
5656
5757
```azurecli
5858
az cognitiveservices account create -n $accountName -g $resourceGroupName --custom-domain $accountName --location $location --kind AIServices --sku S0
5959
```
6060
61-
4. Let's see first which models are available to you and under which SKU. SKUs, also known as [deployment types](../../concepts/deployment-types.md), define how Azure infrastructure is used to process requests. Models may offer different deployment types. The following command list all the model definitions available:
61+
1. Check which models are available to you and under which SKU. SKUs, also known as [deployment types](../../concepts/deployment-types.md), define how Azure infrastructure is used to process requests. Models might offer different deployment types. The following command lists all the model definitions available:
6262
6363
```azurecli
6464
az cognitiveservices account list-models \
@@ -67,7 +67,7 @@ To add a model, you first need to identify the model that you want to deploy. Yo
6767
| jq '.[] | { name: .name, format: .format, version: .version, sku: .skus[0].name, capacity: .skus[0].capacity.default }'
6868
```
6969
70-
5. Outputs look as follows:
70+
1. Outputs look as follows:
7171
7272
```output
7373
{
@@ -79,9 +79,9 @@ To add a model, you first need to identify the model that you want to deploy. Yo
7979
}
8080
```
8181
82-
6. Identify the model you want to deploy. You need the properties `name`, `format`, `version`, and `sku`. The property `format` indicates the provider offering the model. Capacity might also be needed depending on the type of deployment.
82+
1. Identify the model you want to deploy. You need the properties `name`, `format`, `version`, and `sku`. The property `format` indicates the provider offering the model. You might also need capacity depending on the type of deployment.
8383
84-
7. Add the model deployment to the resource. The following example adds `Phi-3.5-vision-instruct`:
84+
1. Add the model deployment to the resource. The following example adds `Phi-3.5-vision-instruct`:
8585
8686
```azurecli
8787
az cognitiveservices account deployment create \
@@ -95,9 +95,9 @@ To add a model, you first need to identify the model that you want to deploy. Yo
9595
--sku-name GlobalStandard
9696
```
9797
98-
8. The model is ready to be consumed.
98+
1. The model is ready to use.
9999
100-
You can deploy the same model multiple times if needed as long as it's under a different deployment name. This capability might be useful in case you want to test different configurations for a given model, including content filters.
100+
You can deploy the same model multiple times if needed as long as it's under a different deployment name. This capability might be useful if you want to test different configurations for a given model, including content filters.
101101
102102
## Use the model
103103

articles/ai-foundry/foundry-models/includes/create-model-deployments/intro.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ author: santiagxf
44
ms.author: fasantia
55
ms.service: azure-ai-foundry
66
ms.subservice: azure-ai-foundry-model-inference
7-
ms.date: 1/21/2025
7+
ms.date: 09/29/2025
88
ms.topic: include
99
---
1010

11-
You can decide and configure which models are available for inference in your Azure AI Foundry resource. When a given model is configured, you can then generate predictions from it by indicating its model name or deployment name on your requests. No further changes are required in your code to use it.
11+
You can decide and configure which models are available for inference in your Azure AI Foundry resource. When you configure a model, you can generate predictions from it by specifying its model name or deployment name in your requests. You don't need to make any other changes in your code to use the model.
1212

13-
In this article, you'll learn how to add a new model to Azure AI Foundry.
13+
In this article, you learn how to add a new model to an Azure AI Foundry Models endpoint.
1414

1515
## Prerequisites
1616

1717
To complete this article, you need:
1818

1919
* An Azure subscription. If you're using [GitHub Models](https://docs.github.com/en/github-models/), you can upgrade your experience and create an Azure subscription in the process. Read [Upgrade from GitHub Models to Azure AI Foundry Models](../../how-to/quickstart-github-models.md) if that's your case.
2020

21-
* An Azure AI Foundry resource (formerly known as Azure AI Services). For more information, see [Create and configure all the resources for Azure AI Foundry Models](../../how-to/quickstart-create-resources.md).
21+
* An Azure AI Foundry project. This kind of project is managed under an Azure AI Foundry resource (formerly known as Azure AI Services resource). If you don't have a Foundry project, see [Create a project for Azure AI Foundry (Foundry projects)](../../../how-to/create-projects.md).
22+
2223

2324
* [Models from Partners and Community](../../concepts/models.md#models-from-partners-and-community) require access to **Azure Marketplace**. Ensure you have the [permissions required to subscribe to model offerings](../../how-to/configure-marketplace.md). [Models Sold Directly by Azure](../../concepts/models.md#models-sold-directly-by-azure) don't have this requirement.

0 commit comments

Comments
 (0)