An Azure service that is used to provision Windows and Linux virtual machines.
Hi,
1. Please confirm that you do not have total number of vCPUs constrained to 2. To check this please navigate to Overview blade of your VM, scroll down under the Properties -- Size and verify it does not show as 2 of 4 (Constrained).
If it is showing as constrained please navigate to Availability + scale -- Size blade, click on Customize link, increase vCPUs to 4, and then restart your VM to apply the change.
2. In Device Manager, does it show 4 processors or only 2?
3. What do you have under HKLM\ SYSTEM\ CurrentControlSet\ Control\ Session Manager\ Memory Management\ key? Please post screenshot similar to below.
Specifically, do you have FeatureSettingsOverride and FeatureSettingsOverrideMask ?
Depending on what you have in your registry, the issue may be related to the vulnerability mitigation as described in this article:
Assuming they are present, I believe if you were to remove those two registry values (FeatureSettingsOverride and FeatureSettingsOverrideMask) and restart your server would show 4 logical processors. If you choose to try this, please make sure you have verified backup before making changes just in case you change something and the server refuses to boot. I don't expect this, but it is sound precaution always.
Before making any changes I recommend you read the article, download the SpeculationControl module, run Get-SpeculationControlSettings and examine the output, and then decide what you want to do.
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP