Commit a69417bf authored by Vibhuti Sharma [Microsoft]'s avatar Vibhuti Sharma [Microsoft]
Browse files

added README

parent 43c349fb
# Required environment variables
export ARM_TENANT_ID=""
export ARM_SUBSCRIPTION_ID=""
## Terraform-Principal
export ARM_CLIENT_ID=""
export ARM_CLIENT_SECRET=""
## Terraform State Storage Account Key
export TF_VAR_remote_state_account=""
export TF_VAR_remote_state_container=""
export ARM_ACCESS_KEY=""
# This configures terraform to leverage a remote backend that will help you and your team keep consistent state
terraform init -backend-config "storage_account_name=${TF_VAR_remote_state_account}" -backend-config "container_name=${TF_VAR_remote_state_container}"
# Execute the following commands to set up your terraform workspace
TF_WORKSPACE="<name>-mr-workspace"
terraform workspace new $TF_WORKSPACE || terraform workspace select $TF_WORKSPACE
You can either use the terraform.tfvars or create a custom.tfvars to supply your own values for the variables.
# See what terraform will try to deploy without actually deploying
terraform plan -var-file custom.tfvars
# Execute a deployment
terraform apply -var-file custom.tfvars
# Destroy resources and tear down deployment. Only do this if you want to destroy your deployment.
terraform destroy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment