neil-yechenwei e47e43c578 update code
2024-01-05 15:15:42 +08:00

30 lines
519 B
HCL

terraform {
required_version = ">=1.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.0.2"
}
azureml = {
source = "registry.terraform.io/orobix/azureml"
}
}
}
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "default" {
name = "rg-${var.name}-${var.environment}"
location = var.location
}