Azure / Azure/azure-cli

Cosmos DB --network-acl-bypass AzureServices doesn't work

Open
#28,184 3 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign bug CosmosDB customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Running az cosmosdb update --network-acl-bypass AzureServices does not turn the Cosmos DB network settings flag on that accepts connections from within public Azure datacenters. If the flag is already set, it is removed after the command.

### Related command

az cosmosdb update

### Errors

No error, just didn't produce the expected outcome in Cosmos DB.

### Issue script & Debug output

Not available for now. Will submit later if needed.

### Expected behavior

The Cosmos DB network setting "Accept connections from within public Azure datacenters" is enabled.

### Environment Summary

azure-cli 2.56.0.
Cosmos DB has public network access enabled for selected networks. The selected networks include both a VNET subnet and IP addresses.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.