-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[ACR] add --allow-trusted-services support #16530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| help='Default action to apply when no rule matches. Only applicable to Premium SKU.') | ||
| c.argument('public_network_enabled', get_three_state_flag(), help="Allow public network access for the container registry. The Default is allowed") | ||
| c.argument('public_network_enabled', get_three_state_flag(), help="Allow public network access for the container registry. The Default is to allow public access.") | ||
| c.argument('allow_trusted_services', get_three_state_flag(), is_preview=True, help="Allow trusted Azure Services to access network restricted registries. For more information, please visit https://aka.ms/acr/trusted-services. The default is to allow.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help message says The default is to allow.
For acr update, there should be no default values for the options in update commands.
For acr create, I don't see the logic to default to allow. Is it handled on service side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is the default on the service side. Should I remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can keep The default is to allow for acr create, but should remove it for acr update. If allow_trusted_services is none in update command, then the setting will not be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this makes sense. I see what you mean. Thanks for the clarification (I used same help text for both)
Description
This PR adds the option
--allow-trusted-servicestoaz acr createandaz acr update. By default ACR allows trusted azure services to access network restricted registries.Testing Guide
History Notes
[ACR] az acr create / update: add --allow-trusted-services. This parameter determines whether trusted azure services are allowed to access network restricted registries. The default is to allow.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.