I have an Azure Function that reads from an Event Hub and updates an Azure SQL DB. If the Azure Function cannot connect to the Azure SQL DB (i.e. incorrect password), I want the Azure Function to be disabled and the Event Hub not to change the checkpoint.
What is the best way to achieve this?
Thanks,
Richard