Share via


az migrate local

Note

This reference is part of the migrate extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az migrate local command. Learn more about extensions.

Commands

Name Description Type Status
az migrate local get-discovered-server

Retrieve discovered servers from the Azure Migrate project.

Extension GA
az migrate local replication Extension GA
az migrate local replication init

Initialize Azure Migrate local replication infrastructure.

Extension GA
az migrate local replication new

Create a new replication for an Azure Local server.

Extension GA

az migrate local get-discovered-server

Retrieve discovered servers from the Azure Migrate project.

Args: cmd: The CLI command context project_name (str): Specifies the migrate project name (required) resource_group_name (str): Specifies the resource group name (required) display_name (str, optional): Specifies the source machine display name source_machine_type (str, optional): Specifies the source machine type (VMware, HyperV) subscription_id (str, optional): Specifies the subscription id name (str, optional): Specifies the source machine name (internal name) appliance_name (str, optional): Specifies the appliance name (maps to site) Returns: dict: The discovered server data from the API response Raises: CLIError: If required parameters are missing or the API request fails.

az migrate local get-discovered-server [--appliance-name]
                                       [--display-name]
                                       [--ids]
                                       [--name]
                                       [--project-name]
                                       [--resource-group --resource-group-name]
                                       [--source-machine-type {HyperV, VMware}]
                                       [--subscription]
                                       [--subscription-id]

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--appliance-name

Name of the appliance (site) containing the machines.

--display-name

Display name of the source machine to filter by.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name

Internal name of the specific source machine to retrieve.

--project-name

Name of the Azure Migrate project.

Property Value
Parameter group: Resource Id Arguments
--resource-group --resource-group-name -g

Name of the resource group containing the Azure Migrate project.

Property Value
Parameter group: Resource Id Arguments
--source-machine-type

Type of the source machine.

Property Value
Accepted values: HyperV, VMware
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
--subscription-id

Azure subscription ID. Uses the default subscription if not specified.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False