Skip to content

Azure Search: Firewall bypass option not supported via Azure CLI #31812

@jijojohn

Description

@jijojohn

Problem

Attempting to set the firewall bypass option (network_rule_set.bypass) for an Azure Cognitive Search service using the Azure CLI is not supported and results in an error. The CLI only exposes ip_rules in network_rule_set, while the Azure REST API and ARM templates support a bypass property. This creates inconsistency and limits automation via CLI.

Steps to Reproduce

  1. Run the following command:
    az search service update \
      --name <search-service-name> \
      --resource-group <resource-group> \
      --set network_rule_set.bypass="AzureServices"
  2. Observe the error: Couldn't find 'bypass' in 'network_rule_set'. Available options: ['ip_rules']

Expected Behavior

It should be possible to set the bypass property using the Azure CLI in line with the Azure REST API and ARM template schema.

Actual Behavior

The CLI does not support the bypass property and raises an error.

Impact

  • Automation scripts using the CLI cannot enable/disable firewall bypass for Azure Cognitive Search.
  • Users must use ARM templates or direct REST API calls, which are less convenient for scripting and operational consistency.

References

Suggested Solution

Enhance the Azure CLI to support the bypass property in network_rule_set for Azure Cognitive Search services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions