It is very likely your home network is blocking port 22. Check your router settings to ensure port 22 is open for outgoing connections.
You can check using:
Get-NetFirewallRule -Name <String[]>
If the SSH port is open, I will recommend checking on the Azure end.
See steps here: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/troubleshoot-ssh-connection
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola