Hello @28711978,
it seems the config.toml file on your edge device is not configured correctly for DPS usage.
Please first roll back to the version where you used the test connection string.
Once you can confirm it runs as expected, modify the config.toml file again.
If you use DPS with a symmetric key, your configuration will look like this:
[provisioning]
source = "dps"
global_endpoint = "https://global.azure-devices-provisioning.net"
id_scope = "<DPS-ID-SCOPE>"
[provisioning.attestation]
method = "symmetric_key"
registration_id = "<my-device-registration-id>"
symmetric_key = { value = "<Device symmetric key>" } # inline key (base64)
Check the documentation for more variations like provisioning with X.509 certificates or provisioning with TPM.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.