Duplicate name exceptions

Solves duplicate name exception issues and azure related certificate generation problems.