Fix error when creating VM in Affinity Group

Proposed fix for issue #525.

I moved the definition of _svcMgmtRoleCreateInternal to the top of function doSvcMgmtRoleCreate. Otherwise it's undefined when reaching the case where an affinityGroup is specified instead of a Location.