I created a resource group and a virtual machine on Azure. After that, I opened the 22 port on my VM to allow the ssh connection. The connection test on the browser succeeds but when I try to connect with PuTTY or with PowerShell through the ssh command, the connection times out. I used these commands
az login
az group create -n testRG -l westeurope
az vm create -g testRG -n testVM --image MicrosoftWindowsServer:WindowsServer:2019-Datacenter:latest
az vm --open-port --port 22 -g testRG -n testVM
How can I fix it?