@@ -45,57 +45,34 @@ resource "azurerm_storage_account" "storage" {
45
45
publish_microsoft_endpoints = false
46
46
}
47
47
sftp_enabled = false
48
- shared_access_key_enabled = false
48
+ shared_access_key_enabled = false # Required to be set to 'true' when creating a Windows host
49
49
}
50
50
51
- resource "azurerm_storage_management_policy" "storage_management_policy" {
52
- storage_account_id = azurerm_storage_account. storage . id
53
-
54
- rule {
55
- name = " default"
56
- enabled = true
57
- actions {
58
- base_blob {
59
- tier_to_cool_after_days_since_modification_greater_than = 360
60
- # delete_after_days_since_modification_greater_than = 720
61
- }
62
- snapshot {
63
- change_tier_to_cool_after_days_since_creation = 180
64
- delete_after_days_since_creation_greater_than = 360
65
- }
66
- version {
67
- change_tier_to_cool_after_days_since_creation = 180
68
- delete_after_days_since_creation = 360
69
- }
70
- }
71
- filters {
72
- blob_types = [" blockBlob" ]
73
- prefix_match = []
74
- }
75
- }
76
- }
77
-
78
- resource "azapi_resource" "storage_file_share" {
79
- type = " Microsoft.Storage/storageAccounts/fileServices/shares@2022-09-01"
80
- name = " logicapp"
81
- parent_id = " ${ azurerm_storage_account . storage . id } /fileServices/default"
82
-
83
- body = jsonencode ({
84
- properties = {
85
- accessTier = " TransactionOptimized"
86
- enabledProtocols = " SMB"
87
- shareQuota = 5120
88
- }
89
- })
90
- }
91
-
92
- # resource "azurerm_storage_share" "storage_file_share" {
93
- # name = "logicapp"
94
- # storage_account_name = azurerm_storage_account.storage.name
95
-
96
- # access_tier = "TransactionOptimized"
97
- # enabled_protocol = "SMB"
98
- # quota = 5120
51
+ # resource "azurerm_storage_management_policy" "storage_management_policy" {
52
+ # storage_account_id = azurerm_storage_account.storage.id
53
+
54
+ # rule {
55
+ # name = "default"
56
+ # enabled = true
57
+ # actions {
58
+ # base_blob {
59
+ # tier_to_cool_after_days_since_modification_greater_than = 360
60
+ # # delete_after_days_since_modification_greater_than = 720
61
+ # }
62
+ # snapshot {
63
+ # change_tier_to_cool_after_days_since_creation = 180
64
+ # delete_after_days_since_creation_greater_than = 360
65
+ # }
66
+ # version {
67
+ # change_tier_to_cool_after_days_since_creation = 180
68
+ # delete_after_days_since_creation = 360
69
+ # }
70
+ # }
71
+ # filters {
72
+ # blob_types = ["blockBlob"]
73
+ # prefix_match = []
74
+ # }
75
+ # }
99
76
# }
100
77
101
78
data "azurerm_monitor_diagnostic_categories" "diagnostic_categories_storage" {
0 commit comments