Sometimes after creating a virtual machine , the connect button is disabled to connect to Virtual Machine via Terminal Services.
The reason it is disabled is due to the fact that that public ip is not assigned to the VM. Once the VM is assiged in Public Ip via power shell or in Azure Portal. Connect button is enabled.