You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-howto-add-products.md
+104-7Lines changed: 104 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,23 @@
1
1
---
2
2
title: Tutorial - Create and publish a product in Azure API Management
3
3
description: In this tutorial, you create and publish a product in Azure API Management. Once it's published, developers can begin to use the product's APIs.
In Azure API Management, a [*product*](api-management-terminology.md#term-definitions) contains one or more APIs, a usage quota, and the terms of use. After a product is published, developers can [subscribe](api-management-subscriptions.md) to the product and begin to use the product's APIs.
19
18
19
+
:::zone pivot="interactive"
20
+
20
21
In this tutorial, you learn how to:
21
22
22
23
> [!div class="checklist"]
@@ -26,7 +27,6 @@ In this tutorial, you learn how to:
26
27
27
28
:::image type="content" source="media/api-management-howto-add-products/added-product-1.png" alt-text="API Management products in portal":::
28
29
29
-
30
30
## Prerequisites
31
31
32
32
+ Learn the [Azure API Management terminology](api-management-terminology.md).
@@ -207,3 +207,100 @@ Advance to the next tutorial:
207
207
208
208
> [!div class="nextstepaction"]
209
209
> [Create blank API and mock API responses](mock-api-responses.md)
210
+
211
+
:::zone-end
212
+
213
+
:::zone pivot="terraform"
214
+
215
+
# Quickstart: Use Terraform to configure Azure API Management
216
+
217
+
In this quickstart, you use Terraform to create an Azure API Management instance, an API, a product, a group, and associations between the product and the API, and the product and the group. Azure API Management is a fully managed service that helps developers publish, secure, transform, maintain, and monitor APIs. It provides a unified management experience and full observability across all internal and external APIs. The service is scalable and helps protect your APIs from unauthorized access with keys, tokens, IP filtering, and more. It's used to connect applications and services through APIs, allowing different software systems to communicate with each other.
> * Generate a random name for the resource group.
223
+
> * Create a resource group in a specified location with the generated name.
224
+
> * Generate a random name for the API Management service.
225
+
> * Create an API Management service with the generated name, in the created resource group.
226
+
> * Generate a random name for the API.
227
+
> * Generate a random content value.
228
+
> * Create an API with the generated name and content value, in the created resource group and API Management service.
229
+
> * Generate a random name for the product.
230
+
> * Create a product with the generated name, in the created resource group and API Management service.
231
+
> * Generate a random name for the group.
232
+
> * Create a group with the generated name, in the created resource group and API Management service.
233
+
> * Associate the created API with the created product.
234
+
> * Associate the created group with the created product.
235
+
> * Output the names of the created resource group, API Management service, API, product, and group.
236
+
> * Output the ID, gateway URL, and public IP addresses of the created API Management service.
237
+
> * Output the IDs, state, and version outputs of the created APIs.
238
+
> * Output the ID of the created product.
239
+
> * Output the ID of the association between the created product and API.
240
+
> * Output the ID of the association between the created product and group.
241
+
> * Specify the required version of Terraform and the required providers.
242
+
> * Define variables for the resource group name prefix, resource group location, and the content format and value for the API definition import.
243
+
244
+
## Prerequisites
245
+
246
+
- Create an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
247
+
248
+
-[Install and configure Terraform.](/azure/developer/terraform/quickstart-configure)
249
+
250
+
## Implement the Terraform code
251
+
252
+
> [!NOTE]
253
+
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-api-management-create-with-api). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-api-management-create-with-api/TestRecord.md).
254
+
>
255
+
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
256
+
257
+
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
258
+
259
+
1. Create a file named `main.tf` and insert the following code:
Run [`az apim show`](/cli/azure/apim#az-apim-show) to view the Azure API Management.
288
+
289
+
The placeholders in the code block that must be changed are `<resource_group_name_prefix>`, `<resource_group_location>`, `<open_api_spec_content_format>`, and `<open_api_spec_content_value>`.
0 commit comments