New sample (converted from Bicep via OpenAI)

This commit is contained in:
Tom Archer
2023-03-17 12:00:33 -07:00
parent 35b3afaf63
commit 771442acd4
5 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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" "azurerm_search_service_name" {
length = 25
upper = false
numeric = false
special = false
}
resource "azurerm_search_service" "search" {
name = random_string.azurerm_search_service_name.result
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
sku = var.sku
replica_count = var.replica_count
partition_count = var.partition_count
}