Register UnifiedAgentConfiguration Azure Migrate

huangapple go评论128阅读模式
英文:

Register UnifiedAgentConfiguration Azure Migrate

问题

我正在尝试按照这个指南远程安装Azure Migrate的Unified Agent:https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-physical-virtual-machines#install-the-mobility-service

但运行以下命令:

UnifiedAgentConfigurator.exe  /CSEndPoint <replication appliance IP address> /PassphraseFilePath <Passphrase File Path>

结果为:

开始静默配置
运行VmWare的配置
开始VmWare平台的注册
用于注册的CS端点 - 10.10.1.7
用于注册的通行短语文件 - c:\Temp\passphrase.txt
准备进行注册
提供了无效的配置服务器IP或连接通行短语

我的passphrase.txt文件只包含通行短语字符串。

当以交互方式运行UnifiedAgentConfigurator.exe并添加相同的IP和通行短语时,配置成功完成,如预期。

通行短语文件是否应以某种未记录的方式格式化,或者文本文件的编码是否重要?

英文:

I am trying to install Unified Agent for Azure Migrate remotely following this guide: https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-physical-virtual-machines#install-the-mobility-service

But running this command:

UnifiedAgentConfigurator.exe  /CSEndPoint <replication appliance IP address> /PassphraseFilePath <Passphrase File Path>

results in

Starting silent configuration.
Running configuration for VmWare
Starting registration for VmWare platform
CS endpoint for registration - 10.10.1.7
Passphrase file for registration - c:\Temp\passphrase.txt
Preparing for registration
Invalid configuration server IP or connection passphrase provided.

My passphrase.txt file just contains the passphrase strng.

When running UnifiedAgentConfigurator.exe interactively and adding the same IP and passphrase, configuration succeeds as expected.

Is the passphrase file supposed to be formated in some undocumented way or is encoding of the text tile important?

答案1

得分: 1

'Encoding did it.'

'MyPassPhrase' | out-file C:\Temp\passphrase.txt -NoNewLine -encoding default

<details>
<summary>英文:</summary>

Encoding did it.

```powershell
&#39;MyPassPhrase&#39; | out-file C:\Temp\passphrase.txt -NoNewLine -encoding default

</details>



huangapple
  • 本文由 发表于 2020年1月3日 20:27:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/59578651.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定