Forum Discussion

sreeky's avatar
sreeky
Copper Contributor
Nov 07, 2023
Solved

Unable to exempt a resource in Defender for cloud

Hi Folks,   I am getting an error while trying to exempt a resource from Microsoft defender for cloud. I have all the required permissions and I can see this error only in 4 of my subscriptions wh...
  • LeonPavesic's avatar
    Nov 07, 2023

    Hi sreeky,

    the error you're seeing is "PolicyEntityMetadataTooLarge," which means that the metadata for the policy entity you're trying to exempt is too large. The maximum size for policy entity metadata is 65,536 bytes, and the metadata for the policy entity you're trying to exempt is 65,900 bytes.

    This error is only happening in 4 of your subscriptions because the policy entity metadata is larger than 65,536 bytes in those subscriptions. In your other subscriptions, the policy entity metadata is smaller than 65,536 bytes, so the exemption is working.

    To fix this error, you need to reduce the size of the metadata for the policy entity to 65,536 bytes or less. You can do this by removing any unnecessary metadata from the policy entity.

    Once you have reduced the size of the metadata, you should be able to exempt the resource without any problems.

    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic
    (LinkedIn)

Resources