Skip to content

Commit ba493f9

Browse files
author
Mangesh Sangapu
committed
Added links
1 parent baeeeb6 commit ba493f9

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

articles/app-service/get-resource-events.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,53 @@ ms.date: 04/24/2020
77
---
88
# Get resource events in Azure App Service
99

10-
## Overview
11-
Azure provides built-in tools to monitor the status and health of your resources. Resource events help you understand any changes that were made to your underlying web app resources and take action as necessary. Event examples include: scaling of instances, updates to application settings, restarting of the web app, and many more. In this article, you'll learn how to view Activity Logs and enable Event Grid to monitor resource events related to your App Service web app.
10+
Azure App Service provides built-in tools to monitor the status and health of your resources. Resource events help you understand any changes that were made to your underlying web app resources and take action as necessary. Event examples include: scaling of instances, updates to application settings, restarting of the web app, and many more. In this article, you'll learn how to view [Azure Activity Logs]((https://docs.microsoft.com/azure/azure-monitor/platform/activity-log-view) and enable [Event Grid](https://docs.microsoft.com/azure/event-grid/) to monitor resource events related to your App Service web app.
1211

1312
> [!NOTE]
1413
> App Service integration with Event Grid is in preview.
1514
>
1615
17-
## Activity Logs
18-
Activity Logs contain resource events emitted by operations taken on the resources in your subscription. Both the user actions in the Azure Portal and Azure Resource Manager templates contribute to the events captured by the Activity log.
16+
## View Azure Activity Logs
17+
Azure Activity Logs contain resource events emitted by operations taken on the resources in your subscription. Both the user actions in the Azure Portal and Azure Resource Manager templates contribute to the events captured by the Activity log.
1918

20-
Activity logs provide details such as:
21-
- what operations were taken on the resources in your subscription
19+
Azure Activity Logs for App Service details such as:
20+
- what operations were taken on the resources (ex: App Service Plans)
2221
- who started the operation
2322
- when the operation occurred
2423
- the status of the operation
25-
- the values of other properties that might help you research the operation
24+
- property values to help you research the operation
2625

2726
### What can you do with Activity Logs?
2827

29-
Activity Logs can be queried using the Azure Portal, PowerShell, REST API, or CLI. You can send the logs to a storage account, Event Hub, and Log Analytics. You can also analyze them in PowerBI or create alerts to stay updated on resource events.
28+
Azure Activity Logs can be queried using the Azure Portal, PowerShell, REST API, or CLI. You can send the logs to a storage account, Event Hub, and Log Analytics. You can also analyze them in PowerBI or create alerts to stay updated on resource events.
3029

31-
(View and retrieve Azure Activity log events.)[https://docs.microsoft.com/en-us/azure/azure-monitor/platform/activity-log-view]
30+
[View and retrieve Azure Activity log events.](https://docs.microsoft.com/azure/azure-monitor/platform/activity-log-view)
3231

33-
## Event Grid
32+
## Ship Activity Logs Event Grid
3433

35-
While Activity logs are user-based, there's a new Event-grid integration with App Service (preview) that logs both user actions and automated events. With Event Grid, you can configure a handler to react to the said events. For example, use Event Grid to instantly trigger a serverless function to run image analysis each time a new photo is added to a blob storage container. Alternatively, you can use Event Grid with Logic Apps to process data anywhere, without writing code. Event Grid connects data sources and event handlers. For example, use Event Grid to instantly trigger a serverless function to run image analysis each time a new photo is added to a blob storage container.
34+
While Activity logs are user-based, there's a new [Event Grid](https://docs.microsoft.com/azure/event-grid/) integration with App Service (preview) that logs both user actions and automated events. With Event Grid, you can configure a handler to react to the said events. For example, use Event Grid to instantly trigger a serverless function to run image analysis each time a new photo is added to a blob storage container.
3635

37-
### Event Types
36+
Alternatively, you can use Event Grid with Logic Apps to process data anywhere, without writing code. Event Grid connects data sources and event handlers. For example, use Event Grid to instantly trigger a serverless function to run image analysis each time a new photo is added to a blob storage container.
37+
38+
### Supported Event Types
3839
|Event Type|Description|
39-
|-|-|
4040
|Microsoft.web/sites|(Webapp)|
4141
| BackupOperationCompleted |Backup of the webapp completed successfully|
4242
| BackupOperationFailed | Backup of the webapp failed|
43-
|-|-|
4443
| RestoreOperationStarted |Restore from backup has started|
4544
| RestoreOperationCompleted |Restore from backup completed successfully|
4645
| RestoreOperationFailed |Restore from backup failed|
47-
|-|-|
48-
| SotSwapStarted |Slot swap has started|
46+
| SlotSwapStarted |Slot swap has started|
4947
| SlotSwapCompleted |Slot swap completed successfully|
5048
| SlotSwapFailed |Slot swap failed|
5149
| SlotSwapWithPreviewStarted |Slot swap with preview has started|
5250
| SlotSwapWithPreviewCancelled |Slot swap with preview failed|
53-
|-|-|
5451
| AppUpdated | |
5552
| Restarted | The webapp was restarted |
5653
| Stopped | The webapp was stopped |
5754
| ChangedAppSettings | App settings on the webapp were changed |
5855
| - | - |
59-
| Microsoft.web/serverfarms (App Service Plan) |
56+
| Microsoft.web/serverfarms | (App Service Plan) |
6057
| AspUpdated | The app service plan was updated. The event object contains details on the properties that were changed. |
6158
| Scale up/down | The app service plan scaled up or down. The event object contains the instance count.|
6259

0 commit comments

Comments
 (0)