Fix GetAzureEnvironment issue during service management test setup.