Created
October 6, 2022 02:02
-
-
Save sathishjayapal/e4e3020c86dca828675d9a4254df1da9 to your computer and use it in GitHub Desktop.
sample for multiple providers template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
#Required Terraform version | |
required_version = "~>1.3.1" | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = ">=3.0, <=3.24.0" | |
} | |
} | |
} | |
provider "azurerm" { | |
features {} | |
} | |
provider "azurerm" { | |
features { | |
virtual_machine { | |
delete_os_disk_on_deletion = false | |
} | |
} | |
alias = "azure-westus" | |
} | |
resource "azurerm_resource_group" "sathish-sep30-rg" { | |
location = "eastus" | |
name = "sathish-oct-eastus-rg" | |
tags = { | |
name = "sep30created" | |
} | |
} | |
resource "azurerm_resource_group" "sathish-oct05-rg" { | |
location = "westus" | |
name = "sathish-oct-westus-rg" | |
tags = { | |
name = "oct05created" | |
} | |
provider = "azurerm.azure-westus" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment