Thank you for reaching out.The HTTP Strict-Transport-Security
response header (often abbreviated as HSTS) informs browsers that the site should only be accessed using HTTPS, and that any future attempts to access it using HTTP should automatically be converted to HTTPS.
In Azure such functionality is offered for Azure Front Door as documented here and Azure Application Gateway as documented here as these products deal HTTP servers. Can you please let us know the Azure service for which you want to enable HSTS?
Thanks.