-3

Cloud Provider : Azure Can I declare resource group , Virtual network , or subnets in Azure as terraform Variable - Infrastructure as code

without variable :-

resource "azurerm_resource_group" "example" {
name     = "example"
location = var.location
}
SamJack
  • 3
  • 2

1 Answers1

0

Yes you can

resource "azurerm_resource_group" "example" {
name     = "${var.prefix}-resources"
location = "westeurope"
}
Osamazx
  • 471
  • 1
  • 5
  • 12