Hello @Handian Sudianto ,
Welcome to Microsoft QnA.
Standard E4_2S_v3 VM is a constrained vCPU capable VM and it has the following specifications:
Standard is recommended tier
E – Optimised for in-memory hyper-threaded applications
4 – The number of vCPUs
2 – The actual number of vCPUs for the constrained vCPU capable size.
Reduces the cost of software licensing, while maintaining the same memory, storage, and I/O bandwidth.
s – Premium Storage capable
v3 – version
Therefore, it is showing correctly as the available vCPU count can be reduced to one half or one quarter of the original VM specification. These new VM sizes have a suffix that specifies the number of available vCPUs to make them easier for you to identify. There are no additional cores available that can be used by the VM.
For more details on what are constrained vCPU capable VMs, please refer to this document : https://learn.microsoft.com/en-us/azure/virtual-machines/constrained-vcpu
Hope this helps. Feel free to reach back if you have any questions.
--------
Please accept as answer
and upvote
if the above information is helpful.