Skip to content

Conversation

@adewaleo
Copy link
Contributor

@adewaleo adewaleo commented Jan 14, 2021

Description

This PR adds the option --allow-trusted-services to az acr create and az acr update. By default ACR allows trusted azure services to access network restricted registries.

Testing Guide

az acr create -h 
az acr update -h
azdev test test_acr_with_public_network_access

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.

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.")
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

@adewaleo adewaleo Jan 14, 2021

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)

@fengzhou-msft fengzhou-msft merged commit 2cc0913 into Azure:dev Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants