File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if () {
1111
1212# Check automation endpoint
1313try {
14- = Invoke-RestMethod - Uri " https://zava-8e5461ee -app.azurewebsites.net/a2a/automation/status" - TimeoutSec 5
14+ = Invoke-RestMethod - Uri " https://zava-6a7d57fb -app.azurewebsites.net/a2a/automation/status" - TimeoutSec 5
1515 Write-Host " Automation Status: "
1616} catch {
1717 Write-Host " Automation endpoint not accessible"
Original file line number Diff line number Diff line change @@ -283,6 +283,17 @@ resource "azurerm_search_service" "search" {
283283 identity { type = " SystemAssigned" }
284284}
285285
286+ # Grant the current Terraform principal access to Search *data-plane* operations
287+ # (view/create indexes, query documents). Without this, the Azure Portal may not
288+ # show indexes even if they exist.
289+ resource "azurerm_role_assignment" "search_index_data_contributor_user" {
290+ scope = azurerm_search_service. search . id
291+ role_definition_name = " Search Index Data Contributor"
292+ principal_id = local. principal_id
293+
294+ depends_on = [azurerm_search_service . search ]
295+ }
296+
286297resource "azurerm_log_analytics_workspace" "law" {
287298 name = local. log_analytics_name
288299 location = var. location
You can’t perform that action at this time.
0 commit comments