What happens to my h1b after a layoff?

Hi everyone. I won the H1B lottery in April 2024 while working for Microsoft. I was on an F1 visa in the U.S., but since I didn’t win the lottery earlier, Microsoft relocated me to their Canada office on a work permit when my student visa expired.

My H1B process was almost finalized, and I was scheduled for my U.S. visa interview in February 2025. Unfortunately, I was impacted by the recent Microsoft layoffs before the process was completed.

I’m now unsure what happens to my H1B. My main questions are: 1. Will my H1B be entirely canceled if Microsoft revokes the petition? 2. Can another employer take over the petition, or is it lost? 3. Is there any way to retain my H1B eligibility and still pursue it?

Any advice or insights would be greatly appreciated. Thank you!