question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lissffcommented, Sep 23, 2020

@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?

0reactions
msftbot[bot]commented, Feb 22, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found