1

I'm trying to create a VM using Azure's Java ARM SDK (0.9.3) and I want to tag all of the related resources with a tag, so later on I can delete them by this tag (and I don't want to create a separate resource group for this VM and then delete it).

I have seen in the feedback forums here - https://feedback.azure.com/forums/216843-virtual-machines/suggestions/8945692-delete-vm-with-all-associated-resources that others are trying to do the same, but is there a way to tag all the related resources during creation time, rather that iterating all of them, because this will be the same as deleting them one by one.

In general - is there a better way for deleting all the resources without tags?

Thanks!

4

1 回答 1

1

@s-rusev,似乎删除所有不带标签的资源的唯一方法是使用 Azure 资源管理 REST API 进行模板部署以创建和删除 VM。请参阅 REST API 参考模板部署以了解如何管理多个资源的部署。

于 2016-08-05T14:59:20.540 回答