How do I modify Azure VM once it's provisioned within the same run of template?

I need to enable hiberation on VM which I’m provisioning in Azure. This is a property in azurerm_windows_virtual_machine resource. Problem is that I have to expand OS drive of VM before I can enable it since there is no enough space on C drive. So I provision VM first, I expand C drive based on custom script extension and then I want to rerun azurerm_windows_virtual_machine again but this time with hiberation flag is set to true. I’ m having hard time figuring it out how to do that in terraform. Any ideas?