Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created July 4, 2021 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/ab1da6e20e09a315affdd7b58af813ed to your computer and use it in GitHub Desktop.
Save xximjasonxx/ab1da6e20e09a315affdd7b58af813ed to your computer and use it in GitHub Desktop.
resource "azurerm_storage_account" "this" {
name = "storage${var.name}jx02"
resource_group_name = var.rg_name
location = var.rg_location
account_tier = "Standard"
account_kind = "StorageV2"
account_replication_type = "LRS"
network_rules {
default_action = "Deny"
bypass = [ "AzureServices" ]
}
}
# outputs
output "account_id" {
value = azurerm_storage_account.this.id
}
output "account_connection_string" {
value = azurerm_storage_account.this.primary_connection_string
}
output "account_name" {
value = azurerm_storage_account.this.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment