protected static void createStorageContainer(String storageAccountName, String storageContainer)
      throws Exception {
    MockCloudBlobClient blobClient = createBlobClient(storageAccountName, storageAccountKey);
    MockCloudBlobContainer container = blobClient.getContainerReference(storageContainer);
    container.createIfNotExists();

    // make sure it created and available, otherwise vm deployment will fail with storage/container
    // still creating
    boolean found = false;
    while (found == false) {
      Iterable<MockCloudBlobContainer> listContainerResult =
          blobClient.listContainers(storageContainer);
      for (MockCloudBlobContainer item : listContainerResult) {
        blobhost = item.getUri().getHost();
        if (item.getName().contains(storageContainer) == true) {
          blobhost = item.getUri().getHost();
          found = true;
        }
      }

      if (found == false) {
        Thread.sleep(1000 * 30);
      } else if (!IS_MOCKED) {
        Thread.sleep(1000 * 60);
      }
    }
  }