D365 Developer VM Open visual studio as administrator by default
Login to your developer VM Right click on Visual studio Icon in task bar Right click again and select properties Click advanced and select 'Run as administrator'. Click ok. VS will now open as administrator