I want Azure Sphere Development kit connect to IoT Hub( Azure China) via DPS(Azure China),got error AZURE_SPHERE_PROV_RESULT_PROV_DEVICE_ERROR RRS feed

  • Question

  • I am trying connect Azure sphere connect to Azure IoT Hub via DPS by using demo https://codeload.github.com/Azure/azure-sphere-samples/zip/master

    I update the app_manifest.json file, all information should be right, the URL in "AllowedConnections" was Azure China endpoint. but I got error code AZURE_SPHERE_PROV_RESULT_PROV_DEVICE_ERROR.

    But this worked fine when I change to Global Azure. 

    I think Azure Sphere should connect to Azure China, since I have add ca and verify it on DPS, right?

      "SchemaVersion": 1,
      "Name": "AzureIoT",
      "ComponentId": "819255ff-8640-41fd-aea7-f85d34c491d5",
      "EntryPoint": "/bin/app",
      "CmdArgs": [ "0cn0000EBBC" ],
      "Capabilities": {
        "AllowedConnections": [ "global.azure-devices-provisioning.cn", "seanyuspheretestiothub.azure-devices.cn" ],
        "Gpio": [ "$SAMPLE_BUTTON_1", "$SAMPLE_BUTTON_2", "$SAMPLE_LED" ],
        "DeviceAuthentication": "ca3e2ef8-2407-45bc-93e5-95775bf2f629"
      "ApplicationType": "Default"

    Monday, March 23, 2020 2:29 AM

All replies

  • Hello Shuzhen,

    I don't know about any restrictions to connect you azure sphere device to Azure China endpoint. Let me check back with Azure Sphere team.

    1) Can you provision non-azuresphere device to your DPS?


    Monday, March 23, 2020 5:39 PM
  • I had similiar error as well. Followed the sample Azure IoT instructions on github but could not get the SaS key to work, for both IoT Hub and Iot Central. I changed to cert and problem resolved.
    Tuesday, March 24, 2020 5:46 AM
  • Hello,

    Both tutorials "Set up Azure IoT Central to work with Azure Sphere" and "Set up an Azure IoT Hub for Azure Sphere" use X509 Certificate Attestation Type from DPS.

    Shuzhen Yu can you please confirm that you are using X509 and follow the tutorial mentioned above?

    Thank you.

    Wednesday, March 25, 2020 11:38 AM
  • Hello Shuzhen Yu ,

    Sorry for the long wait. Here's the official statement as of today:

    Development kits are only allowed in China for prototyping purposes for products to be released outside of China.  The Azure Sphere license does not allow for product sales inside China.  As such, the Azure Sphere Security Service is not currently available on the China-dedicated cloud. If you are prototyping a product for use outside of China, please use Azure Global for your DPS, IoT Hub and Azure Sphere Security Service.

    In case the information in this post is helpful , please feel free to mark this response as answer so that it can help others searching for similar questions.

    Tuesday, May 19, 2020 1:56 PM