1414
1515def get_discovered_server (cmd ,
1616 project_name ,
17- resource_group_name ,
17+ resource_group ,
1818 display_name = None ,
1919 source_machine_type = None ,
2020 subscription_id = None ,
@@ -26,7 +26,7 @@ def get_discovered_server(cmd,
2626 Args:
2727 cmd: The CLI command context
2828 project_name (str): Specifies the migrate project name (required)
29- resource_group_name (str): Specifies the resource group name
29+ resource_group (str): Specifies the resource group name
3030 (required)
3131 display_name (str, optional): Specifies the source machine
3232 display name
@@ -56,7 +56,7 @@ def get_discovered_server(cmd,
5656
5757 # Validate required parameters
5858 validate_get_discovered_server_params (
59- project_name , resource_group_name , source_machine_type )
59+ project_name , resource_group , source_machine_type )
6060
6161 # Use current subscription if not provided
6262 if not subscription_id :
@@ -66,7 +66,7 @@ def get_discovered_server(cmd,
6666
6767 # Build the base URI
6868 base_uri = build_base_uri (
69- subscription_id , resource_group_name , project_name ,
69+ subscription_id , resource_group , project_name ,
7070 appliance_name , name , source_machine_type )
7171
7272 # Use the correct API version
@@ -105,7 +105,7 @@ def get_discovered_server(cmd,
105105
106106
107107def initialize_replication_infrastructure (cmd ,
108- resource_group_name ,
108+ resource_group ,
109109 project_name ,
110110 source_appliance_name ,
111111 target_appliance_name ,
@@ -120,7 +120,7 @@ def initialize_replication_infrastructure(cmd,
120120
121121 Args:
122122 cmd: The CLI command context
123- resource_group_name (str): Specifies the Resource Group of the
123+ resource_group (str): Specifies the Resource Group of the
124124 Azure Migrate Project (required)
125125 project_name (str): Specifies the name of the Azure Migrate
126126 project to be used for server migration (required)
@@ -152,7 +152,7 @@ def initialize_replication_infrastructure(cmd,
152152 )
153153
154154 # Validate required parameters
155- validate_required_parameters (resource_group_name ,
155+ validate_required_parameters (resource_group ,
156156 project_name ,
157157 source_appliance_name ,
158158 target_appliance_name )
@@ -165,7 +165,7 @@ def initialize_replication_infrastructure(cmd,
165165
166166 # Execute the complete setup workflow
167167 return execute_replication_infrastructure_setup (
168- cmd , subscription_id , resource_group_name , project_name ,
168+ cmd , subscription_id , resource_group , project_name ,
169169 source_appliance_name , target_appliance_name ,
170170 cache_storage_account_id , pass_thru
171171 )
@@ -187,7 +187,7 @@ def new_local_server_replication(cmd,
187187 machine_id = None ,
188188 machine_index = None ,
189189 project_name = None ,
190- resource_group_name = None ,
190+ resource_group = None ,
191191 target_vm_cpu_core = None ,
192192 target_virtual_switch_id = None ,
193193 target_test_virtual_switch_id = None ,
@@ -224,7 +224,7 @@ def new_local_server_replication(cmd,
224224 machine_id not provided)
225225 project_name (str, optional): Specifies the migrate project name
226226 (required when using machine_index)
227- resource_group_name (str, optional): Specifies the resource group
227+ resource_group (str, optional): Specifies the resource group
228228 name (required when using machine_index)
229229 target_vm_cpu_core (int, optional): Specifies the number of CPU
230230 cores
@@ -283,7 +283,7 @@ def new_local_server_replication(cmd,
283283 machine_id ,
284284 machine_index ,
285285 project_name ,
286- resource_group_name ,
286+ resource_group ,
287287 source_appliance_name ,
288288 subscription_id )
289289
@@ -461,7 +461,7 @@ def new_local_server_replication(cmd,
461461
462462def get_local_replication_job (cmd ,
463463 job_id = None ,
464- resource_group_name = None ,
464+ resource_group = None ,
465465 project_name = None ,
466466 job_name = None ,
467467 subscription_id = None ):
@@ -475,7 +475,7 @@ def get_local_replication_job(cmd,
475475 cmd: The CLI command context
476476 job_id (str, optional): Specifies the job ARM ID for which
477477 the details need to be retrieved
478- resource_group_name (str, optional): The name of the resource
478+ resource_group (str, optional): The name of the resource
479479 group where the recovery services vault is present
480480 project_name (str, optional): The name of the migrate project
481481 job_name (str, optional): Job identifier/name
@@ -512,13 +512,14 @@ def get_local_replication_job(cmd,
512512 # Mode: Get job by ID
513513 vault_name , resource_group_name , job_name = \
514514 parse_job_id (job_id )
515- elif resource_group_name and project_name :
515+ elif resource_group and project_name :
516516 # Mode: Get job by name or list jobs
517517 vault_name = get_vault_name_from_project (
518- cmd , resource_group_name , project_name , subscription_id )
518+ cmd , resource_group , project_name , subscription_id )
519+ resource_group_name = resource_group
519520 else :
520521 raise CLIError (
521- "Either --job-id or both --resource-group-name and "
522+ "Either --job-id or both --resource-group and "
522523 "--project-name must be provided." )
523524
524525 # Get a specific job or list all jobs
0 commit comments