There is a command group 'az_iot_hub_state'. This group of commands could 'manage the state of an iot hub'. The group of commands has global parameter '--debug' which means 'Increase logging verbosity to show all debug logs.'. The group of commands has global parameter '--help -h' which means 'Show this help message and exit.'. The group of commands has global parameter '--only-show-errors' which means 'Only show errors, suppressing warnings.'. The group of commands has global parameter '--output -o' which means 'Output format.'. The group of commands has global parameter '--query' which means 'JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.'. The group of commands has global parameter '--subscription' which means 'Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.'. The group of commands has global parameter '--verbose' which means 'Increase logging verbosity. Use --debug for full debug logs.'. This group contains a child command 'az_iot_hub_state_migrate'.The syntax is: az iot hub state migrate [--aspects {arm, configurations, devices}]
                         [--auth-type {key, login}]
                         [--destination-hub]
                         [--destination-hub-login]
                         [--destination-resource-group]
                         [--og]
                         [--oh]
                         [--ol]
                         [--replace]. The 1th example of the child command would be to use it to 'migrate the supported state of the origin hub to the destination hub', the syntax is: az iot hub state migrate --destination-hub {dest_hub_name} --origin-hub {orig_hub_name}. The 2th example of the child command would be to use it to 'migrate the supported state of the origin hub to the destination hub  overwriting the previous state of the hub  all certificates  configurations  and devices in the destination hub will be deleted before the new state is uploaded', the syntax is: az iot hub state migrate --destination-hub {dest_hub_name} --origin-hub {orig_hub_name} -r. The 3th example of the child command would be to use it to 'migrate only the arm template from the origin hub to the destination hub  note that this will create a new hub if the destination hub does not exist  the origin hub may contain the devices and configurations but those will be ignored', the syntax is: az iot hub state migrate --destination-hub {dest_hub_name} --destination-resource-group {dest_hub_resource_group} --origin-hub {orig_hub_name} --aspects arm. The 4th example of the child command would be to use it to 'migrate only the devices and configurations from the origin hub to the destination hub  note that this will not create a new hub if the destination hub does not exist and the command will fail  the arm template for the origin hub will be ignored', the syntax is: az iot hub state migrate --destination-hub {dest_hub_name} --origin-hub {orig_hub_name} --aspects devices configurations. The parameter '--aspects' is optional. hub aspects (space-separated).. The parameter '--auth-type' is optional. indicates whether the operation should auto-derive a policy key or use the current azure ad session. if the authentication type is login and the resource hostname is provided, resource lookup will be skipped unless needed.you can configure the default using `az configure --defaults iothub-data-auth-type=<auth-type-value>`.. The parameter '--destination-hub --dh' is optional. name of iot hub to which the origin hub state will be copied to.. The parameter '--destination-hub-login --dl' is optional. this command supports an entity connection string with rights to perform action on the destination hub. use to avoid session login via `az login` for this iot hub instance. if both an entity connection string and name are provided the connection string takes priority. required if --destination-hub is not provided.. The parameter '--destination-resource-group --dg' is optional. name of resource group of the iot hub to which the origin hub state will be copied to. if not provided, will use the origin iot hub's resource group.. The parameter '--og --origin-resource-group' is optional. name of resource group of the iot hub which will be copied.. The parameter '--oh --origin-hub' is optional. name of iot hub which will be copied.. The parameter '--ol --origin-hub-login' is optional. this command supports an entity connection string with rights to perform action on the origin hub. use to avoid session login via `az login` for this iot hub instance. if both an entity connection string and name are provided the connection string takes priority. required if --origin-hub is not provided.. The parameter '--replace -r' is optional. if this flag is set, then the command will delete the current devices, configurations, and certificates of the destination hub.. 