Open emulic opened 1 year ago
@emulic thanks for letting us know of this issue. Do you have any pointers to the ssh-keygen known issue you mentioned? What are the suggested workarounds? Also, what terminal are you running this command on? Does command prompt, Git bash and PowerShell all have this same symptom?
@marianan As far as I found, following workarounds might work (I haven't tested):
Description
The approach described in https://github.com/Azure/iotedgedev/blob/main/docs/environment-setup/manual-dev-machine-setup.md is not fully working on windows. The executed command is according to the linked document:
iotedgedev solution init --template csharp
Choosing to install VM to simulate Edge Device (Create a new Virtual Machine with IoTEdge? [y/N]: y
) during the execution, ends up with the following error:The exception comes obviously from the line 574 of azurecli.py:
os.system(f("ssh-keygen -t rsa -b 4096 -C \"iotedgedev-autogenerated\" -f ~/.ssh/{ssh_key_file} -q -N \"\""))
This seems to be known issue of ssh-keygen, where ~ can't be resolved as user profile folder under windows.Expected behavior
The command
iotedgedev solution init --template csharp
is successfully executed until the end and VM with Edge Device simulation is created in Azure.Actual behavior
Execution of the command
iotedgedev solution init --template csharp
fails with the following error, when chosen to create a VM:No VM is created.
Steps to Reproduce
Execute following command on Windows 10:
iotedgedev solution init --template csharp
Executing with Administrator privileges is also not working.Environment
iotedgedev Version: 3.3.7 Python Version: 3.6.8 Pip Version: 21.3.1 Development machine OS Version: Windows 10 Enterprise 22H2 IoT Edge device OS Version: - (this is actually the issue, Edge Device VM is not created)