Host keys for SFTP support for Azure Blob Storage expiry notification

Abdul Azim 20 Reputation points
2024-02-23T09:39:47.46+00:00

Hi, Recently SFTP Host Keys expired and we were unaware. Is it possible to create a notification/alert to inform admins when next expiry date is near? thanks.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,776 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,166 questions
{count} votes

Accepted answer
  1. Nehruji R 7,046 Reputation points Microsoft Vendor
    2024-02-23T10:18:24.5433333+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.