- C# modules created from Microsoft.Azure.IoT.Edge.Module template before version 1.2.0 (inclusive).
- C# Edge Function modules created from Microsoft.Azure.IoT.Edge.Function before version 1.1.0 (inclusive).
Install Azure Iot Edge (version 0.2.0) Visual Studio Code Extension.
- Open the legacy module project folder in VSCode.
- Right click the
*.csproj
file and choose "Convert to IoT Edge Module". - Fill in the module docker image repository name in the input box.
- A new file "module.json" will be created in the project folder. And Dockerfiles for different platform are also created in the same folder.
- Open the legacy Function module project folder in VSCode.
- Right click the "host.json" file and choose "Convert to IoT EdgeModule".
- Fill in the module docker image repository name in the input box.
- A new file "module.json" will be created in the project folder. And Dockerfiles for different platform are also created in the same folder.
Command "Edge: Build IoT Edge Module Image" and command "Edge: Build and Push IoT Edge Module Image" can be used to build the module with the new structure.