-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(acr): add --endpoint-protocol parameter to az acr update #33089
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -795,6 +795,18 @@ def test_acr_with_anonymous_pull(self, resource_group, resource_group_location): | |
| self.cmd('acr update --name {registry_name} --resource-group {rg} --anonymous-pull-enabled false', | ||
| checks=[self.check('anonymousPullEnabled', False)]) | ||
|
|
||
| @ResourceGroupPreparer() | ||
| def test_acr_with_dual_stack_endpoints(self, resource_group, resource_group_location): | ||
| self.kwargs.update({ | ||
| 'registry_name': self.create_random_name('testreg', 20) | ||
| }) | ||
| self.cmd('acr create --name {registry_name} --resource-group {rg} --sku premium -l eastus', | ||
| checks=[self.check('endpointProtocol', 'IPv4')]) | ||
| self.cmd('acr update --name {registry_name} --resource-group {rg} --endpoint-protocol IPv4AndIPv6', | ||
| checks=[self.check('endpointProtocol', 'IPv4AndIPv6')]) | ||
| self.cmd('acr update --name {registry_name} --resource-group {rg} --endpoint-protocol IPv4', | ||
| checks=[self.check('endpointProtocol', 'IPv4')]) | ||
|
Comment on lines
+798
to
+808
|
||
|
|
||
| @ResourceGroupPreparer() | ||
| @live_only() | ||
| def test_acr_create_invalid_name(self, resource_group): | ||
|
|
||
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.
--endpoint-protocolrelies on a preview API version per the PR description; consider marking this argument asis_preview=True(and optionally clarifying preview status in the help text) to keep CLI surface aligned with other preview ACR arguments.