Hi,
First, the error you are seeing is portal bug. It doesn't affect anything except for clicking the recommendation.
Second, do you actually need to migrate the VM to D-series or better? In other words, are you experiencing a performance or other problem with the VM due to lack of CPU/RAM/IO?
Reason I ask is, the advisor recommendation you are referencing is not very smart. It just runs query to see if you have any A or B series VMs and if so, display recommendation. For example, I have seen workloads running on B series for years, without any issues, and advisor displayed this recommendation. There was no reason to switch so ignoring the recommendation was correct action in these cases.
Now, if you do have a reason to migrate the workload to D-series or better, then what you can do is navigate to the VM in the portal, on left click Availability + scale --> Size, select a new size, and click Resize button. There will be downtime because the VM will be shut down/deallocated, resized, and then Started. Normally only takes few minutes.
Please click Accept Answer and upvote if the above was useful.
Thanks.
-TP