web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Bastion Connection Error.. verify NSG rules allow ports 22 (SSH) and 3389 (RDP) from 168.63.129.16

(1) ShareShare
ReportReport
Posted on by 197
I connect to my cloud hosted systems using Bastion not RDP.  So I set the network to deny incoming RDP connections.
Then bastion fails with this error:
Connection Error
The target machine is unreachable. Please verify that your NSG rules allow traffic to ports 22 (SSH) and 3389 (RDP) from the private IP address 168.63.129.16.
 
I fixed it by doing as it says, and making those new rules to have a lower priority number than the deny RDP access rule:
 
I hope this helps people in the community.
I have the same question (0)
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    Thank you for your sharing, as you  said it will be helpful for others with similar issues. You can mark it as verified to make it clear to more people.
    Best Regards,
    Hana
  • Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi,
     
    Thank you for sharing
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • jt1024 Profile Picture
    197 on at
    Hello Mohammad, and Hana,
    I've tried marking one of your responses as an answer to move this post to 'verified' but the website just presents a spinning circle indefinitely.  So I guess it just has to stay as it is for now.
    - Jim
    P.S.: I found more info, replied again, marked that as suggested answer, then verified that. Done!
  • Suggested answer
    jt1024 Profile Picture
    197 on at
    Hello all,
    Just a follow up.  You only need the inbound port rules if you're using the new (2024 March era) Developer SKU Bastion.  For more see:
     
    You can change what type of Bastion you have following this guide: https://learn.microsoft.com/en-us/azure/bastion/upgrade-sku
    But the developer pricing is not listed, though the other pages linked above indicate it is a lower cost option since there is no additional features or scaling.
     
    I hope this is helpful to others!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans