diff --git a/src/automation/HISTORY.rst b/src/automation/HISTORY.rst index 5c5dc86c2c8..8c2c94245ed 100644 --- a/src/automation/HISTORY.rst +++ b/src/automation/HISTORY.rst @@ -10,4 +10,5 @@ Release History 0.1.2 ++++++ * Added Hybrid Runbook Worker Group and Hybrid Runbook Workers related commands. +* Added Hybrid Runbook worker move command. diff --git a/src/automation/README.md b/src/automation/README.md index 25eb3b8f437..fce2d0062b3 100644 --- a/src/automation/README.md +++ b/src/automation/README.md @@ -169,6 +169,7 @@ az automation hrwg hrw move \ --automation-account-name accountName \ --resource-group groupName \ --hybrid-runbook-worker-group-name hybridRunbookWorkerGroupName \ + --target-hybrid-runbook-worker-group-name targetHybridWorkerGroupName \ --name hybridRunbookWorkerName ``` diff --git a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py index 6ace97a57ff..1d8c1abd401 100644 --- a/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py +++ b/src/automation/azext_automation/aaz/latest/automation/hrwg/hrw/_move.py @@ -51,6 +51,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The hybrid runbook worker group name", required=True, ) + _args_schema.target_hybrid_runbook_worker_group_name = AAZStrArg( + options=["--target-hybrid-runbook-worker-group-name"], + help="The target hybrid worker group name", + required=True, + ) _args_schema.hybrid_runbook_worker_id = AAZStrArg( options=["--hybrid-runbook-worker-id"], help="The hybrid runbook worker id", @@ -142,7 +147,7 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _builder.set_prop("hybridRunbookWorkerGroupName", AAZStrType, ".hybrid_runbook_worker_group_name") + _builder.set_prop("hybridRunbookWorkerGroupName", AAZStrType, ".target_hybrid_runbook_worker_group_name") return self.serialize_content(_content_value) diff --git a/src/automation/linter_exclusions.yml b/src/automation/linter_exclusions.yml index 17824dc0ac8..7847d480327 100644 --- a/src/automation/linter_exclusions.yml +++ b/src/automation/linter_exclusions.yml @@ -133,6 +133,9 @@ automation hrwg hrw move: hybrid_runbook_worker_id: rule_exclusions: - option_length_too_long + target_hybrid_runbook_worker_group_name: + rule_exclusions: + - option_length_too_long automation hrwg hrw show: parameters: automation_account_name: