Stop resources by scope

Francisco Trejo 21 Reputation points
2022-11-03T17:08:00.987+00:00

Hi,
I've been working with logic apps to handle resources costs, locking when over budget, notifications and some other things, but now I want to stop some but while reading the azure API docs, not every resource can be stopped.

Is there any way to stop resources by scope? I have used the lock resource by scope, and it works just fine!

Or there is any endpoint list with the resources that can be stop\deallocated so they can stop being charge?

Regards!

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,341 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,990 questions
0 comments No comments
{count} votes

Accepted answer
  1. msrini-MSFT 9,271 Reputation points Microsoft Employee
    2022-11-05T08:32:13.28+00:00

    Hi,

    You cannot stop resources by scope. Are are different API to stop each resources. You will need to figure out which resources are stoppable, like VM, Application Gateway, VMSS, App Service, Azure Firewall and then you need to call the respective STOP API.

    Regards,
    Karthik Srinivas


0 additional answers

Sort by: Most helpful