Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable logging by category group for microsoft.network/networkmanagers/ipampools to Log Analytics - "code": "ResourceNotFound" #1411

Open
feliasson opened this issue Jan 8, 2025 · 0 comments

Comments

@feliasson
Copy link

feliasson commented Jan 8, 2025

Details of the scenario you tried and the problem that is occurring

I encountered an issue with the built-in Azure Policy initiative (Enable allLogs category group resource logging for supported resources to Log Analytics) that deploys diagnostic settings for resources of type microsoft.network/networkmanagers/ipampools.

The policy definition in your repository:
https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Monitoring/DS_LA_network-networkmanagers-ipampools_DINE.json

Despite the policy being applied correctly, deployments are failing with the below provided error.

  • The exact IPAM pool resource ID(s) exists and is within the policy assigned scope
  • All other resource types within the policy initiative are successfully deploying diagnostic settings from the same policy assignment
  • The IPAM pools shows up as "Resources to Remediate"
    • The remediation task however only triggers through manually clicking Remediate in the portal
      • Once triggered, the deployment fails with the below error.

Verbose logs showing the problem

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
  "details": [
    {
      "code": "ResourceNotFound",
      "message": "The resource '/subscriptions/<redacted>/resourcegroups/<redacted>/providers/microsoft.network/networkmanagers/<redacted>/ipampools/<redacted>' doesn't exist."
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant