An Azure service that is used to provision Windows and Linux virtual machines.
Hello Steve Lee
The issue you’re facing is due to an unsupported disk size reduction attempt.
Suggested Solutions:
Restore the Original Disk Size: If you accidentally tried to resize the disk size, revert the disk to its original size of . Check your platform's disk management options for resizing or undoing changes.
Reset RDP configuration from the Azure Portal
Before connecting via Bastion, try the built-in reset first. In the Azure portal, navigate to your VM, scroll down to the Help section, click Reset password, set the Mode to Reset configuration only, and click Update. This resets the RDP configuration and re-enables Remote Desktop firewall rules without touching your credentials.
Check NSG rules at both the subnet and NIC level
NSGs can be applied at both the subnet level and the network interface (NIC) level. When NSGs exist at both levels, inbound traffic must be allowed by both NSGs to reach the VM. A higher-priority deny rule will block RDP even when an allow rule exists.
Why Disk Reduction Fails:
Reducing a disk size may lead to data loss or corruption because it involves altering the structure of the disk. Most virtualization platforms explicitly prevent this for safety reasons.