Unable to install SMB v1.0/CIFS on Azure Windows Server 2019

Microsoft actively prevents the SMB v1 feature being enabled on Windows Server 2019 when running on the Azure platform for well documented security reasons.

I was trying to enable SMB v1 to diagnose why a QNAP NAS was unable to mount a share from Windows Server 2019 but could from Windows Server 2016. The reason is because this particular NAS is still using SMB v1 to mount remote shares and can't be reconfigured otherwise. Therefore this operation is impossible with W2019 in Azure.