Azure policy for role assignments

Ananya Shrivastava 20 Reputation points
2025-03-31T07:49:24.88+00:00
  1. Hi @Stanislav Zhelyazkov , i have a question: { "mode": "All", "policyRule": { TypeScriptCopy
       "if"
    
    Report a concern

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
996 questions
{count} votes

Accepted answer
  1. Ashok Gandhi Kotnana 6,680 Reputation points Microsoft External Staff Moderator
    2025-04-01T12:11:05.4933333+00:00

    HI @Ananya Shrivastava,

    Deny assignments in Azure cannot be created directly through the portal, CLI, or PowerShell. They are managed by Azure and can only be established when deploying resources through a Deployment Stack

    But there is an alternate approach other than using Deployment Stack you have an azure blueprint that will do your job, before choosing this refer below screenshot and article

    Blueprint further will be used by Deployment stacks you have to do a rework if you are going with blueprintUser's image

    https://learn.microsoft.com/en-us/azure/governance/blueprints/concepts/resource-locking
    https://learn.microsoft.com/en-us/azure/governance/blueprints/overview

    Please provide your valuable comments User's image

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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