Skip to content

Add missing location parameter to search service AVM module#89

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-search-service-location
Draft

Add missing location parameter to search service AVM module#89
Copilot wants to merge 2 commits intomainfrom
copilot/fix-search-service-location

Conversation

Copy link

Copilot AI commented Feb 4, 2026

The search service AVM module was missing the location parameter, causing it to fail deployment or default to an unintended region.

Changes

  • Added location: location parameter to search service module in infra/main.bicep
  • Added location: location parameter to search service module in infra/main_custom.bicep
module searchService 'br/public:avm/res/search/search-service:0.11.1' = {
  name: take('avm.res.search.search-service.${solutionSuffix}', 64)
  params: {
    name: searchServiceName
+   location: location
    authOptions: {
      aadOrApiKey: {
        aadAuthFailureMode: 'http401WithBearerChallenge'
      }
    }
    // ...
  }
}

This aligns with all other AVM module calls in the template.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: /usr/local/bin/bicep bicep build main.bicep (dns block)
    • Triggering command: /usr/local/bin/bicep bicep build main_custom.bicep --stdout (dns block)
  • eastus.data.mcr.microsoft.com
    • Triggering command: /usr/local/bin/bicep bicep build main.bicep (dns block)
    • Triggering command: /usr/local/bin/bicep bicep build main_custom.bicep --stdout (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

In main.bicep the location is not passed to search service AVM module.
Fix it and create the PR.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Prajwal-Microsoft <175229732+Prajwal-Microsoft@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing location in search service AVM module Add missing location parameter to search service AVM module Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants