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 focused on Windows, providing only Windows-specific instructions and PowerShell commands for creating a virtual switch, NAT, and DHCP server. There are no Linux equivalents or cross-platform guidance, despite the topic being related to 'IoT Edge for Linux on Windows'. All tooling and examples are Windows/PowerShell-centric, and Linux networking tools or commands are not mentioned at all.
Recommendations:
- Add a section or parallel instructions for performing similar networking setup (virtual switch, NAT, DHCP) on Linux hosts using common Linux tools (e.g., ip, brctl, dnsmasq, systemd-networkd).
- Clarify in the introduction that the instructions are Windows-only, and provide links or references for Linux users if applicable.
- Where possible, provide conceptual parity by describing what each step accomplishes in platform-agnostic terms before showing Windows-specific commands.
- If the product is only supported on Windows hosts, explicitly state this limitation and explain why Linux host instructions are not included.
- Include a comparison table or FAQ addressing differences between Windows and Linux networking setup for IoT Edge scenarios.
Create pull request
Flagged Code Snippets
(Get-NetAdapter -Name "{switchName}").ifIndex
New-VMSwitch -Name "{switchName}" -SwitchType {switchType}
Add-DhcpServerV4Scope -Name "AzureIoTEdgeScope" -StartRange {startIp} -EndRange {endIp} -SubnetMask 255.255.255.0 -State Active
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
Set-DhcpServerV4OptionValue -ScopeID {startIp} -Router {gatewayIp}
Restart-service dhcpserver