Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion quickstart/101-azure-api-management-create/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ resource "azurerm_api_management" "api" {
resource_group_name = azurerm_resource_group.rg.name
publisher_email = var.publisher_email
publisher_name = var.publisher_name
sku_name = "${var.sku}_${var.sku_count}"
sku_name = "${var.sku_name}_${var.sku_count}"
}
2 changes: 1 addition & 1 deletion quickstart/101-azure-api-management-create/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.0"
version = "~>4.0"
}
random = {
source = "hashicorp/random"
Expand Down
2 changes: 1 addition & 1 deletion quickstart/101-azure-api-management-create/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ This template deploys an Azure API Management service.
| `resource_group_location` | Location of the resource group. | eastus |
| `publisher_email` | Email address of the owner of the service. | test@contoso.com |
| `publisher_name` | Name of the owner of the service. | publisher |
| `sku` | Pricing tier of this API Management service | Developer |
| `sku_name` | Pricing tier of this API Management service. Must be one of the following values: Basic, BasicV2, Consumption, Developer, Premium, PremiumV2, Standard, StandardV2. | BasicV2 |
| `sku_count` | Instance size of this API Management service. | 1 |
8 changes: 4 additions & 4 deletions quickstart/101-azure-api-management-create/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ variable "publisher_name" {
}
}

variable "sku" {
variable "sku_name" {
description = "The pricing tier of this API Management service"
default = "Developer"
default = "BasicV2"
type = string
validation {
condition = contains(["Developer", "Standard", "Premium"], var.sku)
error_message = "The sku must be one of the following: Developer, Standard, Premium."
condition = contains(["Basic", "BasicV2", "Consumption", "Developer", "Premium", "PremiumV2", "Standard", "StandardV2"], var.sku_name)
error_message = "The sku must be one of the following: Basic, BasicV2, Consumption, Developer, Premium, PremiumV2, Standard, StandardV2."
}
}

Expand Down