When you upgrade your Azure free account, you keep your remaining credit for the full 30 days from when you signed up.
https://video2.skills-academy.com/en-us/azure/cost-management-billing/manage/upgrade-azure-subscription#upgrade-your-azure-free-account
--please don't forget to Accept as answer if the reply is helpful--