File tree Expand file tree Collapse file tree 6 files changed +54
-0
lines changed
Expand file tree Collapse file tree 6 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # This file should include references to data sources, resources, and modules
2+ # required to manage the desired Azure infrastructure.
Original file line number Diff line number Diff line change 1+ # Optionally use other *.tf files to brake out the infrastructure in to more
2+ # manageable and understandable chunks.
Original file line number Diff line number Diff line change 1+ # Use this file to define all outputs that will be returned by the configuration
2+
3+ output "resource" {
4+ value = azurerm_resource_group. my_rg . name
5+ }
Original file line number Diff line number Diff line change 1+ # We strongly recommend using the required_providers block to set the
2+ # Azure Provider source and version being used
3+ terraform {
4+ required_version = " >=0.15.0"
5+
6+ required_providers {
7+ azurerm = {
8+ source = " hashicorp/azurerm"
9+ version = " =2.56.0"
10+ }
11+ }
12+
13+ # We recommend using a remote backend like Azure storage
14+ # backend "azurerm" {
15+ # storage_account_name = "" // existing storage account
16+ # container_name = "tfstate"
17+ # key = "terraform.tfstate"
18+ # resource_group_name = "" // resource group where storage account exists
19+ # }
20+ #
21+ # or Terraform Cloud (https://app.terraform.io)
22+ # backend "remote" {
23+ # hostname = "app.terraform.io"
24+ # organization = "company"
25+ #
26+ # workspaces {
27+ # name = "my-app-prod"
28+ # }
29+ # }
30+ }
31+
32+ # Configure the Microsoft Azure Provider
33+ provider "azurerm" {
34+ features {}
35+ }
Original file line number Diff line number Diff line change 1+ # Azure Quickstart Template
2+
3+ This directory contains the suggested file structure for azure Quickstart configurations. This structure is based on best practices defined by HashiCorp.
Original file line number Diff line number Diff line change 1+ # Use this file to define all variables that will be used in the configuraion
2+
3+ variable "var1" {
4+ type = string
5+ description = " my first variable"
6+ default = " foo"
7+ }
You can’t perform that action at this time.
0 commit comments