github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/examples/azure/terraform-azure-frontdoor-example/README.md (about)

     1  # Terraform Azure Front Door Example
     2  
     3  This folder contains a simple Terraform module that deploys resources in [Azure](https://azure.microsoft.com/) to demonstrate
     4  how you can use Terratest to write automated tests for your Azure Terraform code. This module deploys an [Azure Front Door](https://azure.microsoft.com/en-us/services/frontdoor/).
     5  
     6  Check out [test/azure/terraform_azure_frontdoor_example_test.go](./../../../test/azure/terraform_azure_frontdoor_example_test.go) to see how you can write automated tests for this module and validate the configuration of the parameters and options. 
     7  
     8  **WARNING**: This module and the automated tests for it deploy real resources into your Azure account which can cost you money. 
     9  
    10  ## Running this module manually
    11  
    12  1. Sign up for [Azure](https://azure.microsoft.com/).
    13  1. Configure your Azure credentials using one of the [supported methods for Azure CLI
    14     tools](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest)
    15  1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`.
    16  1. Ensure [environment variables](../README.md#review-environment-variables) are available
    17  1. Run `terraform init`
    18  1. Run `terraform apply`
    19  1. When you're done, run `terraform destroy`.
    20  
    21  ## Running automated tests against this module
    22  
    23  1. Sign up for [Azure](https://azure.microsoft.com/)
    24  1. Configure your Azure credentials using one of the [supported methods for Azure CLI
    25     tools](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest)
    26  1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`
    27  1. Configure your Terratest [Go test environment](../README.md) 
    28  1. `cd test/azure`
    29  1. `go build terraform_azure_frontdoor_example_test.go`
    30  1. `go test -v -timeout 60m -tags azure -run TestTerraformAzureFrontDoorExample`