Confirm the Azure subscription is Active/Enabled, then reset the VM’s RDP configuration and verify that TCP 3389 is allowed to the VM.
1. Confirm payment reactivation completed
A VM showing Running does not by itself confirm the subscription’s billing state.
- In the Azure portal, open Subscriptions.
- Select the subscription containing the VM.
- Check Status:
- Active/Enabled: continue to the RDP checks below.
- Disabled, Past Due, or Expired: open the billing warning and select Settle Balance or Reactivate, as applicable.
After a past-due payment, subscription reactivation can take up to 24 hours. If the payment was processed but the subscription remains disabled, create an Azure Billing support request.^1^ A disabled subscription deallocates its VMs and releases temporary IP addresses; an enabled subscription permits normal resource operations.^2^
2. Download a fresh RDP connection file
The VM’s public IP might have changed after it was deallocated or restarted.
- Open Virtual machines → select the VM.
- On Overview, note the current Public IP address.
- Select Connect → RDP → Download RDP file.
- Open that new file rather than using an old shortcut or saved address.
If no public IP is displayed and you are not connecting through Azure Bastion, VPN, or ExpressRoute, direct Internet RDP will not work.^3^
3. Reset RDP configuration
Error 0x204 generally indicates that the client did not establish a connection to the RDP service, so reset the service and Windows Firewall configuration before changing credentials.
- Open the VM in the Azure portal.
- Go to Help → Reset password.
- Set Mode to Reset configuration only.
- Select Update.
- Wait for completion, then retry using the newly downloaded RDP file.
This operation restores the VM’s Remote Desktop configuration and applicable Windows Firewall rules.^3^
4. Verify network access to port 3389
In the VM resource:
- Open Networking.
- Review inbound rules on both the network interface and subnet Network Security Groups.
- Confirm an inbound rule permits:
- Protocol: TCP
- Destination port: 3389
- Action: Allow
- Source: preferably your current public IP address
- Ensure no higher-priority deny rule overrides it.
- Use Network Watcher → IP flow verify if available to test whether traffic from your public IP to TCP 3389 is allowed.
Do not expose port 3389 to Any unless temporarily required for diagnosis; restrict it to your public IP. Also verify that your local or company firewall permits outbound TCP 3389.^4^
5. If it still fails
Proceed in this order, testing RDP after each action:
- VM → Boot diagnostics: verify that the screenshot shows the Windows sign-in screen rather than a boot error.
- VM → Help → Resource health: confirm the VM reports Available.
- If credentials might be affected, use Help → Reset password, select Reset password, and set a new local administrator password.
- Select Restart from the VM’s Overview page.
- Run the resource-specific diagnostic from the portal’s Help (?) area using the VM as the affected resource.
- Use Redeploy only as a final infrastructure repair. Redeployment moves the VM to another Azure host; ephemeral-disk data is lost and dynamic IP addresses can change.^3^
If the subscription is enabled and these diagnostics do not identify the failure, open an Azure technical support request for the VM and include error code 0x204, extended code 0x0, the last successful connection time, and the diagnostic results—without posting IP addresses or account details publicly.
References