published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
Deny Assignment
Uses Azure REST API version 2024-07-01-preview.
Example Usage
Create deny assignment for subscription
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var denyAssignment = new AzureNative.Authorization.DenyAssignment("denyAssignment", new()
{
DenyAssignmentEffect = AzureNative.Authorization.DenyAssignmentEffect.Enforced,
DenyAssignmentId = "64b75d79-7a26-4341-944e-4f1a19f0e6ca",
DenyAssignmentName = "Deny delete on critical resources",
Description = "Prevent all users from deleting critical resources in the subscription.",
DoNotApplyToChildScopes = false,
ExcludePrincipals = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPrincipalArgs
{
Id = "ce2ce14e-85d7-4629-bdbc-454d0519d987",
Type = "ServicePrincipal",
},
},
Permissions = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPermissionArgs
{
Actions = new[]
{
"*/delete",
},
DataActions = new() { },
NotActions = new() { },
NotDataActions = new() { },
},
},
Principals = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPrincipalArgs
{
Id = "00000000-0000-0000-0000-000000000000",
Type = "SystemDefined",
},
},
Scope = "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2",
});
});
package main
import (
authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authorization.NewDenyAssignment(ctx, "denyAssignment", &authorization.DenyAssignmentArgs{
DenyAssignmentEffect: pulumi.String(authorization.DenyAssignmentEffectEnforced),
DenyAssignmentId: pulumi.String("64b75d79-7a26-4341-944e-4f1a19f0e6ca"),
DenyAssignmentName: pulumi.String("Deny delete on critical resources"),
Description: pulumi.String("Prevent all users from deleting critical resources in the subscription."),
DoNotApplyToChildScopes: pulumi.Bool(false),
ExcludePrincipals: authorization.DenyAssignmentPrincipalArray{
&authorization.DenyAssignmentPrincipalArgs{
Id: pulumi.String("ce2ce14e-85d7-4629-bdbc-454d0519d987"),
Type: pulumi.String("ServicePrincipal"),
},
},
Permissions: authorization.DenyAssignmentPermissionArray{
&authorization.DenyAssignmentPermissionArgs{
Actions: pulumi.StringArray{
pulumi.String("*/delete"),
},
DataActions: pulumi.StringArray{},
NotActions: pulumi.StringArray{},
NotDataActions: pulumi.StringArray{},
},
},
Principals: authorization.DenyAssignmentPrincipalArray{
&authorization.DenyAssignmentPrincipalArgs{
Id: pulumi.String("00000000-0000-0000-0000-000000000000"),
Type: pulumi.String("SystemDefined"),
},
},
Scope: pulumi.String("subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_authorization_denyassignment" "denyAssignment" {
deny_assignment_effect = "enforced"
deny_assignment_id = "64b75d79-7a26-4341-944e-4f1a19f0e6ca"
deny_assignment_name = "Deny delete on critical resources"
description = "Prevent all users from deleting critical resources in the subscription."
do_not_apply_to_child_scopes = false
exclude_principals {
id = "ce2ce14e-85d7-4629-bdbc-454d0519d987"
type = "ServicePrincipal"
}
permissions {
actions = ["*/delete"]
data_actions = []
not_actions = []
not_data_actions = []
}
principals {
id = "00000000-0000-0000-0000-000000000000"
type = "SystemDefined"
}
scope = "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.authorization.DenyAssignment;
import com.pulumi.azurenative.authorization.DenyAssignmentArgs;
import com.pulumi.azurenative.authorization.inputs.DenyAssignmentPrincipalArgs;
import com.pulumi.azurenative.authorization.inputs.DenyAssignmentPermissionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var denyAssignment = new DenyAssignment("denyAssignment", DenyAssignmentArgs.builder()
.denyAssignmentEffect("enforced")
.denyAssignmentId("64b75d79-7a26-4341-944e-4f1a19f0e6ca")
.denyAssignmentName("Deny delete on critical resources")
.description("Prevent all users from deleting critical resources in the subscription.")
.doNotApplyToChildScopes(false)
.excludePrincipals(DenyAssignmentPrincipalArgs.builder()
.id("ce2ce14e-85d7-4629-bdbc-454d0519d987")
.type("ServicePrincipal")
.build())
.permissions(DenyAssignmentPermissionArgs.builder()
.actions("*/delete")
.dataActions()
.notActions()
.notDataActions()
.build())
.principals(DenyAssignmentPrincipalArgs.builder()
.id("00000000-0000-0000-0000-000000000000")
.type("SystemDefined")
.build())
.scope("subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const denyAssignment = new azure_native.authorization.DenyAssignment("denyAssignment", {
denyAssignmentEffect: azure_native.authorization.DenyAssignmentEffect.Enforced,
denyAssignmentId: "64b75d79-7a26-4341-944e-4f1a19f0e6ca",
denyAssignmentName: "Deny delete on critical resources",
description: "Prevent all users from deleting critical resources in the subscription.",
doNotApplyToChildScopes: false,
excludePrincipals: [{
id: "ce2ce14e-85d7-4629-bdbc-454d0519d987",
type: "ServicePrincipal",
}],
permissions: [{
actions: ["*/delete"],
dataActions: [],
notActions: [],
notDataActions: [],
}],
principals: [{
id: "00000000-0000-0000-0000-000000000000",
type: "SystemDefined",
}],
scope: "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2",
});
import pulumi
import pulumi_azure_native as azure_native
deny_assignment = azure_native.authorization.DenyAssignment("denyAssignment",
deny_assignment_effect=azure_native.authorization.DenyAssignmentEffect.ENFORCED,
deny_assignment_id="64b75d79-7a26-4341-944e-4f1a19f0e6ca",
deny_assignment_name="Deny delete on critical resources",
description="Prevent all users from deleting critical resources in the subscription.",
do_not_apply_to_child_scopes=False,
exclude_principals=[{
"id": "ce2ce14e-85d7-4629-bdbc-454d0519d987",
"type": "ServicePrincipal",
}],
permissions=[{
"actions": ["*/delete"],
"data_actions": [],
"not_actions": [],
"not_data_actions": [],
}],
principals=[{
"id": "00000000-0000-0000-0000-000000000000",
"type": "SystemDefined",
}],
scope="subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2")
resources:
denyAssignment:
type: azure-native:authorization:DenyAssignment
properties:
denyAssignmentEffect: enforced
denyAssignmentId: 64b75d79-7a26-4341-944e-4f1a19f0e6ca
denyAssignmentName: Deny delete on critical resources
description: Prevent all users from deleting critical resources in the subscription.
doNotApplyToChildScopes: false
excludePrincipals:
- id: ce2ce14e-85d7-4629-bdbc-454d0519d987
type: ServicePrincipal
permissions:
- actions:
- '*/delete'
dataActions: []
notActions: []
notDataActions: []
principals:
- id: 00000000-0000-0000-0000-000000000000
type: SystemDefined
scope: subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2
Create DenyAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DenyAssignment(name: string, args: DenyAssignmentArgs, opts?: CustomResourceOptions);@overload
def DenyAssignment(resource_name: str,
args: DenyAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DenyAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
condition: Optional[str] = None,
condition_version: Optional[str] = None,
deny_assignment_effect: Optional[Union[str, DenyAssignmentEffect]] = None,
deny_assignment_id: Optional[str] = None,
deny_assignment_name: Optional[str] = None,
description: Optional[str] = None,
do_not_apply_to_child_scopes: Optional[bool] = None,
exclude_principals: Optional[Sequence[DenyAssignmentPrincipalArgs]] = None,
is_system_protected: Optional[bool] = None,
permissions: Optional[Sequence[DenyAssignmentPermissionArgs]] = None,
principals: Optional[Sequence[DenyAssignmentPrincipalArgs]] = None)func NewDenyAssignment(ctx *Context, name string, args DenyAssignmentArgs, opts ...ResourceOption) (*DenyAssignment, error)public DenyAssignment(string name, DenyAssignmentArgs args, CustomResourceOptions? opts = null)
public DenyAssignment(String name, DenyAssignmentArgs args)
public DenyAssignment(String name, DenyAssignmentArgs args, CustomResourceOptions options)
type: azure-native:authorization:DenyAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_authorization_deny_assignment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DenyAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DenyAssignmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DenyAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DenyAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DenyAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var denyAssignmentResource = new AzureNative.Authorization.DenyAssignment("denyAssignmentResource", new()
{
Scope = "string",
Condition = "string",
ConditionVersion = "string",
DenyAssignmentEffect = "string",
DenyAssignmentId = "string",
DenyAssignmentName = "string",
Description = "string",
DoNotApplyToChildScopes = false,
ExcludePrincipals = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPrincipalArgs
{
Id = "string",
Type = "string",
},
},
IsSystemProtected = false,
Permissions = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPermissionArgs
{
Actions = new[]
{
"string",
},
Condition = "string",
ConditionVersion = "string",
DataActions = new[]
{
"string",
},
NotActions = new[]
{
"string",
},
NotDataActions = new[]
{
"string",
},
},
},
Principals = new[]
{
new AzureNative.Authorization.Inputs.DenyAssignmentPrincipalArgs
{
Id = "string",
Type = "string",
},
},
});
example, err := authorization.NewDenyAssignment(ctx, "denyAssignmentResource", &authorization.DenyAssignmentArgs{
Scope: pulumi.String("string"),
Condition: pulumi.String("string"),
ConditionVersion: pulumi.String("string"),
DenyAssignmentEffect: pulumi.String("string"),
DenyAssignmentId: pulumi.String("string"),
DenyAssignmentName: pulumi.String("string"),
Description: pulumi.String("string"),
DoNotApplyToChildScopes: pulumi.Bool(false),
ExcludePrincipals: authorization.DenyAssignmentPrincipalArray{
&authorization.DenyAssignmentPrincipalArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
IsSystemProtected: pulumi.Bool(false),
Permissions: authorization.DenyAssignmentPermissionArray{
&authorization.DenyAssignmentPermissionArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
Condition: pulumi.String("string"),
ConditionVersion: pulumi.String("string"),
DataActions: pulumi.StringArray{
pulumi.String("string"),
},
NotActions: pulumi.StringArray{
pulumi.String("string"),
},
NotDataActions: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Principals: authorization.DenyAssignmentPrincipalArray{
&authorization.DenyAssignmentPrincipalArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
})
resource "azure-native_authorization_deny_assignment" "denyAssignmentResource" {
lifecycle {
create_before_destroy = true
}
scope = "string"
condition = "string"
condition_version = "string"
deny_assignment_effect = "string"
deny_assignment_id = "string"
deny_assignment_name = "string"
description = "string"
do_not_apply_to_child_scopes = false
exclude_principals {
id = "string"
type = "string"
}
is_system_protected = false
permissions {
actions = ["string"]
condition = "string"
condition_version = "string"
data_actions = ["string"]
not_actions = ["string"]
not_data_actions = ["string"]
}
principals {
id = "string"
type = "string"
}
}
var denyAssignmentResource = new DenyAssignment("denyAssignmentResource", DenyAssignmentArgs.builder()
.scope("string")
.condition("string")
.conditionVersion("string")
.denyAssignmentEffect("string")
.denyAssignmentId("string")
.denyAssignmentName("string")
.description("string")
.doNotApplyToChildScopes(false)
.excludePrincipals(DenyAssignmentPrincipalArgs.builder()
.id("string")
.type("string")
.build())
.isSystemProtected(false)
.permissions(DenyAssignmentPermissionArgs.builder()
.actions("string")
.condition("string")
.conditionVersion("string")
.dataActions("string")
.notActions("string")
.notDataActions("string")
.build())
.principals(DenyAssignmentPrincipalArgs.builder()
.id("string")
.type("string")
.build())
.build());
deny_assignment_resource = azure_native.authorization.DenyAssignment("denyAssignmentResource",
scope="string",
condition="string",
condition_version="string",
deny_assignment_effect="string",
deny_assignment_id="string",
deny_assignment_name="string",
description="string",
do_not_apply_to_child_scopes=False,
exclude_principals=[{
"id": "string",
"type": "string",
}],
is_system_protected=False,
permissions=[{
"actions": ["string"],
"condition": "string",
"condition_version": "string",
"data_actions": ["string"],
"not_actions": ["string"],
"not_data_actions": ["string"],
}],
principals=[{
"id": "string",
"type": "string",
}])
const denyAssignmentResource = new azure_native.authorization.DenyAssignment("denyAssignmentResource", {
scope: "string",
condition: "string",
conditionVersion: "string",
denyAssignmentEffect: "string",
denyAssignmentId: "string",
denyAssignmentName: "string",
description: "string",
doNotApplyToChildScopes: false,
excludePrincipals: [{
id: "string",
type: "string",
}],
isSystemProtected: false,
permissions: [{
actions: ["string"],
condition: "string",
conditionVersion: "string",
dataActions: ["string"],
notActions: ["string"],
notDataActions: ["string"],
}],
principals: [{
id: "string",
type: "string",
}],
});
type: azure-native:authorization:DenyAssignment
properties:
condition: string
conditionVersion: string
denyAssignmentEffect: string
denyAssignmentId: string
denyAssignmentName: string
description: string
doNotApplyToChildScopes: false
excludePrincipals:
- id: string
type: string
isSystemProtected: false
permissions:
- actions:
- string
condition: string
conditionVersion: string
dataActions:
- string
notActions:
- string
notDataActions:
- string
principals:
- id: string
type: string
scope: string
DenyAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DenyAssignment resource accepts the following input properties:
- Scope string
- The fully qualified Azure Resource manager identifier of the resource.
- Condition string
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- Condition
Version string - Version of the condition.
- Deny
Assignment string | Pulumi.Effect Azure Native. Authorization. Deny Assignment Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- Deny
Assignment stringId - The ID of the deny assignment to get.
- Deny
Assignment stringName - The display name of the deny assignment.
- Description string
- The description of the deny assignment.
- Do
Not boolApply To Child Scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- Exclude
Principals List<Pulumi.Azure Native. Authorization. Inputs. Deny Assignment Principal> - Array of principals to which the deny assignment does not apply.
- Is
System boolProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- Permissions
List<Pulumi.
Azure Native. Authorization. Inputs. Deny Assignment Permission> - An array of permissions that are denied by the deny assignment.
- Principals
List<Pulumi.
Azure Native. Authorization. Inputs. Deny Assignment Principal> - Array of principals to which the deny assignment applies.
- Scope string
- The fully qualified Azure Resource manager identifier of the resource.
- Condition string
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- Condition
Version string - Version of the condition.
- Deny
Assignment string | DenyEffect Assignment Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- Deny
Assignment stringId - The ID of the deny assignment to get.
- Deny
Assignment stringName - The display name of the deny assignment.
- Description string
- The description of the deny assignment.
- Do
Not boolApply To Child Scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- Exclude
Principals []DenyAssignment Principal Args - Array of principals to which the deny assignment does not apply.
- Is
System boolProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- Permissions
[]Deny
Assignment Permission Args - An array of permissions that are denied by the deny assignment.
- Principals
[]Deny
Assignment Principal Args - Array of principals to which the deny assignment applies.
- scope string
- The fully qualified Azure Resource manager identifier of the resource.
- condition string
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition_
version string - Version of the condition.
- deny_
assignment_ string | "enforced" | "audit"effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- deny_
assignment_ stringid - The ID of the deny assignment to get.
- deny_
assignment_ stringname - The display name of the deny assignment.
- description string
- The description of the deny assignment.
- do_
not_ boolapply_ to_ child_ scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- exclude_
principals list(object) - Array of principals to which the deny assignment does not apply.
- is_
system_ boolprotected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- permissions list(object)
- An array of permissions that are denied by the deny assignment.
- principals list(object)
- Array of principals to which the deny assignment applies.
- scope String
- The fully qualified Azure Resource manager identifier of the resource.
- condition String
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition
Version String - Version of the condition.
- deny
Assignment String | DenyEffect Assignment Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- deny
Assignment StringId - The ID of the deny assignment to get.
- deny
Assignment StringName - The display name of the deny assignment.
- description String
- The description of the deny assignment.
- do
Not BooleanApply To Child Scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- exclude
Principals List<DenyAssignment Principal> - Array of principals to which the deny assignment does not apply.
- is
System BooleanProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- permissions
List<Deny
Assignment Permission> - An array of permissions that are denied by the deny assignment.
- principals
List<Deny
Assignment Principal> - Array of principals to which the deny assignment applies.
- scope string
- The fully qualified Azure Resource manager identifier of the resource.
- condition string
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition
Version string - Version of the condition.
- deny
Assignment string | DenyEffect Assignment Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- deny
Assignment stringId - The ID of the deny assignment to get.
- deny
Assignment stringName - The display name of the deny assignment.
- description string
- The description of the deny assignment.
- do
Not booleanApply To Child Scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- exclude
Principals DenyAssignment Principal[] - Array of principals to which the deny assignment does not apply.
- is
System booleanProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- permissions
Deny
Assignment Permission[] - An array of permissions that are denied by the deny assignment.
- principals
Deny
Assignment Principal[] - Array of principals to which the deny assignment applies.
- scope str
- The fully qualified Azure Resource manager identifier of the resource.
- condition str
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition_
version str - Version of the condition.
- deny_
assignment_ str | Denyeffect Assignment Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- deny_
assignment_ strid - The ID of the deny assignment to get.
- deny_
assignment_ strname - The display name of the deny assignment.
- description str
- The description of the deny assignment.
- do_
not_ boolapply_ to_ child_ scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- exclude_
principals Sequence[DenyAssignment Principal Args] - Array of principals to which the deny assignment does not apply.
- is_
system_ boolprotected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- permissions
Sequence[Deny
Assignment Permission Args] - An array of permissions that are denied by the deny assignment.
- principals
Sequence[Deny
Assignment Principal Args] - Array of principals to which the deny assignment applies.
- scope String
- The fully qualified Azure Resource manager identifier of the resource.
- condition String
- The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'
- condition
Version String - Version of the condition.
- deny
Assignment String | "enforced" | "audit"Effect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- deny
Assignment StringId - The ID of the deny assignment to get.
- deny
Assignment StringName - The display name of the deny assignment.
- description String
- The description of the deny assignment.
- do
Not BooleanApply To Child Scopes - Determines if the deny assignment applies to child scopes. Default value is false.
- exclude
Principals List<Property Map> - Array of principals to which the deny assignment does not apply.
- is
System BooleanProtected - Specifies whether this deny assignment was created by Azure and cannot be edited or deleted.
- permissions List<Property Map>
- An array of permissions that are denied by the deny assignment.
- principals List<Property Map>
- Array of principals to which the deny assignment applies.
Outputs
All input properties are implicitly available as output properties. Additionally, the DenyAssignment resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
By string - Id of the user who created the assignment
- Created
On string - Time it was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Authorization. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
By string - Id of the user who updated the assignment
- Updated
On string - Time it was updated
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
By string - Id of the user who created the assignment
- Created
On string - Time it was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
By string - Id of the user who updated the assignment
- Updated
On string - Time it was updated
- azure_
api_ stringversion - The Azure API version of the resource.
- created_
by string - Id of the user who created the assignment
- created_
on string - Time it was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated_
by string - Id of the user who updated the assignment
- updated_
on string - Time it was updated
- azure
Api StringVersion - The Azure API version of the resource.
- created
By String - Id of the user who created the assignment
- created
On String - Time it was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
By String - Id of the user who updated the assignment
- updated
On String - Time it was updated
- azure
Api stringVersion - The Azure API version of the resource.
- created
By string - Id of the user who created the assignment
- created
On string - Time it was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
By string - Id of the user who updated the assignment
- updated
On string - Time it was updated
- azure_
api_ strversion - The Azure API version of the resource.
- created_
by str - Id of the user who created the assignment
- created_
on str - Time it was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated_
by str - Id of the user who updated the assignment
- updated_
on str - Time it was updated
- azure
Api StringVersion - The Azure API version of the resource.
- created
By String - Id of the user who created the assignment
- created
On String - Time it was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
By String - Id of the user who updated the assignment
- updated
On String - Time it was updated
Supporting Types
DenyAssignmentEffect, DenyAssignmentEffectArgs
- Enforced
enforcedenforced- Audit
auditaudit
- Deny
Assignment Effect Enforced enforcedenforced- Deny
Assignment Effect Audit auditaudit
- "enforced"
enforcedenforced- "audit"
auditaudit
- Enforced
enforcedenforced- Audit
auditaudit
- Enforced
enforcedenforced- Audit
auditaudit
- ENFORCED
enforcedenforced- AUDIT
auditaudit
- "enforced"
enforcedenforced- "audit"
auditaudit
DenyAssignmentPermission, DenyAssignmentPermissionArgs
Deny assignment permissions.- Actions List<string>
- Actions to which the deny assignment does not grant access.
- Condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- Condition
Version string - Version of the condition.
- Data
Actions List<string> - Data actions to which the deny assignment does not grant access.
- Not
Actions List<string> - Actions to exclude from that the deny assignment does not grant access.
- Not
Data List<string>Actions - Data actions to exclude from that the deny assignment does not grant access.
- Actions []string
- Actions to which the deny assignment does not grant access.
- Condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- Condition
Version string - Version of the condition.
- Data
Actions []string - Data actions to which the deny assignment does not grant access.
- Not
Actions []string - Actions to exclude from that the deny assignment does not grant access.
- Not
Data []stringActions - Data actions to exclude from that the deny assignment does not grant access.
- actions list(string)
- Actions to which the deny assignment does not grant access.
- condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition_
version string - Version of the condition.
- data_
actions list(string) - Data actions to which the deny assignment does not grant access.
- not_
actions list(string) - Actions to exclude from that the deny assignment does not grant access.
- not_
data_ list(string)actions - Data actions to exclude from that the deny assignment does not grant access.
- actions List<String>
- Actions to which the deny assignment does not grant access.
- condition String
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version String - Version of the condition.
- data
Actions List<String> - Data actions to which the deny assignment does not grant access.
- not
Actions List<String> - Actions to exclude from that the deny assignment does not grant access.
- not
Data List<String>Actions - Data actions to exclude from that the deny assignment does not grant access.
- actions string[]
- Actions to which the deny assignment does not grant access.
- condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version string - Version of the condition.
- data
Actions string[] - Data actions to which the deny assignment does not grant access.
- not
Actions string[] - Actions to exclude from that the deny assignment does not grant access.
- not
Data string[]Actions - Data actions to exclude from that the deny assignment does not grant access.
- actions Sequence[str]
- Actions to which the deny assignment does not grant access.
- condition str
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition_
version str - Version of the condition.
- data_
actions Sequence[str] - Data actions to which the deny assignment does not grant access.
- not_
actions Sequence[str] - Actions to exclude from that the deny assignment does not grant access.
- not_
data_ Sequence[str]actions - Data actions to exclude from that the deny assignment does not grant access.
- actions List<String>
- Actions to which the deny assignment does not grant access.
- condition String
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version String - Version of the condition.
- data
Actions List<String> - Data actions to which the deny assignment does not grant access.
- not
Actions List<String> - Actions to exclude from that the deny assignment does not grant access.
- not
Data List<String>Actions - Data actions to exclude from that the deny assignment does not grant access.
DenyAssignmentPermissionResponse, DenyAssignmentPermissionResponseArgs
Deny assignment permissions.- Actions List<string>
- Actions to which the deny assignment does not grant access.
- Condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- Condition
Version string - Version of the condition.
- Data
Actions List<string> - Data actions to which the deny assignment does not grant access.
- Not
Actions List<string> - Actions to exclude from that the deny assignment does not grant access.
- Not
Data List<string>Actions - Data actions to exclude from that the deny assignment does not grant access.
- Actions []string
- Actions to which the deny assignment does not grant access.
- Condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- Condition
Version string - Version of the condition.
- Data
Actions []string - Data actions to which the deny assignment does not grant access.
- Not
Actions []string - Actions to exclude from that the deny assignment does not grant access.
- Not
Data []stringActions - Data actions to exclude from that the deny assignment does not grant access.
- actions list(string)
- Actions to which the deny assignment does not grant access.
- condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition_
version string - Version of the condition.
- data_
actions list(string) - Data actions to which the deny assignment does not grant access.
- not_
actions list(string) - Actions to exclude from that the deny assignment does not grant access.
- not_
data_ list(string)actions - Data actions to exclude from that the deny assignment does not grant access.
- actions List<String>
- Actions to which the deny assignment does not grant access.
- condition String
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version String - Version of the condition.
- data
Actions List<String> - Data actions to which the deny assignment does not grant access.
- not
Actions List<String> - Actions to exclude from that the deny assignment does not grant access.
- not
Data List<String>Actions - Data actions to exclude from that the deny assignment does not grant access.
- actions string[]
- Actions to which the deny assignment does not grant access.
- condition string
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version string - Version of the condition.
- data
Actions string[] - Data actions to which the deny assignment does not grant access.
- not
Actions string[] - Actions to exclude from that the deny assignment does not grant access.
- not
Data string[]Actions - Data actions to exclude from that the deny assignment does not grant access.
- actions Sequence[str]
- Actions to which the deny assignment does not grant access.
- condition str
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition_
version str - Version of the condition.
- data_
actions Sequence[str] - Data actions to which the deny assignment does not grant access.
- not_
actions Sequence[str] - Actions to exclude from that the deny assignment does not grant access.
- not_
data_ Sequence[str]actions - Data actions to exclude from that the deny assignment does not grant access.
- actions List<String>
- Actions to which the deny assignment does not grant access.
- condition String
- The conditions on the Deny assignment permission. This limits the resources it applies to.
- condition
Version String - Version of the condition.
- data
Actions List<String> - Data actions to which the deny assignment does not grant access.
- not
Actions List<String> - Actions to exclude from that the deny assignment does not grant access.
- not
Data List<String>Actions - Data actions to exclude from that the deny assignment does not grant access.
DenyAssignmentPrincipal, DenyAssignmentPrincipalArgs
Deny assignment principal.DenyAssignmentPrincipalResponse, DenyAssignmentPrincipalResponseArgs
Deny assignment principal.SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:authorization:DenyAssignment 64b75d79-7a26-4341-944e-4f1a19f0e6ca /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Wednesday, Aug 5, 2026 by Pulumi