microsoft/vscode-azure-iot-edge

IOT Edge Deployments to Azure can not be viewed in the Azure portal

shaneholder opened this issue · 2 comments

  • VSCode Version: 1.60.1
  • OS Version: Windows 10
  • Extension Version: v0.3.0

Steps to Reproduce:

  1. Deploy a project to Azure.
  2. View device on Azure portal and see
 IoT Edge configuration uses an unsupported schema and cannot be displayed on the device Runtime Response

Also when viewing the device details there's a big red box with the following error.

Unable to retrieve IoT Edge informationIoT Edge configuration uses an unsupported schema and cannot be displayed.

I believe that the deployment.template.json has an incorrect version under $edgeHub, I think it should be 1.1 and not 1.2 however changing it to 1.2 does give a schema validation error not sure what's up with that.

Changing to:

"$edgeHub": {
      "properties.desired": {
        "schemaVersion": "1.1",
        "routes": {
          "SampleModuleToIoTHub": "FROM /messages/modules/SampleModule/outputs/* INTO $upstream",
          "sensorToSampleModule": "FROM /messages/modules/SimulatedTemperatureSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/SampleModule/inputs/input1\")"
        },
        "storeAndForwardConfiguration": {
          "timeToLiveSecs": 7200
        }
      }
    }

does result in the error going away in the Azure portal and being able to view the modules.

@shaneholder thanks for filing this issue. You are correct in your analysis that the Azure Portal does not yet support edgeHub schemaVersion 1.2. As a workaround, please roll back the schemaVersion from 1.2 to 1.1 as you indicated in the json snippet in your post. We will update the default template to do the same soon.

@shaneholder this is now resolved in version 1.25.0 extension.