FAQ
Is it possible to change the installation destination from the C drive to the D drive for the official image template SQL Server?
No. It is not possible to change the installation destination.
When creating a virtual server from the official image template SQL Server, various programs of the SQL server are automatically stored in the C drive.
It is a specification that can not be changed to another drive.
Reference: Service Descriptions - SQL Server - SQL Server Setting