You need to add the storage account to the depends_on property for your windowsvm. This will ensure that the storage account is created before the VM.