Hi,
In the Azure portal, you can may <yourVM> -- Operations -- Run command -- RunPowerShellScript to run powershell command(s) to change the registry setting(s) so that TLS 1.2 is enabled again.
Another method is to use Azure Serial console to connect and run PowerShell or other commands to view/edit the registry:
Azure Serial Console for Windows
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-windows
Emergency Management Services Tools and Settings
If the above is helpful please click Accept Answer.
Thanks.
-TP