Required few more details, Can you confirm that you can connect to the machine using SSH with the default port 22. If you do not succeed then maybe configuration was changed and need to fix it first.
refer to the steps you created the same process https://learn.microsoft.com/en-us/azure/bastion/tutorial-create-host-portal
If the Answer is helpful, please click Accept Answer
and up-vote
, this can be beneficial to other community members.