Hello
I am able to connect a STM32H573I-DK to Azure IoT Central.
Azure IoT Central uses DPS.
In the application configuration file app_azure_iot_config.h, check that DPS is enabled, ID_SCOPE , REGISTRATION_ID, and DEVICE_SYMMETRIC_KEY are configured.
Example:
#define ENABLE_DPS
#ifndef ENABLE_DPS
/* Required when DPS is not used. */
/* These values can be picked from device connection string which is of format : HostName=<host1>;DeviceId=<device1>;SharedAccessKey=<key1>
HOST_NAME is the IoT Hub host name (<host1> in connection string),
DEVICE_ID can be set to <device1>,
DEVICE_SYMMETRIC_KEY can be set to <key1>. */
#ifndef HOST_NAME
#define HOST_NAME ""
#endif /* HOST_NAME */
#ifndef DEVICE_ID
#define DEVICE_ID ""
#endif /* DEVICE_ID */
#else /* !ENABLE_DPS */
/* Required when DPS is used. */
#ifndef ENDPOINT
#define ENDPOINT "global.azure-devices-provisioning.net"
#endif /* ENDPOINT */
#ifndef ID_SCOPE
#define ID_SCOPE "0ne00XXXXXX"
#endif /* ID_SCOPE */
#ifndef REGISTRATION_ID
#define REGISTRATION_ID "STM32H5IoT"
#endif /* REGISTRATION_ID */
#endif /* ENABLE_DPS */
/* Optional SYMMETRIC KEY. */
#ifndef DEVICE_SYMMETRIC_KEY
#define DEVICE_SYMMETRIC_KEY "ENguEPufGxxxxxxxxxxxxxxxx="
#endif /* DEVICE_SYMMETRIC_KEY */