Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否可以通过Microsoft Azure中的API将.vhd文件转换为映像?_Azure - Fatal编程技术网

是否可以通过Microsoft Azure中的API将.vhd文件转换为映像?

是否可以通过Microsoft Azure中的API将.vhd文件转换为映像?,azure,Azure,我正在尝试通过Azure CLI将.vhd文件上载到Microsoft Azure。上载的.vhd存储到Azure容器中 我可以通过将其转换为Azure门户中的图像来手动启动它。但是我想通过它的API做同样的操作。是否可能?请参阅命令azure vm image create,以使用CLI创建映像。对于PowerShell,它将是Add AzureVMImage命令 有关更多信息,请参阅下面的集成帮助: azure help vm image create info: Executing

我正在尝试通过Azure CLI将.vhd文件上载到Microsoft Azure。上载的.vhd存储到Azure容器中


我可以通过将其转换为Azure门户中的图像来手动启动它。但是我想通过它的API做同样的操作。是否可能?

请参阅命令azure vm image create,以使用CLI创建映像。对于PowerShell,它将是Add AzureVMImage命令

有关更多信息,请参阅下面的集成帮助:

azure help vm image create

info:    Executing command help
help:    Upload and register a VM image
help:
help:    Usage: vm image create [options] <name> [source-path]
help:
help:    Options:
help:      -h, --help                   output usage information
help:      -v, --verbose                use verbose output
help:      --json                       use json output
help:      -u, --blob-url <url>         the target image blob url
help:      -l, --location <name>        the location
help:      -a, --affinity-group <name>  the affinity group
help:      -o, --os <type>              the operating system [linux|windows]
help:      -p, --parallel <number>      the maximum number of parallel  uploads [96]
help:      -m, --md5-skip               skip MD5 hash computation
help:      -f, --force-overwrite        Force overwrite of prior uploads
help:      -e, --label <about>          the image label
help:      -d, --description <about>    the image description
help:      -b, --base-vhd <blob>        the base vhd blob url
help:      -k, --source-key <key>       the source storage key if source-path
help:                               is a Microsoft Azure private blob url
help:      -s, --subscription <id>      the subscription id