Sign inSign up

jpoon/azure-create-vhd

By jpoon

•Updated over 9 years ago

Tool to create an empty VHD on Microsoft Azure

Image
0

1.8K

jpoon/azure-create-vhd repository overview

⁠azure-create-vhd

Create and upload a formatted VHD to Microsoft Azure Storage.

⁠Background

This tool exists as the Azure CLI currently does not support creating a blank VHD (azure-cli#655⁠). Much of the logic was inspired by https://github.com/colemickens/azure-tools⁠ differing so as not to require Azure login.

⁠Usage

docker build . -t azure-create-vhd
docker run -it azure-create-vhd STORAGE_ACCOUNT_NAME STORAGE_ACCOUNT_KEY CONTAINER_NAME VHD_NAME [VHD_SIZE] [--fstype=type] [--verbose]

Arguments:
  STORAGE_ACCOUNT_NAME  Azure storage account name
  STORAGE_ACCOUNT_KEY   Azure storage account key
  CONTAINER_NAME        Name of blob container to store VHD
  VHD_NAME              Name of VHD to create. Must end in .vhd extension

Options:
  -h --help          	Show this help message and exit
  --vhd_size N          Optional parameter denoting size in bytes of VHD (Default: 10G).
                        Suffixes "k" or "K" (kilobyte, 1024) "M" (megabyte, 1024k) 
                        "G" (gigabyte, 1024M) and T (terabyte, 1024G) are supported.
  --fstype=<type>       Optional parameter denoting type of filesystem to create (Default: ext4).
                        Supported filesystems: ext4, xfs.
  --verbose             Optional parameter. Output logs (Default: false)

Tag summary

Content type

Image

Digest

Size

97.8 MB

Last updated

over 9 years ago

docker pull jpoon/azure-create-vhd