From 3399048a1a4bacb399466b929ed7560ad979a67b Mon Sep 17 00:00:00 2001 From: Saad Zaher Date: Fri, 24 Apr 2020 07:18:34 +0100 Subject: [PATCH] `azurerm_api_management` - `sku_name` supports Consumption (#6602) --- .../services/apimanagement/resource_arm_api_management.go | 1 + website/docs/r/api_management.html.markdown | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azurerm/internal/services/apimanagement/resource_arm_api_management.go b/azurerm/internal/services/apimanagement/resource_arm_api_management.go index 8beb983b5f2f..42e662398054 100644 --- a/azurerm/internal/services/apimanagement/resource_arm_api_management.go +++ b/azurerm/internal/services/apimanagement/resource_arm_api_management.go @@ -72,6 +72,7 @@ func resourceArmApiManagementService() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: azure.MinCapacitySkuNameInSlice([]string{ + string(apimanagement.SkuTypeConsumption), string(apimanagement.SkuTypeDeveloper), string(apimanagement.SkuTypeBasic), string(apimanagement.SkuTypeStandard), diff --git a/website/docs/r/api_management.html.markdown b/website/docs/r/api_management.html.markdown index 796b47c74638..26aa3063d145 100644 --- a/website/docs/r/api_management.html.markdown +++ b/website/docs/r/api_management.html.markdown @@ -55,7 +55,7 @@ The following arguments are supported: * `publisher_email` - (Required) The email of publisher/company. -* `sku_name` - (Required) `sku_name` is a string consisting of two parts separated by an underscore(\_). The fist part is the `name`, valid values include: `Developer`, `Basic`, `Standard` and `Premium`. The second part is the `capacity` (e.g. the number of deployed units of the `sku`), which must be a positive `integer` (e.g. `Developer_1`). +* `sku_name` - (Required) `sku_name` is a string consisting of two parts separated by an underscore(\_). The fist part is the `name`, valid values include: `Consumption`, `Developer`, `Basic`, `Standard` and `Premium`. The second part is the `capacity` (e.g. the number of deployed units of the `sku`), which must be a positive `integer` (e.g. `Developer_1`). ---