From 9343652ec6db0a53679e97fe0b72bd460e4021eb Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Tue, 7 Nov 2023 09:36:47 -0800 Subject: [PATCH] Added output of endpoint; Renamed readme --- .../README.md | 2 -- .../output.tf | 4 ++++ .../readme2.md | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) delete mode 100644 quickstart/101-storage-account-with-static-website/README.md create mode 100644 quickstart/101-storage-account-with-static-website/readme2.md diff --git a/quickstart/101-storage-account-with-static-website/README.md b/quickstart/101-storage-account-with-static-website/README.md deleted file mode 100644 index 27f249490..000000000 --- a/quickstart/101-storage-account-with-static-website/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# build_local_module -A module to deploy basic Azure resources diff --git a/quickstart/101-storage-account-with-static-website/output.tf b/quickstart/101-storage-account-with-static-website/output.tf index 8cb21de76..be02f38c4 100644 --- a/quickstart/101-storage-account-with-static-website/output.tf +++ b/quickstart/101-storage-account-with-static-website/output.tf @@ -5,3 +5,7 @@ output "resource_group_name" { output "storage_account_name" { value = azurerm_storage_account.storage_account.name } + +output "primary_web_host" { + value = azurerm_storage_account.storage_account.primary_web_host +} \ No newline at end of file diff --git a/quickstart/101-storage-account-with-static-website/readme2.md b/quickstart/101-storage-account-with-static-website/readme2.md new file mode 100644 index 000000000..9e624a3b1 --- /dev/null +++ b/quickstart/101-storage-account-with-static-website/readme2.md @@ -0,0 +1,18 @@ +# Azure Storage account with hosted static website + +This template deploys an [Azure Storage Account](https://www.terraform.io/docs/providers/azurerm/r/storage_account.html) with static website hosting enabled. +## Terraform resource types + +- [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) +- [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) + +## Variables + +| Name | Description | Default | +|-|-|-| +| `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg | +| `resource_group_location` | Location of the resource group. | eastus | + +## Example + +To see how to run this example, see [Create an Azure resource group using Terraform](https://docs.microsoft.com/azure/developer/terraform/create-resource-group). \ No newline at end of file