This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
Get the specified deny assignment.
Uses Azure REST API version 2024-07-01-preview.
Using getDenyAssignment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDenyAssignment(args: GetDenyAssignmentArgs, opts?: InvokeOptions): Promise<GetDenyAssignmentResult>
function getDenyAssignmentOutput(args: GetDenyAssignmentOutputArgs, opts?: InvokeOptions): Output<GetDenyAssignmentResult>def get_deny_assignment(deny_assignment_id: Optional[str] = None,
scope: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDenyAssignmentResult
def get_deny_assignment_output(deny_assignment_id: pulumi.Input[Optional[str]] = None,
scope: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDenyAssignmentResult]func LookupDenyAssignment(ctx *Context, args *LookupDenyAssignmentArgs, opts ...InvokeOption) (*LookupDenyAssignmentResult, error)
func LookupDenyAssignmentOutput(ctx *Context, args *LookupDenyAssignmentOutputArgs, opts ...InvokeOption) LookupDenyAssignmentResultOutput> Note: This function is named LookupDenyAssignment in the Go SDK.
public static class GetDenyAssignment
{
public static Task<GetDenyAssignmentResult> InvokeAsync(GetDenyAssignmentArgs args, InvokeOptions? opts = null)
public static Output<GetDenyAssignmentResult> Invoke(GetDenyAssignmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDenyAssignmentResult> getDenyAssignment(GetDenyAssignmentArgs args, InvokeOptions options)
public static Output<GetDenyAssignmentResult> getDenyAssignment(GetDenyAssignmentArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:authorization:getDenyAssignment
arguments:
# arguments dictionarydata "azure-native_authorization_get_deny_assignment" "name" {
# arguments
}The following arguments are supported:
- Deny
Assignment stringId - The ID of the deny assignment to get.
- Scope string
- The fully qualified Azure Resource manager identifier of the resource.
- Deny
Assignment stringId - The ID of the deny assignment to get.
- Scope string
- The fully qualified Azure Resource manager identifier of the resource.
- deny_
assignment_ stringid - The ID of the deny assignment to get.
- scope string
- The fully qualified Azure Resource manager identifier of the resource.
- deny
Assignment StringId - The ID of the deny assignment to get.
- scope String
- The fully qualified Azure Resource manager identifier of the resource.
- deny
Assignment stringId - The ID of the deny assignment to get.
- scope string
- The fully qualified Azure Resource manager identifier of the resource.
- deny_
assignment_ strid - The ID of the deny assignment to get.
- scope str
- The fully qualified Azure Resource manager identifier of the resource.
- deny
Assignment StringId - The ID of the deny assignment to get.
- scope String
- The fully qualified Azure Resource manager identifier of the resource.
getDenyAssignment Result
The following output properties are available:
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Scope string
- The deny assignment scope.
- 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
- 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 stringEffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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. Outputs. Deny Assignment Principal Response> - 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. Outputs. Deny Assignment Permission Response> - An array of permissions that are denied by the deny assignment.
- Principals
List<Pulumi.
Azure Native. Authorization. Outputs. Deny Assignment Principal Response> - Array of principals to which the deny assignment applies.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Scope string
- The deny assignment scope.
- 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
- 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 stringEffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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 Response - 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 Response - An array of permissions that are denied by the deny assignment.
- Principals
[]Deny
Assignment Principal Response - Array of principals to which the deny assignment applies.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- scope string
- The deny assignment scope.
- 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
- 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_ stringeffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- scope String
- The deny assignment scope.
- 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
- 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 StringEffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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 Response> - 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 Response> - An array of permissions that are denied by the deny assignment.
- principals
List<Deny
Assignment Principal Response> - Array of principals to which the deny assignment applies.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- scope string
- The deny assignment scope.
- 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
- 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 stringEffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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 Response[] - 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 Response[] - An array of permissions that are denied by the deny assignment.
- principals
Deny
Assignment Principal Response[] - Array of principals to which the deny assignment applies.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- scope str
- The deny assignment scope.
- 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
- 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_ streffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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 Response] - 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 Response] - An array of permissions that are denied by the deny assignment.
- principals
Sequence[Deny
Assignment Principal Response] - Array of principals to which the deny assignment applies.
- 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
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- scope String
- The deny assignment scope.
- 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
- 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 StringEffect - The effect of the deny assignment. 'enforced' blocks access, 'audit' logs without blocking.
- 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.
Supporting Types
DenyAssignmentPermissionResponse
- 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.
DenyAssignmentPrincipalResponse
SystemDataResponse
- 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.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi