question

AzrMonit-6682 avatar image
0 Votes"
AzrMonit-6682 asked AzrMonit-6682 answered

Possible to create alert for a whole subscription app services?

Hi all, Is it possible to have an altert on CPU % usage of an App Service be "attached" to a subscription? We create and delete regularly app services and its respective Resource Group (also regularly created and deleted) and would like to monitor the CPU usage of the web app without having to recreate the alert every time we create a new one. Is there any way to have something like this implemented? Thanks all

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

btardif avatar image
1 Vote"
btardif answered

If you are deleting and re-creating resources frequently, you should be using ARM templates --> https://docs.microsoft.com/azure/templates/

You can include alerts as part of your template definition.

This way when the app is being created by executing the corresponding template, you would also be creating all the necessary alerts.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AzrMonit-6682 avatar image
0 Votes"
AzrMonit-6682 answered

It's different teams that are creating these resources frequently and using templates is not an option at the moment...

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.