Skip to content

Commit

Permalink
Updating apim subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Oct 28, 2023
1 parent 2c640cc commit de5653e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/integration_tests_api_subscription.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ resource "azurerm_api_management_subscription" "integration_tests" {
api_management_name = data.azurerm_api_management.platform.name
resource_group_name = data.azurerm_api_management.platform.resource_group_name

state = "active"
state = "active"
allow_tracing = false

api_id = azurerm_api_management_api.repository_api.id
api_id = split(";", azurerm_api_management_api.repository_api.id)[0] // Strip revision from id when creating subscription
display_name = "Integration Tests"
}
2 changes: 1 addition & 1 deletion terraform/integration_tests_key_vault_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "azurerm_key_vault_secret" "integration_test_api_key_primary" {
key_vault_id = azurerm_key_vault.kv.id
}

resource "azurerm_key_vault_secret" "integration_test_api_key_seondary" {
resource "azurerm_key_vault_secret" "integration_test_api_key_secondary" {
name = format("%s-api-key-secondary", azuread_application.integration_tests.display_name)
value = azurerm_api_management_subscription.integration_tests.secondary_key
key_vault_id = azurerm_key_vault.kv.id
Expand Down

0 comments on commit de5653e

Please sign in to comment.