1

我正在测试 Azure IaaS 并遇到了一个非常基本的问题。我有一个父子 VHD,我已使用 csupload 作为页面 blob 上传,并且门户中显示了图像和磁盘。然后我尝试将父母与孩子联系起来:

C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10\bin>csupload set-parent -child "visualstudio60-000001.vhd" -parent "visualstudio60.vhd"
Windows(R) Azure(TM) Upload Tool version 1.8.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.

Using the saved connection string...
The specified resource does not exist

如何获得查看磁盘的工具?我尝试了很多不同的变体,但无法完成这个简单的任务。

4

1 回答 1

0

如果您使用的是 IaaS VM 并使用“Csupload Set-Parent”,那么您使用的命令错误。如果您查看 set-parent 命令的 csuplaod 帮助,您将看到该命令仅适用于仍然存在的旧 VM 角色功能,如下所示:

C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10>csupload get-help
 set-parent
Windows(R) Azure(TM) Upload Tool version 1.8.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.

NAME
    Set-Parent

CATEGORY
    VmRole

SYNOPSIS
    Set the parent of an existing uploaded and commited VM image.

SYNTAX
    Set-Parent -Child <string> [-Connection SubscriptionId={subscriptionId};Cert
ificateThumbprint={subscriptionManagementCertificate};ServiceManagementEndpoint=
{azureManagementEndpoint}] -Parent <string>

在 Windows Azure 虚拟机 (IaaS) 中,您将上传归类为操作系统磁盘和数据磁盘的多个磁盘。正确设置操作系统/数据 VHD 并使用 PowerShell 命令或直接从门户上载后,您可以创建虚拟机并将数据磁盘添加到其中。以下链接应该可以帮助您:

于 2012-11-15T20:27:43.670 回答