i want to create a funcntion that can automate the rotation of keys when they are about to expire in keyvault.
basically i want that when a key is about to expire in keyvault it generates an event which in turn regenerate the key for the specific resource and rotatate the secret in the keyvault hence making it automatic.
i need the code in c# for all azure resources.