Skip to content

Commit bbc6380

Browse files
Merge pull request #463 from Azure/update-apim-samples
101-azure-api-management-create
2 parents dcbd722 + fe87f84 commit bbc6380

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

quickstart/101-azure-api-management-create/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ resource "azurerm_api_management" "api" {
2121
resource_group_name = azurerm_resource_group.rg.name
2222
publisher_email = var.publisher_email
2323
publisher_name = var.publisher_name
24-
sku_name = "${var.sku}_${var.sku_count}"
24+
sku_name = "${var.sku_name}_${var.sku_count}"
2525
}

quickstart/101-azure-api-management-create/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
azurerm = {
55
source = "hashicorp/azurerm"
6-
version = "~>3.0"
6+
version = "~>4.0"
77
}
88
random = {
99
source = "hashicorp/random"

quickstart/101-azure-api-management-create/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ This template deploys an Azure API Management service.
1717
| `resource_group_location` | Location of the resource group. | eastus |
1818
| `publisher_email` | Email address of the owner of the service. | [email protected] |
1919
| `publisher_name` | Name of the owner of the service. | publisher |
20-
| `sku` | Pricing tier of this API Management service | Developer |
20+
| `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 |
2121
| `sku_count` | Instance size of this API Management service. | 1 |

quickstart/101-azure-api-management-create/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ variable "publisher_name" {
3030
}
3131
}
3232

33-
variable "sku" {
33+
variable "sku_name" {
3434
description = "The pricing tier of this API Management service"
35-
default = "Developer"
35+
default = "BasicV2"
3636
type = string
3737
validation {
38-
condition = contains(["Developer", "Standard", "Premium"], var.sku)
39-
error_message = "The sku must be one of the following: Developer, Standard, Premium."
38+
condition = contains(["Basic", "BasicV2", "Consumption", "Developer", "Premium", "PremiumV2", "Standard", "StandardV2"], var.sku_name)
39+
error_message = "The sku must be one of the following: Basic, BasicV2, Consumption, Developer, Premium, PremiumV2, Standard, StandardV2."
4040
}
4141
}
4242

0 commit comments

Comments
 (0)