Skip to content

Commit 3cd5fb7

Browse files
committed
[ACR] az acr create/update, az acr task create/update, az acr build/run: Remove preview flag for ABAC commands
1 parent 8d0c503 commit 3cd5fb7

File tree

1 file changed

+6
-6
lines changed
  • src/azure-cli/azure/cli/command_modules/acr

1 file changed

+6
-6
lines changed

src/azure-cli/azure/cli/command_modules/acr/_params.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements
117117

118118
for scope in ['acr create', 'acr update']:
119119
with self.argument_context(scope, arg_group="Permissions and Role Assignment") as c:
120-
c.argument("role_assignment_mode", is_preview=True, arg_type=get_enum_type(AbacRoleAssignmentMode), help="Role assignment mode of the registry. For more information on this feature, see https://aka.ms/acr/auth/abac. The Default is rbac.")
120+
c.argument("role_assignment_mode", arg_type=get_enum_type(AbacRoleAssignmentMode), help="Role assignment mode of the registry. For more information on this feature, see https://aka.ms/acr/auth/abac. The Default is rbac.")
121121

122122
with self.argument_context('acr create', arg_group="Customer managed key") as c:
123123
c.argument('identity', help="Use assigned managed identity resource id or name if in the same resource group")
@@ -315,7 +315,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements
315315
c.argument('set_secret', help="Secret value in '--set name[=value]' format. Multiples supported by passing --set multiple times.", action='append', validator=validate_set_secret)
316316
c.argument('agent_pool_name', options_list=['--agent-pool'], help='The name of the agent pool.', is_preview=True)
317317
c.argument('log_template', options_list=['--log-template'], help="The repository and tag template for run log artifact using the format: 'log/repo:tag' (e.g., 'acr/logs:{{.Run.ID}}'). Only applicable to CMK enabled registry.", is_preview=True)
318-
c.argument('source_acr_auth_id', is_preview=True, arg_type=get_enum_type(["[caller]", "none"]), help="Assign the identity used for source registry login. Use '[caller]' for caller identity.")
318+
c.argument('source_acr_auth_id', arg_type=get_enum_type(["[caller]", "none"]), help="Assign the identity used for source registry login. Use '[caller]' for caller identity.")
319319

320320
with self.argument_context('acr pack build') as c:
321321
c.argument('registry_name', options_list=['--registry', '-r'])
@@ -335,7 +335,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements
335335
c.argument('secret_arg', options_list=['--secret-build-arg'], help="Secret build argument in '--secret-build-arg name[=value]' format. Multiples are supported by passing '--secret-build-arg name[=value]' multiple times. This parameter value is not surfaced to the ACR team and is more suitable for sensitive information.", action='append', validator=validate_secret_arg)
336336
c.argument('agent_pool_name', options_list=['--agent-pool'], help='The name of the agent pool.', is_preview=True)
337337
c.argument('log_template', options_list=['--log-template'], help="The repository and tag template for run log artifact using the format: 'log/repo:tag' (e.g., 'acr/logs:{{.Run.ID}}'). Only applicable to CMK enabled registry.", is_preview=True)
338-
c.argument('source_acr_auth_id', is_preview=True, arg_type=get_enum_type(["[caller]", "none"]), help="Assign the identity used for source registry login. Use '[caller]' for caller identity.")
338+
c.argument('source_acr_auth_id', arg_type=get_enum_type(["[caller]", "none"]), help="Assign the identity used for source registry login. Use '[caller]' for caller identity.")
339339

340340
with self.argument_context('acr task') as c:
341341
c.argument('registry_name', options_list=['--registry', '-r'])
@@ -385,10 +385,10 @@ def load_arguments(self, _): # pylint: disable=too-many-statements
385385

386386
with self.argument_context('acr task create') as c:
387387
c.argument('task_name', completer=None)
388-
c.argument('source_acr_auth_id', is_preview=True, help="Assign the managed identity used for source registry login. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned managed identity.")
388+
c.argument('source_acr_auth_id', help="Assign the managed identity used for source registry login. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned managed identity.")
389389

390390
with self.argument_context('acr task update') as c:
391-
c.argument('source_acr_auth_id', is_preview=True, help="Assign the managed identity used for source registry login. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned managed identity.")
391+
c.argument('source_acr_auth_id', help="Assign the managed identity used for source registry login. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned managed identity.")
392392

393393
with self.argument_context('acr task identity') as c:
394394
c.argument('identities', options_list=['--identities'], nargs='*', help="Assign managed identities to the task. Use '[system]' to refer to the system-assigned identity or a resource ID to refer to a user-assigned identity.")
@@ -454,7 +454,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements
454454
c.argument('ignore_errors', options_list=['--ignore-errors'], help='Provide all health checks, even if errors are found', action='store_true', required=False)
455455
c.argument('vnet', options_list=['--vnet'],
456456
help="Virtual network ID so to run this command inside a VNET to verify the DNS routing to private endpoints", required=False)
457-
c.argument('repository', is_preview=True, help="The name of the repository")
457+
c.argument('repository', help="The name of the repository")
458458

459459
with self.argument_context('acr scope-map') as c:
460460
c.argument('registry_name', options_list=['--registry', '-r'])

0 commit comments

Comments
 (0)