Hello Abdul Azim,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
I understand that you would like to set up an alert notification when your host key gets near to expiration and below is the certain way to perform the same,
Consider using Azure Monitor to create custom alerts.
· Set up a metric alert on the SSH Host Key Expiry metric for your storage account.
· Configure the alert to trigger when the metric value is less than or equal to the desired threshold (e.g., 30 days before expiration).
Alternatively, you can try using a Custom Script or Automation:
· Write a custom script or use an automation tool (such as PowerShell, Python, or Azure Logic Apps) to periodically check the expiration dates.
· If a key is nearing expiration, send an email notification to the administrators.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.