@cooldesign01 Are you still blocked? I'm collating the information shared above for more clarity. Please check and let us know if you have any further queries.
When an IoT Edge device is provisioned, it is given a connection string that includes a shared access signature (SAS) token. This token has an expiration time, which is typically set to limited time. After the token expires, the device can no longer connect to the IoT hub.
This is a security measure to prevent unauthorized access to the IoT hub. By setting an expiration time on the SAS token, you limit the amount of time that an attacker can use a stolen token to access the IoT hub.
To resolve this issue, you can either update the connection string with a new SAS token or use the device provisioning service (DPS) to generate a new connection string.
Please see Control access to IoT Hub using Shared Access Signatures for more details.
Also, as Dom and Sander suggested, you can follow the SDK samples and retry mechanism.
See Device Reconnection Sample and Retry patterns
To update the connection string, you can use the Azure portal or the Azure CLI. Here is an example of how to update the connection string using the Azure CLI**.**If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.