diff --git a/quickstart/101-cosmos-db-azure-container-instance/aci.tf b/quickstart/101-cosmos-db-azure-container-instance/aci.tf index 2e33f631..c7779a18 100644 --- a/quickstart/101-cosmos-db-azure-container-instance/aci.tf +++ b/quickstart/101-cosmos-db-azure-container-instance/aci.tf @@ -1,9 +1,3 @@ -# This code sets two environment variables: COSMOS_DB_ENDPOINT and COSMOS_DB_MASTERKEY. -# These variables hold the location and key for accessing the database. -# The values for these variables are obtained from the database instance created in main.tf -# This process is known as interpolation. -# To learn more about Terraform interpolation, see https://www.terraform.io/language/v1.1.x/configuration-0-11/interpolation. - resource "azurerm_container_group" "vote_aci" { name = "vote_aci" location = azurerm_resource_group.rg.location @@ -24,7 +18,7 @@ resource "azurerm_container_group" "vote_aci" { secure_environment_variables = { "COSMOS_DB_ENDPOINT" = azurerm_cosmosdb_account.vote_cosmos_db.endpoint - "COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_master_key + "COSMOS_DB_MASTERKEY" = azurerm_cosmosdb_account.vote_cosmos_db.primary_key "TITLE" = "Azure Voting App" "VOTE1VALUE" = "Cats" "VOTE2VALUE" = "Dogs" diff --git a/quickstart/201-k8s-cluster-with-tf-and-aks/main.tf b/quickstart/201-k8s-cluster-with-tf-and-aks/main.tf index 0069ac6f..7bfa90f8 100644 --- a/quickstart/201-k8s-cluster-with-tf-and-aks/main.tf +++ b/quickstart/201-k8s-cluster-with-tf-and-aks/main.tf @@ -14,7 +14,8 @@ resource "random_id" "log_analytics_workspace_name_suffix" { resource "azurerm_log_analytics_workspace" "test" { location = var.log_analytics_workspace_location - # The WorkSpace name has to be unique across the whole of azure, not just the current subscription/tenant. + # The WorkSpace name has to be unique across the whole of azure; + # not just the current subscription/tenant. name = "${var.log_analytics_workspace_name}-${random_id.log_analytics_workspace_name_suffix.dec}" resource_group_name = azurerm_resource_group.rg.name sku = var.log_analytics_workspace_sku