Stopping or Disabling a resource group in Azure

前端 未结 3 1834
清歌不尽
清歌不尽 2021-01-07 22:48

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

3条回答
  •  清酒与你
    2021-01-07 23:48

    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  | Stop-AzureRmVM -Force
    

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

提交回复
热议问题