The visa's insurance requirement is handled first.
Many long-stay visas require proof of health coverage at filing time, with specific minimums. The right policy goes in your plan before the application week, which means your filing never bounces over a missing certificate.