英文:
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
'MyPassPhrase' | out-file C:\Temp\passphrase.txt -NoNewLine -encoding default
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论