Provision-EflowVm fails with exception at Line 2415. No further info on error

Sandeep Manikonda 0 Reputation points
2025-07-08T04:18:51.61+00:00

Setup:

OS: Windows 10 Pro X64

Hyper-V: Enabled,

Installation as per the quickstart guide at the link: https://learn.microsoft.com/en-us/azure/iot-edge/quickstart

Authentication: Symmetric Keys

Execution Policy set to AllSigned on 'Local machine' scope

Host config from Get-EflowHostConfiguration | format-list

  • FreePhysicalMemoryInMB    : 9660

NumberOfLogicalProcessors : 8

  • DiskInfo : {@{Drive=C:; FreeSizeInGB=46}, @{Drive=D:; FreeSizeInGB=344}, @{Drive=E:; FreeSizeInGB=0}}
  • GpuInfo                   : <NIL>

Installation folder selected to Default: C:/Program Files/Azure IoT Edge

Deploy-Eflow -acceptEula Yes -acceptOptionalTelemetry Yes -cpuCount 1 -memoryInMB 2048 -vmDataSize 10

Provision-EflowVm output:

Setting provisioning information for provisioning type: ManualConnectionString

OK

Exception caught!!!

  • Failed to provision at line 2415

Failed to provision

Further, on Connect-EflowVm, sudo iotedge list returns:

A module runtime error occurred

    caused by: A module runtime error occurred

    caused by: timed out
```sudo systemctl restart iotedge returns:

Failed to restart iotedge.service: Unit iotedge.service not found.

The above error most likely would mean a corrupted install, user proceeded with an Uninstall via Control Panel -> Add/remove Programs, restart device & fresh re-install including downloading msi.

The same issue still persists.

The iotedge-check logs  

1. host time is close to reference time - timedatectl status reveals NTP service active & system clock synchronized 

2. could not load cert with ID "aziot-edged-trust-bundle" - Not relavant to symmetric key auth

3. configuration has correct URIs for daemon mgmt endpoint - error: sudo chown -R iotedge:iotedge /var/run/iotedge/mgmt.sock , & restart iotedge runtime, but does not impact the outcome.

4. Container on the IoT Edge module network can connect to upstream AMQP port - why does it try to connect over AMQP? Should it not be 8883?
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.