none
Notification on new component creation RRS feed

  • Question

  • Hello Team,

    I have a requirement wherein I need to get a notification(an alert or email),whenever a new component is created within my subscription.

    Is there any way to achieve it without any new component being added in my resource group?

    And if no,then please suggest how to proceed for the same.
    Thursday, April 18, 2019 12:22 PM

All replies

  • You can link your subscription to the log analytics, so that all the azure activity will be collected in log analytics. For more information , please refer this article.

     

    From the logs console, you can query the logs to generate the requested data. An example of query for quick start

    AzureActivity
    |where EventSubmissionTimestamp >= ago(7d)
    |where OperationName contains "Create" and ActivityStatus == "Succeeded" 
    |project OperationName , ActivityStatus , ActivitySubstatus , ResourceGroup , Caller , OperationNameValue
    |summarize by ResourceGroup ,OperationName , ActivityStatus , Caller

    Using this query , you can create alert to notify. Please go through this article for more information

    Friday, April 19, 2019 9:14 AM
    Moderator