Share via

deploying Microsoft.Authorization/denyAssignments@2024-07-01-preview at resource group scope using ARM/Bicep.

Dev_Admin 21 Reputation points
2026-05-02T17:35:27.6066667+00:00

  We are deploying Microsoft.Authorization/denyAssignments@2024-07-01-preview at resource group scope using ARM/Bicep.

  The template compiles successfully, but deployment fails with:

  Code:

  UserAssignedDenyAssignmentsNotSupported

  Message:

  User assigned deny assignments are not allowed for current subscription.

  Request:

  Please confirm whether this subscription can be enabled/allowlisted for user-assigned deny assignments using Microsoft.Authorization/denyAssignments@2024-07-01-preview, or confirm that this capability is unavailable and only Azure-managed d

eny assignments through Deployment Stacks are supported.

  Business reason:

  We need to create a deny assignment with All Principals, excluded service principals/users, Actions *, DataActions *, and a specific NotActions allowlist to match an existing security control.

Azure Batch
Azure Batch

An Azure service that provides cloud-scale job scheduling and compute management.


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.