About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
windows_first
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation is heavily biased towards Windows, providing only PowerShell commands and Windows-specific tools (such as Hyper-V, Windows DHCP Server, and Windows networking cmdlets) for creating a virtual switch for Azure IoT Edge for Linux on Windows. There are no Linux or cross-platform examples, and the instructions assume the user is operating entirely within a Windows environment. Linux alternatives or equivalent commands are not mentioned or referenced.
Recommendations:
- Add a section or references for how to create and configure virtual switches, NAT, and DHCP on Linux hosts (e.g., using iproute2, dnsmasq, or NetworkManager).
- Include Linux command-line examples alongside PowerShell commands where applicable, or clarify that the process is only supported on Windows if that is the case.
- Mention and link to Linux-native virtualization solutions (such as KVM, libvirt, or VirtualBox) and how to achieve similar networking setups for IoT Edge for Linux scenarios.
- Clearly state in the prerequisites and introduction if the process is only intended for Windows users, and provide guidance or links for Linux users.
- Consider providing a comparison table of Windows and Linux tools/commands for each step, to help users translate the instructions to their platform.
Create pull request
Flagged Code Snippets
New-VMSwitch -Name "{switchName}" -SwitchType {switchType}
(Get-NetAdapter -Name "{switchName}").ifIndex
New-NetIPAddress -IPAddress {gatewayIp} -PrefixLength 24 -InterfaceIndex {interfaceIndex}
New-NetNat -Name "{switchName}" -InternalIPInterfaceAddressPrefix "{natIp}/24"
Get-WindowsFeature -Name 'DHCP'
Install-WindowsFeature -Name 'DHCP' -IncludeManagementTools
netsh dhcp add securitygroups
Restart-Service dhcpserver
Add-DhcpServerV4Scope -Name "AzureIoTEdgeScope" -StartRange {startIp} -EndRange {endIp} -SubnetMask 255.255.255.0 -State Active
Set-DhcpServerV4OptionValue -ScopeID {startIp} -Router {gatewayIp}
Restart-service dhcpserver