Skip to content

Commit fbcb347

Browse files
authored
Define outputs for Azure resources in outputs.tf
Added outputs for Cosmos DB, Storage Account, Azure AI Search, Container Registry, and App Service.
1 parent 553923f commit fbcb347

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
output "cosmosDbEndpoint" {
2+
value = azurerm_cosmosdb_account.cosmos.endpoint
3+
description = "Cosmos DB account endpoint"
4+
}
5+
6+
output "storageAccountName" {
7+
value = azapi_resource.storage.name
8+
description = "Storage account name"
9+
}
10+
11+
output "searchServiceName" {
12+
value = azurerm_search_service.search.name
13+
description = "Azure AI Search service name"
14+
}
15+
16+
output "container_registry_name" {
17+
value = azurerm_container_registry.acr.name
18+
description = "Azure Container Registry name"
19+
}
20+
21+
output "application_name" {
22+
value = azurerm_linux_web_app.app.name
23+
description = "App Service name"
24+
}
25+
26+
output "application_url" {
27+
value = azurerm_linux_web_app.app.default_hostname
28+
description = "Primary host name for the App Service"
29+
}

0 commit comments

Comments
 (0)