diff --git a/src/azure-cli/azure/cli/command_modules/acr/_params.py b/src/azure-cli/azure/cli/command_modules/acr/_params.py index 1977b6f1294..fbbffdf384c 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_params.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_params.py @@ -117,7 +117,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements for scope in ['acr create', 'acr update']: with self.argument_context(scope, arg_group="Permissions and Role Assignment") as c: - 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.") + 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.") with self.argument_context('acr create', arg_group="Customer managed key") as c: 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 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) c.argument('agent_pool_name', options_list=['--agent-pool'], help='The name of the agent pool.', is_preview=True) 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) - 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.") + 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.") with self.argument_context('acr pack build') as c: c.argument('registry_name', options_list=['--registry', '-r']) @@ -335,7 +335,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements 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) c.argument('agent_pool_name', options_list=['--agent-pool'], help='The name of the agent pool.', is_preview=True) 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) - 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.") + 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.") with self.argument_context('acr task') as c: c.argument('registry_name', options_list=['--registry', '-r']) @@ -385,10 +385,10 @@ def load_arguments(self, _): # pylint: disable=too-many-statements with self.argument_context('acr task create') as c: c.argument('task_name', completer=None) - 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.") + 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.") with self.argument_context('acr task update') as c: - 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.") + 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.") with self.argument_context('acr task identity') as c: 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 c.argument('ignore_errors', options_list=['--ignore-errors'], help='Provide all health checks, even if errors are found', action='store_true', required=False) c.argument('vnet', options_list=['--vnet'], help="Virtual network ID so to run this command inside a VNET to verify the DNS routing to private endpoints", required=False) - c.argument('repository', is_preview=True, help="The name of the repository") + c.argument('repository', help="The name of the repository") with self.argument_context('acr scope-map') as c: c.argument('registry_name', options_list=['--registry', '-r'])