Hi,
From your description it sounds like the CPU credits are exhausted so the VM is returning to baseline performance for B2s. You may need to switch to larger B series instance or switch to a non-burstable VM instance type. Please see article below for details on burstable VM instances:
https://learn.microsoft.com/en-us/azure/virtual-machines/sizes-b-series-burstable
In the portal you can look at the VM -- Overview -- Monitoring -- see all metrics, and then add credits remaining and credits consumed.
If the above was helpful please click Accept Answer.
Thanks.
-TP