Fix for Issue #1670

This fixes the issue with Add-AzureEnvironment not working unless publishsettings is imported first