What is the process for Hardware Security Module (HSM) key renewal? Is there downtime?

kobulloc msft 45 Reputation points
2024-07-20T00:00:47.0866667+00:00

Note: Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.


We have Hardware Security Module (HSM) keys that are set to expire. What should we know about the renewal process and is there downtime?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,593 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2024-07-20T00:01:32.0633333+00:00

    Note: Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.


    • Our keys will be expiring soon. Will there be any impact, such as downtime for the resources when switching over to the new keys?
      • If there is proper access to the key for DES (Disk Encryption Set) to encrypt and decrypt the disk there will not any problem with downtime. Make sure there is proper access to the key vault and that key is enabled and not expired.
      • The same goes for the storage account. 
    • Say that a key is not updated/renewed intime and the key expires, what will be the impact of this to the resource(s) (Ex: VM and Storage)?
    • Will the storage account automatically pick up the newly created key?
      • Yes. To automatically update a managed key when a new version is available, omit the key version when you enable encryption with managed keys for the storage account. If the key version is omitted, then Azure Storage checks the key vault or managed HSM daily for a new version of a managed key. If a new key version is available, then Azure Storage automatically uses the latest version of the key.
      • Azure Storage checks the key vault for a new key version only once daily. When you rotate a key, be sure to wait 24 hours before disabling the older version.
      • If the storage account was previously configured for manual updating of the key version and you want to change it to update automatically, you might need to explicitly change the key version to an empty string. For details on how to do this, see Configure encryption for automatic updating of key versions and Automatically update the key version.
    • If RSA size changed for new key, would this effect anything on the resource (Ex: VM/Storage) when the new key is added to resource?
      • Only software and HSM RSA keys of sizes 2,048-bit, 3,072-bit and 4,096-bit are supported, no other keys or sizes. 
      • HSM keys require the premium tier of Azure Key Vault. If you want to change to supported sizes yes, you can change it by creating a new key with required size.
    • Once a new key has been assigned to a resource, how can we validate that resource has the new/updated key?

    Additional reading:

    0 comments No comments