i am getting this error, An "error call auditIfNotExists" in an Azure Activity Log typically indicates that an Azure Policy

Andrew Geriane 0 Reputation points
2025-10-09T16:30:22.72+00:00

I was able to set up everything in Azure Microsoft Azure activity Logs.

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
{count} votes

1 answer

Sort by: Most helpful
  1. Rupesh Asati 1,020 Reputation points Microsoft External Staff Moderator
    2025-10-14T14:16:57.7966667+00:00

    Hello Andrew Geriane

    Thanks for reaching out on Microsoft Q&A and really appreciate your patience while we looked into this.

    Understand from description that you are facing issue "error call auditIfNotExists" in your Azure Activity Log. This type of error typically occurs due to a policy that mandates certain auditing and diagnostic settings are enabled, particularly in the context of compliance and security for Azure resources.

    Steps:

    Check Azure Policy Assignments: This error often means there's a policy that requires certain resources or configuration settings to exist. You can find out which policy is triggering this error by checking your Azure Policy assignments within the Azure portal.

    List Assigned Policies: You can run the following command in Azure CLI to list all policies assigned to your subscription:

    az policy assignment list --scope /subscriptions/<your-subscription-id> Review Policy Definitions: Once you identify the specific policy, check its definition and compliance state. This will help you understand why your operation is being blocked.

    Modify Your Resource Deployment: Depending on the policy requirements, you may need to adjust your resource parameters (like SKU, location, or tags) to comply.

    Enable Diagnostic Logs: Since you're working with Azure Health Data Services, ensure that you have diagnostic logs enabled. You can refer to these resources for further help:

    Enable Diagnostic Logging in Azure API for FHIR

    Monitor the Azure Health Data Services de-identification service

    References Logging for Azure Health Data Services

    Monitor the Azure Health Data Services de-identification service

    Troubleshoot Resource creation was disallowed by policy

    I hope this helps in resolving the issue, do let me know if you have any further questions on this.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.