If you are encountering an error message indicating that the target machine is either unreachable or that the username/password is incorrect while using Azure Bastion, here are a few troubleshooting steps you can follow:
- Verify Credentials: Ensure that you are using the correct username and password. For domain-joined VMs, use the UPN format (username@domain) instead of the domain\username format.
- Check Network Connectivity: Use the Connection Troubleshoot feature in the Azure portal to diagnose connectivity issues. This tool can help identify if there are any network-related problems preventing access to the VM.
- Just-in-Time Access: If Just-in-Time (JIT) access is enabled, ensure that you have the necessary permissions assigned to your user account to connect to the Bastion service.
- Temporary Password: Make sure that the account you are trying to use does not have a temporary password, as these cannot be used for remote desktop connections.
- Security Policy: For Azure AD joined VMs, ensure that the security policy Network security: Allow PKU2U authentication requests to this computer to use online identities is enabled on both the server and client.
If the issue persists after checking these points, consider reaching out to support for further assistance.