PowerShell for Diagnostics - Azure/iotedge-eflow GitHub Wiki

To get the complete list of EFLOW PowerShell functions, please visit PowerShell functions for Azure IoT Edge for Linux on Windows.


Windows Operating System SKU

Description Command Notes
Get Operating System SKU (Get-WmiObject Win32_OperatingSystem).OperatingSystemSKU Supported SKU IDs: 4, 7, 8, 12, 13, 27, 37, 39, 40, 48, 49, 52, 53, 69, 70, 72, 79, 80, 84, 112, 114, 121, 122, 125, 126, 127, 128, 129, 130, 138, 139, 145, 161, 162, 164, 165, 171, 172, 188, 191

Hyper-V

Description Command Notes
​Verify Hyper-V is installed ​​Get-WindowsOptionalFeature -Online -FeatureName *Hyper-V* Verify the following packages reflect State = Enabled - Microsoft-Hyper-V, Microsoft-Hyper-V-Management-PowerShell, Microsoft-Hyper-V-Hypervisor

Windows

Description Command Notes
​Check the status of WSSDAgent Service Get-Service wssdagent -
List of the Execution Policy list Get-ExecutionPolicy -List For EFLOW installation, the execution policy of LocalMachine should be AllSigned

EFLOW PSM & Logs

Description Command Notes
List of all the public commands for Azure EFLOW Get-Command -module AzureEFLOW Check public docs: PowerShell functions for Azure IoT Edge for Linux on Windows
Get EFLOW logs for more troubleshooting information Get-EflowLogs Check public docs: Get-EflowLogs - PowerShell functions for Azure IoT Edge for Linux on Windows

VM Management

Description Command Notes
List of all the HCS VM running Hcsdiag list To check the status of the EFLOW VM, check for the wssdagent line

Networking

Description Command Notes
​Get Virtual Network Switches ​Get-VMSwitch -
List of all the HNS networks Hnsdiag list networks ​ To check the EFLOW VM network, you’ll need the network ID
​Get Virtual Machine IP Address ​Get-EflowVmAddr -
​Get information about the EFLOW VM's switch (Get-EflowVmName) + "Interface" | Get-EflowNetworkInterface | Format-List -
Ping IP from Windows host ​ping www.microsoft.com You can change the URL with any other address or IP
Ping IP from EFLOW VM ​Invoke-EflowVmCommand “ping -c 1 www.microsoft.com” You can change the URL with any other address or IP

How can I configure EFLOW VM's network?

The EFLOW VM uses CBL-Mariner, which includes systemd-networkd for networking-related tasks. For more information about networking, visit sytemd-networkd page

⚠️ **GitHub.com Fallback** ⚠️