Adding/updating/deleting tags on an existing resource of type of Activity log alert rule fails

neok-g 0 Reputation points
2023-10-25T10:59:08.3766667+00:00

Hi,

Adding new tags or updating existing tags on resources of type 'Activity log alert rule' fails with the error below:

Rule is null. Activity ID: 62cba7c5-64d1-42a8-ab0c-48923802f4bb. (Code: SettingIsNull)

Steps to reproduce:

  1. Select a resourece group and choose alerts
  2. Create an Activity log alert rule
  3. After the alert rule is created try add a tag and value, or update an existing tag value or delete an existing tag/value pair to the Activity log alert rule
  4. The error below occurs

However including tags during the creation of the alert rule via the tags tab seems to work properly.User's image

User's image

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 6,061 Reputation points
    2023-10-26T09:12:15.08+00:00

    Hi ,

    This is a weird behaviour with this specific resource on azure, here you have 2 workaround options:

    • Recreate the alert rule with the tags that you want (big impact)
    • Export the arm template modify and redeploy

    For the second option you can go to export template and copy the template and save as a json file : e.g. alert.json

    User's image

    Make the modification required in tags section and redeploy with :

    #If you are not login yet login with
    az login
    # execute here from az login
    az deployment group create \
        --resource-group <your resource group of alert>\
        --template-file alert.json
    

    That arm deployment update the tag, isn't the more nice solution , but it works.

    Cheers,

    Luis Arias


    If the information helped address your question, please Accept the answer.