Hi @Akanksha Sharma ,
based on your question this information should be helpful:
https://learn.microsoft.com/en-us/azure/virtual-machines/reserved-vm-instance-size-flexibility
Within the same VM series you have the size flexibility. B2ms and B4ms are in the same VM Series.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten