在Azure中停止或禁用资源组 [英] Stopping or Disabling a resource group in Azure

查看:87
本文介绍了在Azure中停止或禁用资源组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以暂时禁用或停止特定资源组?我知道我们可以删除资源组,也可以停止该资源组下的某些服务,但是我找不到一种方法可以暂时关闭该资源组或其所有资源.

请让我知道是否可以提供更多有关此的详细信息.

谢谢.

解决方案

目前似乎无法实现,但已发出请求反馈站点来建议新功能并对其进行投票.

但是,如果您在资源组中仅获得某些特定类型的资源,例如虚拟机,然后可以在一个PowerShell命令中将其全部停止,如下所示:

Get-AzureRmResourceGroup <group name> | Stop-AzureRmVM -Force

注意:这种方法高度依赖于资源的类型,而不是像请求的一般解决方案

Is there any way to disable or stop a particular resource group temporarily? I know we can delete the resource group or we can stop certain services under the resource group but I am unable to find a way where I can just shut down the resource group or all of it's resources at once, temporarily.

Please let me know if I can provide few more details about this.

Thanks.

解决方案

This does not seem to be possible at the moment but a request has been made here, however, no response from Microsoft on what it's status.

In general, if there are features that are not available in e.g. Azure, use the feedback site to suggest and vote on new features.

However, if you only got some specific type of resources in your resource group, like e.g. virtual machines, then you can stop them all in one PowerShell command like this:

Get-AzureRmResourceGroup <group name> | Stop-AzureRmVM -Force

Note: this approach is highly dependent on the type of resource and not a generic solutions like requested

这篇关于在Azure中停止或禁用资源组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆