The thing doesn't work that way. This is multipolar world and alignments will not work.
Look at India foreign policy, we have good relationship with Iran and Palestine, and Muslim world at same time we have good relationship with Israel and west countries.
We are strategic partner of US and at Same time we have good and trustworthy relationship with Russia.
We have many issues with China but trade and economic relationship is also good.
Russia will not come and help you for any critical time and nor china will come if you are still not able stand on your legs after 70 years independence. That's a open fact.