Subscribe to Azure Resource Management events in Event Grid
Artikkeli
This article explains the steps needed to subscribe to events published by Azure Resource Notifications - Resources. For detailed information about these events, see Azure Resource Notifications - Resources events.
Create Resources system topic
This section shows you how to create a system topic of type microsoft.resourcenotifications.resources.
In the search bar, type Event Grid System Topics, and select it from the drop-down list.
On the Event Grid system topics page, select Create on the toolbar.
On the Create Event Grid System Topic page, select Azure Resource Management - Preview for Topic type.
Select the resource group in which you want to create the system topic.
Enter a name for the system topic.
Select Review + create
On the Review + create page, select Create.
On the successful deployment page, select Go to resource to navigate to the page for your system topic. You see the details about your system topic on this page.
The following sample command creates an event subscription for both CreatedOrUpdated and Deleted events. If you don't specify included-event-types, all the event types are included by default.
The following sample command creates an event subscription for both CreatedOrUpdated and Deleted events. If you don't specify IncludedEventType, all the event types are included by default.
On the Event Grid System Topic page, select Event Subscription on the toolbar.
Confirm that the Topic Type, Source Resource, and Topic Name are automatically populated.
Enter a name for the event subscription.
For Filter to event types, select the event, for example, CreatedOrUpdated or Deleted.
Select endpoint type.
Configure event handler based no the endpoint type you selected. In the following example, an Azure event hub is selected.
Select the Filters tab to provide subject filtering and advanced filtering. For example, to filter for events from resources in a specific resource group, follow these steps:
Select Enable subject filtering.
In the Subject Filters section, for Subject begins with, provide the value of the resource group in this format: /subscriptions/{subscription-id}/resourceGroups/{resourceGroup-id}.
Then, select Create to create the event subscription.
If you have any questions or feedback on this feature, don't hesitate to reach us at arnsupport@microsoft.com.
To better assist you with specific feedback about a certain event, provide the following information:
For missing events:
System topic type name
Approximate timestamp in UTC when the operation was executed
Base resource ID for which the notification was generated
Navigate to your resource in Azure portal and select JSON view at the far right corner. Resource ID is the first field on the JSON view page.
Expected event type
Operation executed (for example, VM started or stopped, Storage account created etc.)
Description of issue encountered (for example, VM started and no Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged event generated)
If possible, provide the correlation ID of operation executed
For event that was delayed or has unexpected content
System topic type name
Entire contents of the notification excluding data.resourceInfo.properties
Description of issue encountered and impacted field values
Ensure that you aren't providing any end user identifiable information while you're sharing this data.