Open t-bzhan opened 2 years ago
route to CXP team
@t-bzhan I don't think you can remove ACL configuration using update command. You may need to use az cosmosdb network-rule remove to remove any existing network rules.
@SaurabhSharma-MSFT , az cosmosdb network-rule
remove does not support removing multiple rules. It is not very convenient to remove the rules one by one if we have a lot of rules. I am wondering whether we could handle the empty input like for "--ip-range-filter", it support to input an empty string to remove all existing IP addresses as mentioned in https://github.com/Azure/azure-cli/pull/15276
@t-bzhan ok, got it. I am looking into it and update you on my findings.
Describe the bug
az cosmosdb update
seems to not able to remove all the virtual network rules.Command Name
az cosmosdb update
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az cosmosdb update -n nwisolation-demo -g bo-private --enable-public-network true --enable-virtual-network false --virtual-network-rules "" --debug
Expected Behavior
The virtual network rules should be removed.
Environment Summary
Additional Context
Debug outout
I also tried
az cosmosdb update -n nwisolation-demo -g bo-private --enable-public-network true --enable-virtual-network false --debug
It fails with another error: