[Do not merge]: Bringing back provider registration during template deployment

This code should be in `ResourcesClient.cs` it has nothing to do with client creation.