az acr network-rule add tries to apply all rules
See original GitHub issue
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug When running "az acr network-rule add " to create a network rule for a subnet , it appears to attempt to re-apply all existing rules as well as the one you are adding. This results in an error if the user running this does not have permissions on the vnets that the existing rules apply to.
To Reproduce Create a subnet based network rule on an ACR repo, using an account that does not have permissions on that vNet try and add another rule
Expected behavior Only the new rule is added, existing rules are left alone
Environment summary Azure CLI running on PowerShell Core
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
az acr network-rule
Add a rule to allow access for a subnet in a different subscription or resource group. Azure CLI Copy. Try It.
Read more >Protecting your Azure Container Registry by denying all ...
First, I'm getting my ACR to see what current configurations I have for my network rules: az acr network-rule list -n acrdemomagic. Output:...
Read more >Generating network rules on Azure Container Registry with ...
This entry will focus on some of the challenges I faced trying to generate the list of network rules from an input list...
Read more >Azure Container Registry (ACR) virtual network and firewall ...
Need a private registry not exposed to the internet, but still want PaaS? Try ACR VNet & firewall rules to lock down your...
Read more >private_endpoint between two resource group services
Please try running 'az login' again to refresh permissions. ... we have to allow selected public access #network rule set can be added...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yugangw-msft any update for this issue? "when running “az acr network-rule add " to create a network rule for a subnet , it appears to attempt to re-apply all existing rules as well as the one you are adding.” we encountered the same issue here, do we plan a fix or workaround?
Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!