Since the default resolution of all VMs of Microsoft hosted is 1024x768. This means that we cannot modify the value of the resolution higher than the default. Ex: 1920, 1080. Please refer to this link as a reference
The solution of that case is to use the Screen Resolution Utility plugin of Microsoft to modify the resolution value.
Also, we have a sample for more details.