@Michal Szilder Thank you for reaching out to us. Is keyvault and keyvault HSM similiar from code perspective? - Yes, they are same.
Reference:
https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys
https://www.loginradius.com/blog/engineering/guest-post/using-azure-key-vault-with-an-azure-web-app-in-c-sharp/
Let me know if you have any further questions, please feel free to post back.