|
11 | 11 | from azure.cli.core.commands import LongRunningOperation |
12 | 12 | from azure.cli.core.commands.client_factory import get_subscription_id |
13 | 13 | from azure.cli.core.util import user_confirmation |
14 | | -from ._client_factory import cf_acr_tokens, cf_acr_scope_maps |
| 14 | +from ._client_factory import cf_acr_tokens, cf_acr_scope_maps, cf_acr_registries |
15 | 15 | from ._utils import ( |
16 | 16 | build_token_id, |
17 | 17 | create_default_scope_map, |
|
21 | 21 | parse_scope_map_actions, |
22 | 22 | validate_managed_registry |
23 | 23 | ) |
24 | | -from .custom import acr_update_custom |
| 24 | +from .custom import acr_update_custom, acr_update_set |
25 | 25 |
|
26 | 26 |
|
27 | 27 | class ConnectedRegistryModes(Enum): |
@@ -76,7 +76,9 @@ def acr_connected_registry_create(cmd, # pylint: disable=too-many-locals, too-m |
76 | 76 | user_confirmation("Dedicated data endpoints must be enabled to use connected-registry. Enabling might " + |
77 | 77 | "impact your firewall rules. Are you sure you want to enable it for '{}' registry?".format( |
78 | 78 | registry_name), yes) |
79 | | - acr_update_custom(cmd, registry, resource_group_name, data_endpoint_enabled=True) |
| 79 | + acr_update_custom(cmd, registry, data_endpoint_enabled=True) |
| 80 | + registry_client = cf_acr_registries(cmd.cli_ctx) |
| 81 | + acr_update_set(cmd, registry_client, registry_name, resource_group_name, registry) |
80 | 82 |
|
81 | 83 | from azure.core.exceptions import HttpResponseError as ErrorResponseException |
82 | 84 | parent = None |
|
0 commit comments