gpt4 book ai didi

Azure 磁盘管理

转载 作者:行者123 更新时间:2023-12-03 01:11:49 25 4
gpt4 key购买 nike

我刚刚开始使用 azure 虚拟机,我必须承认我仍然有一些关于磁盘管理的问题:我通过 Node JS API 按以下方式管理我的机器:

 azure vm create INSTANCE  b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-12_10-amd64-server-    20130227-en-us-30GB  azureuser XXXXXX --ssh  --location "West US" -t ./azure.pem 
azure vm start INSTANCE

//do whatever
azure vm shutdown INSTANCE
azure vm delete INSTANCE
  1. 删除实例后,我仍然剩下一堆磁盘,这些磁盘没有被删除,但我需要付费(即从我的免费试用中扣除)。默认情况下不会被删除吗?是否有API调用来删除它们(只找到了相应的REST调用,但有点不愿意混合NODE JS和Rest api调用)。

  2. 启动新实例时我可以指定其中一个现有磁盘吗?

感谢您的回答!约尔格

最佳答案

After deleting the instance I still have a buch of disks left, which are not deleted but which I am charged (i.e. deducted from my free trial). Are they not deleted by default? Is there an API call to delete them (only found the corresponding REST calls, but kind of unwilling to mix NODE JS and Rest api calls).

是的,默认情况下不会删除磁盘。我认为原因是重复使用这些磁盘来衍生新的虚拟机。要删除磁盘(这是存储在 Windows Azure Blob 存储中的页 blob),您可以使用 Azure SDK for Node: https://github.com/WindowsAzure/azure-sdk-for-node .

Can I specify one of those existing disks when starting a new instance?

是的,可以。为此,您需要找到磁盘镜像,然后使用以下命令:

azure vm create myVM myImage myusername --location "West US"

其中“myImage”是图像的名称。了解更多详情请访问:http://www.windowsazure.com/en-us/develop/nodejs/how-to-guides/command-line-tools/#VMs

关于Azure 磁盘管理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15381341/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com