大家好!! python 里 怎么批量删除虚拟机啊??? 求解哇!!!!!

大家好!!
python 里 怎么批量删除虚拟机啊???
求解哇!!!!!

首先需要知道删除的API,一般是web API,那么python可以调用

您好,
当前Python没有直接的API去批量删除VM,但可以单个删除:

 from azure import *
from azure.servicemanagement import *

sms = ServiceManagementService(subscription_id, certificate_path)

sms.delete_deployment(service_name='myvm',
    deployment_name='myvm')

在rest api中也只有单独的删除VM。
Regards,
Will
如果您想进一步了解Windows Azure, Windows Azure 官网欢迎您的访问