-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
SearchService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
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
- Run the following command:
az search service update \ --name <search-service-name> \ --resource-group <resource-group> \ --set network_rule_set.bypass="AzureServices"
- 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
- Azure REST API networkRuleSet docs
- [CLI error message reference]
Suggested Solution
Enhance the Azure CLI to support the bypass property in network_rule_set for Azure Cognitive Search services.
Metadata
Metadata
Assignees
Labels
SearchService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.