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
+92-7Lines changed: 92 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,88 @@ 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
+
In this article, 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.
> * Specify the required version of Terraform and the required providers.
222
+
> * Define variables for the resource group name prefix, resource group location, and the content format and value for the API definition import.
223
+
> * Create a resource group with a randomized name.
224
+
> * Create an API Management service with a randomized name.
225
+
> * Create an API with a randomized name.
226
+
> * Create a product with a randomized name in the API Management service.
227
+
> * Create a group with a randomized name.
228
+
> * Associate the API with the product.
229
+
> * Associate the group with the product.
230
+
> * Output the randomized values such as the names of the resource group, API Management service, API, product, and group.
231
+
232
+
## Prerequisites
233
+
234
+
- Create an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
235
+
236
+
-[Install and configure Terraform.](/azure/developer/terraform/quickstart-configure)
237
+
238
+
## Implement the Terraform code
239
+
240
+
> [!NOTE]
241
+
> 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).
242
+
>
243
+
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
244
+
245
+
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
246
+
247
+
1. Create a file named `main.tf`, and insert the following code:
0 commit comments