-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
38 lines (31 loc) · 803 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Configure the Azure provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0.2"
}
}
required_version = ">= 1.1.0"
cloud {
organization = "songhan"
workspaces {
name = "gh-actions-learn"
}
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "rg" {
name = "terraform-learn"
location = "southeastasia"
}
## create a blob storage account with name terraform-learn and resource group terraform-learn
resource "azurerm_storage_account" "sa" {
name = "terraformlearnstore"
resource_group_name = azurerm_resource_group.rg.name
location = "southeastasia"
account_tier = "Standard"
account_replication_type = "LRS"
}