protected static Configuration createConfiguration() throws Exception {
   String baseUri = System.getenv(ManagementConfiguration.URI);
   if (IS_MOCKED) {
     return ManagementConfiguration.configure(
         new URI(MOCK_URI), MOCK_SUBSCRIPTION, null, null, null);
   } else {
     return ManagementConfiguration.configure(
         baseUri != null ? new URI(baseUri) : null,
         System.getenv(ManagementConfiguration.SUBSCRIPTION_ID),
         System.getenv(ManagementConfiguration.KEYSTORE_PATH),
         System.getenv(ManagementConfiguration.KEYSTORE_PASSWORD),
         KeyStoreType.fromString(System.getenv(ManagementConfiguration.KEYSTORE_TYPE)));
   }
 }
 public static Configuration createConfiguration() throws Exception {
   String baseUri = System.getenv("arm.url");
   if (IS_MOCKED) {
     return ManagementConfiguration.configure(null, new URI(MOCK_URI), MOCK_SUBSCRIPTION, null);
   } else {
     return ManagementConfiguration.configure(
         null,
         baseUri != null ? new URI(baseUri) : null,
         System.getenv(ManagementConfiguration.SUBSCRIPTION_ID),
         getAccessTokenFromUserCredentials(
                 System.getenv("arm.username"), System.getenv("arm.password"))
             .getAccessToken());
   }
 }