1. Packages
  2. Azure Classic
  3. API Docs
  4. core
  5. ResourcePolicyExemption

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi

azure.core.ResourcePolicyExemption

Explore with Pulumi AI

Manages a Resource Policy Exemption.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "group1",
    location: "westus",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
    name: "network1",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    addressSpaces: ["10.0.0.0/16"],
});
const example = azure.policy.getPolicySetDefinition({
    displayName: "Audit machines with insecure password security settings",
});
const exampleResourcePolicyAssignment = new azure.core.ResourcePolicyAssignment("example", {
    name: "assignment1",
    resourceId: exampleVirtualNetwork.id,
    policyDefinitionId: example.then(example => example.id),
    location: exampleResourceGroup.location,
    identity: {
        type: "SystemAssigned",
    },
});
const exampleResourcePolicyExemption = new azure.core.ResourcePolicyExemption("example", {
    name: "exemption1",
    resourceId: exampleResourcePolicyAssignment.resourceId,
    policyAssignmentId: exampleResourcePolicyAssignment.id,
    exemptionCategory: "Mitigated",
});
Copy
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("example",
    name="group1",
    location="westus")
example_virtual_network = azure.network.VirtualNetwork("example",
    name="network1",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    address_spaces=["10.0.0.0/16"])
example = azure.policy.get_policy_set_definition(display_name="Audit machines with insecure password security settings")
example_resource_policy_assignment = azure.core.ResourcePolicyAssignment("example",
    name="assignment1",
    resource_id=example_virtual_network.id,
    policy_definition_id=example.id,
    location=example_resource_group.location,
    identity={
        "type": "SystemAssigned",
    })
example_resource_policy_exemption = azure.core.ResourcePolicyExemption("example",
    name="exemption1",
    resource_id=example_resource_policy_assignment.resource_id,
    policy_assignment_id=example_resource_policy_assignment.id,
    exemption_category="Mitigated")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/policy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("group1"),
			Location: pulumi.String("westus"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name:              pulumi.String("network1"),
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
		})
		if err != nil {
			return err
		}
		example, err := policy.LookupPolicySetDefinition(ctx, &policy.LookupPolicySetDefinitionArgs{
			DisplayName: pulumi.StringRef("Audit machines with insecure password security settings"),
		}, nil)
		if err != nil {
			return err
		}
		exampleResourcePolicyAssignment, err := core.NewResourcePolicyAssignment(ctx, "example", &core.ResourcePolicyAssignmentArgs{
			Name:               pulumi.String("assignment1"),
			ResourceId:         exampleVirtualNetwork.ID(),
			PolicyDefinitionId: pulumi.String(example.Id),
			Location:           exampleResourceGroup.Location,
			Identity: &core.ResourcePolicyAssignmentIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		_, err = core.NewResourcePolicyExemption(ctx, "example", &core.ResourcePolicyExemptionArgs{
			Name:               pulumi.String("exemption1"),
			ResourceId:         exampleResourcePolicyAssignment.ResourceId,
			PolicyAssignmentId: exampleResourcePolicyAssignment.ID(),
			ExemptionCategory:  pulumi.String("Mitigated"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "group1",
        Location = "westus",
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
    {
        Name = "network1",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
    });

    var example = Azure.Policy.GetPolicySetDefinition.Invoke(new()
    {
        DisplayName = "Audit machines with insecure password security settings",
    });

    var exampleResourcePolicyAssignment = new Azure.Core.ResourcePolicyAssignment("example", new()
    {
        Name = "assignment1",
        ResourceId = exampleVirtualNetwork.Id,
        PolicyDefinitionId = example.Apply(getPolicySetDefinitionResult => getPolicySetDefinitionResult.Id),
        Location = exampleResourceGroup.Location,
        Identity = new Azure.Core.Inputs.ResourcePolicyAssignmentIdentityArgs
        {
            Type = "SystemAssigned",
        },
    });

    var exampleResourcePolicyExemption = new Azure.Core.ResourcePolicyExemption("example", new()
    {
        Name = "exemption1",
        ResourceId = exampleResourcePolicyAssignment.ResourceId,
        PolicyAssignmentId = exampleResourcePolicyAssignment.Id,
        ExemptionCategory = "Mitigated",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.policy.PolicyFunctions;
import com.pulumi.azure.policy.inputs.GetPolicySetDefinitionArgs;
import com.pulumi.azure.core.ResourcePolicyAssignment;
import com.pulumi.azure.core.ResourcePolicyAssignmentArgs;
import com.pulumi.azure.core.inputs.ResourcePolicyAssignmentIdentityArgs;
import com.pulumi.azure.core.ResourcePolicyExemption;
import com.pulumi.azure.core.ResourcePolicyExemptionArgs;
import java.util.List;
import java.util.ArrayList;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
            .name("group1")
            .location("westus")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("network1")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .addressSpaces("10.0.0.0/16")
            .build());

        final var example = PolicyFunctions.getPolicySetDefinition(GetPolicySetDefinitionArgs.builder()
            .displayName("Audit machines with insecure password security settings")
            .build());

        var exampleResourcePolicyAssignment = new ResourcePolicyAssignment("exampleResourcePolicyAssignment", ResourcePolicyAssignmentArgs.builder()
            .name("assignment1")
            .resourceId(exampleVirtualNetwork.id())
            .policyDefinitionId(example.applyValue(getPolicySetDefinitionResult -> getPolicySetDefinitionResult.id()))
            .location(exampleResourceGroup.location())
            .identity(ResourcePolicyAssignmentIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .build());

        var exampleResourcePolicyExemption = new ResourcePolicyExemption("exampleResourcePolicyExemption", ResourcePolicyExemptionArgs.builder()
            .name("exemption1")
            .resourceId(exampleResourcePolicyAssignment.resourceId())
            .policyAssignmentId(exampleResourcePolicyAssignment.id())
            .exemptionCategory("Mitigated")
            .build());

    }
}
Copy
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: group1
      location: westus
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    name: example
    properties:
      name: network1
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      addressSpaces:
        - 10.0.0.0/16
  exampleResourcePolicyAssignment:
    type: azure:core:ResourcePolicyAssignment
    name: example
    properties:
      name: assignment1
      resourceId: ${exampleVirtualNetwork.id}
      policyDefinitionId: ${example.id}
      location: ${exampleResourceGroup.location}
      identity:
        type: SystemAssigned
  exampleResourcePolicyExemption:
    type: azure:core:ResourcePolicyExemption
    name: example
    properties:
      name: exemption1
      resourceId: ${exampleResourcePolicyAssignment.resourceId}
      policyAssignmentId: ${exampleResourcePolicyAssignment.id}
      exemptionCategory: Mitigated
variables:
  example:
    fn::invoke:
      function: azure:policy:getPolicySetDefinition
      arguments:
        displayName: Audit machines with insecure password security settings
Copy

Create ResourcePolicyExemption Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ResourcePolicyExemption(name: string, args: ResourcePolicyExemptionArgs, opts?: CustomResourceOptions);
@overload
def ResourcePolicyExemption(resource_name: str,
                            args: ResourcePolicyExemptionArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def ResourcePolicyExemption(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            exemption_category: Optional[str] = None,
                            policy_assignment_id: Optional[str] = None,
                            resource_id: Optional[str] = None,
                            description: Optional[str] = None,
                            display_name: Optional[str] = None,
                            expires_on: Optional[str] = None,
                            metadata: Optional[str] = None,
                            name: Optional[str] = None,
                            policy_definition_reference_ids: Optional[Sequence[str]] = None)
func NewResourcePolicyExemption(ctx *Context, name string, args ResourcePolicyExemptionArgs, opts ...ResourceOption) (*ResourcePolicyExemption, error)
public ResourcePolicyExemption(string name, ResourcePolicyExemptionArgs args, CustomResourceOptions? opts = null)
public ResourcePolicyExemption(String name, ResourcePolicyExemptionArgs args)
public ResourcePolicyExemption(String name, ResourcePolicyExemptionArgs args, CustomResourceOptions options)
type: azure:core:ResourcePolicyExemption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResourcePolicyExemptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResourcePolicyExemptionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResourcePolicyExemptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResourcePolicyExemptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResourcePolicyExemptionArgs
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 resourcePolicyExemptionResource = new Azure.Core.ResourcePolicyExemption("resourcePolicyExemptionResource", new()
{
    ExemptionCategory = "string",
    PolicyAssignmentId = "string",
    ResourceId = "string",
    Description = "string",
    DisplayName = "string",
    ExpiresOn = "string",
    Metadata = "string",
    Name = "string",
    PolicyDefinitionReferenceIds = new[]
    {
        "string",
    },
});
Copy
example, err := core.NewResourcePolicyExemption(ctx, "resourcePolicyExemptionResource", &core.ResourcePolicyExemptionArgs{
	ExemptionCategory:  pulumi.String("string"),
	PolicyAssignmentId: pulumi.String("string"),
	ResourceId:         pulumi.String("string"),
	Description:        pulumi.String("string"),
	DisplayName:        pulumi.String("string"),
	ExpiresOn:          pulumi.String("string"),
	Metadata:           pulumi.String("string"),
	Name:               pulumi.String("string"),
	PolicyDefinitionReferenceIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var resourcePolicyExemptionResource = new ResourcePolicyExemption("resourcePolicyExemptionResource", ResourcePolicyExemptionArgs.builder()
    .exemptionCategory("string")
    .policyAssignmentId("string")
    .resourceId("string")
    .description("string")
    .displayName("string")
    .expiresOn("string")
    .metadata("string")
    .name("string")
    .policyDefinitionReferenceIds("string")
    .build());
Copy
resource_policy_exemption_resource = azure.core.ResourcePolicyExemption("resourcePolicyExemptionResource",
    exemption_category="string",
    policy_assignment_id="string",
    resource_id="string",
    description="string",
    display_name="string",
    expires_on="string",
    metadata="string",
    name="string",
    policy_definition_reference_ids=["string"])
Copy
const resourcePolicyExemptionResource = new azure.core.ResourcePolicyExemption("resourcePolicyExemptionResource", {
    exemptionCategory: "string",
    policyAssignmentId: "string",
    resourceId: "string",
    description: "string",
    displayName: "string",
    expiresOn: "string",
    metadata: "string",
    name: "string",
    policyDefinitionReferenceIds: ["string"],
});
Copy
type: azure:core:ResourcePolicyExemption
properties:
    description: string
    displayName: string
    exemptionCategory: string
    expiresOn: string
    metadata: string
    name: string
    policyAssignmentId: string
    policyDefinitionReferenceIds:
        - string
    resourceId: string
Copy

ResourcePolicyExemption 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 ResourcePolicyExemption resource accepts the following input properties:

ExemptionCategory This property is required. string
The category of this policy exemption. Possible values are Waiver and Mitigated.
PolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
Description string
A description to use for this Policy Exemption.
DisplayName string
A friendly display name to use for this Policy Exemption.
ExpiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
Metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
Name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
PolicyDefinitionReferenceIds List<string>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
ExemptionCategory This property is required. string
The category of this policy exemption. Possible values are Waiver and Mitigated.
PolicyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
ResourceId
This property is required.
Changes to this property will trigger replacement.
string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
Description string
A description to use for this Policy Exemption.
DisplayName string
A friendly display name to use for this Policy Exemption.
ExpiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
Metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
Name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
PolicyDefinitionReferenceIds []string
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
exemptionCategory This property is required. String
The category of this policy exemption. Possible values are Waiver and Mitigated.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description String
A description to use for this Policy Exemption.
displayName String
A friendly display name to use for this Policy Exemption.
expiresOn String
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata String
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. String
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyDefinitionReferenceIds List<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
exemptionCategory This property is required. string
The category of this policy exemption. Possible values are Waiver and Mitigated.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
resourceId
This property is required.
Changes to this property will trigger replacement.
string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description string
A description to use for this Policy Exemption.
displayName string
A friendly display name to use for this Policy Exemption.
expiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyDefinitionReferenceIds string[]
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
exemption_category This property is required. str
The category of this policy exemption. Possible values are Waiver and Mitigated.
policy_assignment_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
resource_id
This property is required.
Changes to this property will trigger replacement.
str
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description str
A description to use for this Policy Exemption.
display_name str
A friendly display name to use for this Policy Exemption.
expires_on str
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata str
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. str
The name of the Policy Exemption. Changing this forces a new resource to be created.
policy_definition_reference_ids Sequence[str]
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
exemptionCategory This property is required. String
The category of this policy exemption. Possible values are Waiver and Mitigated.
policyAssignmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
resourceId
This property is required.
Changes to this property will trigger replacement.
String
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description String
A description to use for this Policy Exemption.
displayName String
A friendly display name to use for this Policy Exemption.
expiresOn String
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata String
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. String
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyDefinitionReferenceIds List<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResourcePolicyExemption resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ResourcePolicyExemption Resource

Get an existing ResourcePolicyExemption resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ResourcePolicyExemptionState, opts?: CustomResourceOptions): ResourcePolicyExemption
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        exemption_category: Optional[str] = None,
        expires_on: Optional[str] = None,
        metadata: Optional[str] = None,
        name: Optional[str] = None,
        policy_assignment_id: Optional[str] = None,
        policy_definition_reference_ids: Optional[Sequence[str]] = None,
        resource_id: Optional[str] = None) -> ResourcePolicyExemption
func GetResourcePolicyExemption(ctx *Context, name string, id IDInput, state *ResourcePolicyExemptionState, opts ...ResourceOption) (*ResourcePolicyExemption, error)
public static ResourcePolicyExemption Get(string name, Input<string> id, ResourcePolicyExemptionState? state, CustomResourceOptions? opts = null)
public static ResourcePolicyExemption get(String name, Output<String> id, ResourcePolicyExemptionState state, CustomResourceOptions options)
resources:  _:    type: azure:core:ResourcePolicyExemption    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string
A description to use for this Policy Exemption.
DisplayName string
A friendly display name to use for this Policy Exemption.
ExemptionCategory string
The category of this policy exemption. Possible values are Waiver and Mitigated.
ExpiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
Metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
Name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
PolicyAssignmentId Changes to this property will trigger replacement. string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
PolicyDefinitionReferenceIds List<string>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
ResourceId Changes to this property will trigger replacement. string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
Description string
A description to use for this Policy Exemption.
DisplayName string
A friendly display name to use for this Policy Exemption.
ExemptionCategory string
The category of this policy exemption. Possible values are Waiver and Mitigated.
ExpiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
Metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
Name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
PolicyAssignmentId Changes to this property will trigger replacement. string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
PolicyDefinitionReferenceIds []string
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
ResourceId Changes to this property will trigger replacement. string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description String
A description to use for this Policy Exemption.
displayName String
A friendly display name to use for this Policy Exemption.
exemptionCategory String
The category of this policy exemption. Possible values are Waiver and Mitigated.
expiresOn String
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata String
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. String
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyAssignmentId Changes to this property will trigger replacement. String
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
policyDefinitionReferenceIds List<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
resourceId Changes to this property will trigger replacement. String
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description string
A description to use for this Policy Exemption.
displayName string
A friendly display name to use for this Policy Exemption.
exemptionCategory string
The category of this policy exemption. Possible values are Waiver and Mitigated.
expiresOn string
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata string
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. string
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyAssignmentId Changes to this property will trigger replacement. string
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
policyDefinitionReferenceIds string[]
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
resourceId Changes to this property will trigger replacement. string
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description str
A description to use for this Policy Exemption.
display_name str
A friendly display name to use for this Policy Exemption.
exemption_category str
The category of this policy exemption. Possible values are Waiver and Mitigated.
expires_on str
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata str
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. str
The name of the Policy Exemption. Changing this forces a new resource to be created.
policy_assignment_id Changes to this property will trigger replacement. str
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
policy_definition_reference_ids Sequence[str]
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
resource_id Changes to this property will trigger replacement. str
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.
description String
A description to use for this Policy Exemption.
displayName String
A friendly display name to use for this Policy Exemption.
exemptionCategory String
The category of this policy exemption. Possible values are Waiver and Mitigated.
expiresOn String
The expiration date and time in UTC ISO 8601 format of this policy exemption.
metadata String
The metadata for this policy exemption. This is a JSON string representing additional metadata that should be stored with the policy exemption.
name Changes to this property will trigger replacement. String
The name of the Policy Exemption. Changing this forces a new resource to be created.
policyAssignmentId Changes to this property will trigger replacement. String
The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
policyDefinitionReferenceIds List<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
resourceId Changes to this property will trigger replacement. String
The Resource ID where the Policy Exemption should be applied. Changing this forces a new resource to be created.

Import

Policy Exemptions can be imported using the resource id, e.g.

$ pulumi import azure:core/resourcePolicyExemption:ResourcePolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Authorization/policyExemptions/exemption1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.