New sample
This commit is contained in:
25
quickstart/101-azure-api-management-create/main.tf
Normal file
25
quickstart/101-azure-api-management-create/main.tf
Normal file
@ -0,0 +1,25 @@
|
||||
resource "random_pet" "rg_name" {
|
||||
prefix = var.resource_group_name_prefix
|
||||
}
|
||||
|
||||
resource "azurerm_resource_group" "rg" {
|
||||
name = random_pet.rg_name.id
|
||||
location = var.resource_group_location
|
||||
}
|
||||
|
||||
resource "random_string" "name" {
|
||||
length = 13
|
||||
lower = true
|
||||
numeric = false
|
||||
special = false
|
||||
upper = false
|
||||
}
|
||||
|
||||
resource "azurerm_api_management" "api" {
|
||||
name = "apiservice${random_string.name.result}"
|
||||
location = azurerm_resource_group.rg.location
|
||||
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}"
|
||||
}
|
Reference in New Issue
Block a user