-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_stgaccounts.tf
30 lines (30 loc) · 1.39 KB
/
2_stgaccounts.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
// NOTE: Second Step is to create Storage Accounts for my VM´s. I need normal Standard_LRS Storage also a Premium_LRS
// and a separate Standard_LRS Storage for my Boot Diagnostics.
resource "azurerm_storage_account" "storlrs" {
name = "${var.storlrs}"
resource_group_name = "${azurerm_resource_group.Storage.name}"
location = "${azurerm_resource_group.Storage.location}"
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_account" "storlrsdiag" {
name = "${var.storlrsdiag}"
resource_group_name = "${azurerm_resource_group.Storage.name}"
location = "${azurerm_resource_group.Storage.location}"
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_account" "storlrsssd" {
name = "${var.storlrsssd}"
resource_group_name = "${azurerm_resource_group.Storage.name}"
location = "${azurerm_resource_group.Storage.location}"
account_tier = "Premium"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "vhds" {
name = "vhds"
resource_group_name = "${azurerm_resource_group.Storage.name}"
storage_account_name = "${var.storlrs}"
container_access_type = "blob"
depends_on = ["azurerm_storage_account.storlrs"]
}