(在
PS C:\Windows\system32>
提示符下运行):
$msiPath = $([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest "https://aka.ms/AzEFLOWMSI_1_4_LTS_X64" -OutFile $msiPath
$msiPath = $([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest "https://aka.ms/AzEFLOWMSI_1_4_LTS_ARM64" -OutFile $msiPath
Start-Process -Wait msiexec -ArgumentList "/i","$([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))","/qn"
Deploy-Eflow
Deploy-Eflow : The term 'Deploy-Eflow' is not recognized as the name of a cmdlet, function, script file, or executable program. Check if you spelled the name correctly, or if you included a path, check that that path is correct and try again. En línea: 1 Carácter: 1 + Deploy-Eflow + ~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Deploy-Eflow:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
欢迎来到社区。约瑟夫的反馈是正确的。您不需要执行两组命令。声明“运行以下每个命令以在 Windows 上下载适用于 Linux 的 IoT Edge”的文档声明具有误导性。利用页面底部的反馈部分并将此反馈报告给团队以更正此问题。
由于您在 Windows 机器上工作,您需要为处理器
$msipath
设置 X64/AMD64
。本节参考与 Windows 机器兼容的 Azure Eflow 端点https://aka.ms/AzEFLOWMSI_1_4_LTS_X64
。
请注意,在您设置此参数并执行命令Start-Process -Wait msiexec -ArgumentList "/i","$([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))","/qn","INSTALLDIR=D:\EFLOW", "VHDXDIR=D:\EFLOW-VHDX"
后,您会发现Azure IoT Edge LTS
已安装在您的Windows机器上。
安装完成后,您可以毫无问题地运行
Deply-Eflow
命令。请参考下图。