Hi,
You can deny the installation of specific VM extension as the Entra ID extension via policy: Windows and Linux. Note that when you apply the policy you also will not be able to create those extensions. This is due to Azure Policy sits on the ARM layer and policies apply to anyone doing changes no matter if it is from Portal, CLI, PowerShell, etc. or whatever account it has. In order to remediate them manually you will have to first create exclusions, install the extension and at the end either leave the exclusions or remove them. Overall it is unclear what you want to achieve exactly. It is unusual to want something to be blocked so it can be applied later.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.