Fix 101-storage-static-website (#188)
* fix 101-storage-static-website --------- Co-authored-by: zjhe <hezijie@microsoft.com>
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
|
||||
resource "azurerm_storage_account" "default" {
|
||||
name = local.storage_account_name
|
||||
resource_group_name = azurerm_resource_group.default.name
|
||||
location = "westus2"
|
||||
location = azurerm_resource_group.default.location
|
||||
account_kind = "StorageV2"
|
||||
account_tier = "Standard"
|
||||
account_replication_type = "LRS"
|
||||
enable_https_traffic_only = true
|
||||
|
||||
provisioner "local-exec" {
|
||||
command = "az storage blob service-properties update --account-name ${azurerm_storage_account.default.name} --static-website --index-document index.html --404-document 404.html"
|
||||
static_website {
|
||||
index_document = "index.html"
|
||||
error_404_document = "404.html"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user