Hi @Gordon Blackwell
The issue you're encountering in Azure is due to a Deny Assignment at the Resource Group level. Even though you're the Owner, Deny Assignments override role-based access control (RBAC) permissions, including Owner. That means:
A System Assigned Deny Assignment explicitly prevents deletion or modification of certain resources (in this case, the Log Analytics Workspace or the entire Resource Group).
Deny Assignments are usually created by Azure policies, Blueprints,
Steps to Resolve & Delete the Resource:
1. Identify the Source of the Deny Assignment
Go to Azure Portal > Resource Group in question.
Click Access Control (IAM) > Deny assignments tab.
Look at the "Created By" field. This will tell you whether it's from:
a) An Azure Policy or Blueprint
If it’s Azure Policy:
Go to Azure Policy > Assignments
Find the policy that applies to the subscription/resource group
Either exclude the resource group or delete the assignment
If it’s a Blueprint:
Go to Blueprints > Assigned Blueprints
Locate the one that includes this resource group and unassign it (this will remove deny assignments)
Note: It may take several minutes after unassigning a policy/blueprint
2. Once the deny assignment disappears, you (as Owner) should now be able to delete the Log Analytics Workspace and the Resource Group.
References:
https://learn.microsoft.com/en-us/azure/role-based-access-control/deny-assignments?tabs=azure-portal
Please let me know if you face any challenge here, I can help you to resolve this issue further
Provide your valuable Comments.
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.