The Salzburg part, at least, sounds rushed to me. It takes about 3 hours by train from Vienna so by the time you get to the Vienna station, travel, and then get to the hotel to drop your bags in Salzburg it's going to be lunchtime or later. So can you "see the main sights" in 1.5 days? Sure, you can check off the top places with at least a brief visit. And if you expect to be back in Salzburg someday then you can see more or in greater detail on another trip.
But if you don't expect to return there is plenty to do & see that would be tough to fit into 1.5 days. The Sound of Music Tour, if you're a fan, is wonderful. With a Salzburg Card you can visit the spectacular view from Untersberg with transit and admission included. A visit to the Hohensalzburg fortress overlooking the city, walking the Mirabell Palace, enjoying the Augustiner beer garden if the weather cooperates, a river cruise, visit a salt mine, and much more is time well spent.
Here's my advice. Plan from the bottom up. Read thru a guidebook or two, watch a few Salzburg walking tours on YouTube, and build a list of things you'd like to do and see. Then build a rough schedule and see how many days you'd like to spend in Salzburg. Same with Munich and Vienna that have museums, shops, and so on.