Skip to content

Commit 0b46087

Browse files
author
gitName
committed
wip
1 parent d6fd736 commit 0b46087

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

articles/api-management/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@
240240
href: azure-ai-foundry-api.md
241241
- name: Import Azure OpenAI API
242242
href: azure-openai-api-from-specification.md
243-
- name: Import OpenAI-compatible LLM API
243+
- name: Import lanaguage model API
244244
href: openai-compatible-llm-api.md
245+
- name: Import Amazon Bedrock API
246+
href: amazon-bedrock-passthrough-llm-api.md
245247
- name: Authenticate and authorize to Azure OpenAI
246248
href: api-management-authenticate-authorize-azure-openai.md
247249
- name: Expose REST API as MCP server

articles/api-management/amazon-bedrock-passthrough-llm-api.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Import Amazon Bedrock Passthrough API - Azure API Management
3-
description: How to import an Amazon Bedrock language model as a REST API in Azure API Management.
3+
description: How to import an Amazon Bedrock language model API as a REST API in Azure API Management.
44
ms.service: azure-api-management
55
author: dlepow
66
ms.author: danlep
77
ms.topic: how-to
8-
ms.date: 07/03/2025
8+
ms.date: 07/06/2025
99
ms.update-cycle: 180-days
1010
ms.collection: ce-skilling-ai-copilot
1111
ms.custom: template-how-to, build-2024
@@ -15,11 +15,11 @@ ms.custom: template-how-to, build-2024
1515

1616
[!INCLUDE [api-management-availability-all-tiers](../../includes/api-management-availability-all-tiers.md)]
1717

18-
In this article, you import an Amazon Bedrock passthrough language model API into your API Management instance. This is an example of a model that's hosted on an inference provider other than Azure AI services. Use AI gateway policies and other capabilities in API Management to simplify integration, improve observability, and enhance control over the model endpoints.
18+
In this article, you import an Amazon Bedrock language model API into your API Management instance as a passthrough API. This is an example of a model that's hosted on an inference provider other than Azure AI services. Use AI gateway policies and other capabilities in API Management to simplify integration, improve observability, and enhance control over the model endpoints.
1919

2020
Learn more about managing AI APIs in API Management:
2121

22-
* [Generative AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
22+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
2323
* [Import a language model API](openai-compatible-llm-api.md)
2424

2525
Learn more about Amazon Bedrock:
@@ -30,7 +30,7 @@ Learn more about Amazon Bedrock:
3030
## Prerequisites
3131

3232
- An existing API Management instance. [Create one if you haven't already](get-started-create-service-instance.md).
33-
- An Amazon Web Services (AWS) account with access to Amazon Bedrock, and access to an Amazon Bedrock foundation model. [Learn more](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-console.html)
33+
- An Amazon Web Services (AWS) account with access to Amazon Bedrock, and access to one or more Amazon Bedrock foundation models. [Learn more](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-console.html)
3434

3535

3636
<!--
@@ -66,7 +66,6 @@ Securely store the two IAM user access keys as secret [named values](api-managem
6666

6767
## Import a passthrough language model API using the portal
6868

69-
7069
To import an Amazon Bedrock language model API to API Management:
7170

7271
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
@@ -91,18 +90,17 @@ To import an Amazon Bedrock language model API to API Management:
9190
1. Select **Review**.
9291
1. After settings are validated, select **Create**.
9392

94-
9593
API Management creates the API and (optionally) policies to help you monitor and manage the API.
9694

9795
## Configure policies to authenticate requests to the Amazon Bedrock API
9896

99-
Configure API Management policies at the level of the API that you imported to sign requests to the Amazon Bedrock API.
97+
Configure API Management policies to sign requests to the Amazon Bedrock API. [Learn more about signing AWS API requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv.html).
10098

10199
The following example uses the *accesskey* and *secretkey* named values you created earlier for the AWS access key and secret key. Set the `region` variable to the appropriate values for your Amazon Bedrock API. The example uses `us-east-1` for the region.
102100

103101
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
104102
1. In the left menu, under **APIs**, select **APIs**.
105-
1. Select the API that you created in the previous step.
103+
1. Select the API that you created in the previous section.
106104
1. In the left menu, under **Design**, select **All operations**.
107105
1. Select the **Inbound processing** tab.
108106
1. In the **Inbound processing** policy editor, select **</>** to open the policy editor.
@@ -274,7 +272,7 @@ The following example uses the *accesskey* and *secretkey* named values you crea
274272

275273
To call the LLM API through API Management, you can use the AWS Bedrock SDK. This example uses the .NET SDK, but you can use any language that supports the AWS Bedrock API.
276274

277-
The following example uses a custom HTTP client that instantiates classes in the accompanying file `BedrockHttpClientFactory.cs`. The custom HTTP client routes requests to the API Management endpoint and includes the API Management subscription key in the request headers.
275+
The following example uses a custom HTTP client that instantiates classes defined in the accompanying file `BedrockHttpClientFactory.cs`. The custom HTTP client routes requests to the API Management endpoint and includes the API Management subscription key in the request headers.
278276

279277
```csharp
280278
using Amazon;
@@ -330,7 +328,7 @@ var request = new ConverseRequest
330328

331329
try
332330
{
333-
// Send the request to the Bedrock Runtime and wait for the result.
331+
// Send the request to the Bedrock runtime and wait for the result.
334332
var response = await client.ConverseAsync(request);
335333

336334
// Extract and print the response text.
@@ -342,7 +340,6 @@ catch (AmazonBedrockRuntimeException e)
342340
Console.WriteLine($"ERROR: Can't invoke '{modelId}'. Reason: {e.Message}");
343341
throw;
344342
}
345-
346343
```
347344

348345

@@ -405,4 +402,4 @@ namespace BedrockClient
405402

406403
## Related content
407404

408-
* [Generative AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
405+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)

articles/api-management/openai-compatible-llm-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can import OpenAI-compatible language model endpoints to your API Management
1919

2020
Learn more about managing AI APIs in API Management:
2121

22-
* [Generative AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
22+
* [AI gateway capabilities in Azure API Management](genai-gateway-capabilities.md)
2323

2424
## Language model API types
2525

@@ -29,7 +29,7 @@ API Management supports two types of language model APIs for this scenario. Choo
2929

3030
API Management configures an OpenAI-compatible chat completions endpoint.
3131

32-
* **Passthrough** - Other language model endpoints that aren't compatible with OpenAI's API. Examples include models deployed in [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html) or other providers.
32+
* **Passthrough** - Other language model endpoints that aren't compatible with OpenAI's API. Examples include models deployed in [Amazon Bedrock](amazon-bedrock-passthrough-llm-api.md) or other providers.
3333

3434
API Management configures wildcard operations for common HTTP verbs. Clients can append paths to the wildcard operations, and API Management passes requests to the backend.
3535

0 commit comments

Comments
 (0)