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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.core.SubscriptionPolicyExemption

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a Subscription Policy Exemption.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.core.getSubscription({});
    const exampleGetPolicySetDefinition = azure.policy.getPolicySetDefinition({
        displayName: "Audit machines with insecure password security settings",
    });
    const exampleSubscriptionPolicyAssignment = new azure.core.SubscriptionPolicyAssignment("example", {
        name: "exampleAssignment",
        subscriptionId: example.then(example => example.id),
        policyDefinitionId: exampleGetPolicySetDefinition.then(exampleGetPolicySetDefinition => exampleGetPolicySetDefinition.id),
        location: "westus",
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleSubscriptionPolicyExemption = new azure.core.SubscriptionPolicyExemption("example", {
        name: "exampleExemption",
        subscriptionId: example.then(example => example.id),
        policyAssignmentId: exampleSubscriptionPolicyAssignment.id,
        exemptionCategory: "Mitigated",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.get_subscription()
    example_get_policy_set_definition = azure.policy.get_policy_set_definition(display_name="Audit machines with insecure password security settings")
    example_subscription_policy_assignment = azure.core.SubscriptionPolicyAssignment("example",
        name="exampleAssignment",
        subscription_id=example.id,
        policy_definition_id=example_get_policy_set_definition.id,
        location="westus",
        identity={
            "type": "SystemAssigned",
        })
    example_subscription_policy_exemption = azure.core.SubscriptionPolicyExemption("example",
        name="exampleExemption",
        subscription_id=example.id,
        policy_assignment_id=example_subscription_policy_assignment.id,
        exemption_category="Mitigated")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"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 {
    		example, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		exampleGetPolicySetDefinition, err := policy.LookupPolicySetDefinition(ctx, &policy.LookupPolicySetDefinitionArgs{
    			DisplayName: pulumi.StringRef("Audit machines with insecure password security settings"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleSubscriptionPolicyAssignment, err := core.NewSubscriptionPolicyAssignment(ctx, "example", &core.SubscriptionPolicyAssignmentArgs{
    			Name:               pulumi.String("exampleAssignment"),
    			SubscriptionId:     pulumi.String(example.Id),
    			PolicyDefinitionId: pulumi.String(exampleGetPolicySetDefinition.Id),
    			Location:           pulumi.String("westus"),
    			Identity: &core.SubscriptionPolicyAssignmentIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = core.NewSubscriptionPolicyExemption(ctx, "example", &core.SubscriptionPolicyExemptionArgs{
    			Name:               pulumi.String("exampleExemption"),
    			SubscriptionId:     pulumi.String(example.Id),
    			PolicyAssignmentId: exampleSubscriptionPolicyAssignment.ID(),
    			ExemptionCategory:  pulumi.String("Mitigated"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.Core.GetSubscription.Invoke();
    
        var exampleGetPolicySetDefinition = Azure.Policy.GetPolicySetDefinition.Invoke(new()
        {
            DisplayName = "Audit machines with insecure password security settings",
        });
    
        var exampleSubscriptionPolicyAssignment = new Azure.Core.SubscriptionPolicyAssignment("example", new()
        {
            Name = "exampleAssignment",
            SubscriptionId = example.Apply(getSubscriptionResult => getSubscriptionResult.Id),
            PolicyDefinitionId = exampleGetPolicySetDefinition.Apply(getPolicySetDefinitionResult => getPolicySetDefinitionResult.Id),
            Location = "westus",
            Identity = new Azure.Core.Inputs.SubscriptionPolicyAssignmentIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleSubscriptionPolicyExemption = new Azure.Core.SubscriptionPolicyExemption("example", new()
        {
            Name = "exampleExemption",
            SubscriptionId = example.Apply(getSubscriptionResult => getSubscriptionResult.Id),
            PolicyAssignmentId = exampleSubscriptionPolicyAssignment.Id,
            ExemptionCategory = "Mitigated",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.CoreFunctions;
    import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
    import com.pulumi.azure.policy.PolicyFunctions;
    import com.pulumi.azure.policy.inputs.GetPolicySetDefinitionArgs;
    import com.pulumi.azure.core.SubscriptionPolicyAssignment;
    import com.pulumi.azure.core.SubscriptionPolicyAssignmentArgs;
    import com.pulumi.azure.core.inputs.SubscriptionPolicyAssignmentIdentityArgs;
    import com.pulumi.azure.core.SubscriptionPolicyExemption;
    import com.pulumi.azure.core.SubscriptionPolicyExemptionArgs;
    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) {
            final var example = CoreFunctions.getSubscription();
    
            final var exampleGetPolicySetDefinition = PolicyFunctions.getPolicySetDefinition(GetPolicySetDefinitionArgs.builder()
                .displayName("Audit machines with insecure password security settings")
                .build());
    
            var exampleSubscriptionPolicyAssignment = new SubscriptionPolicyAssignment("exampleSubscriptionPolicyAssignment", SubscriptionPolicyAssignmentArgs.builder()
                .name("exampleAssignment")
                .subscriptionId(example.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
                .policyDefinitionId(exampleGetPolicySetDefinition.applyValue(getPolicySetDefinitionResult -> getPolicySetDefinitionResult.id()))
                .location("westus")
                .identity(SubscriptionPolicyAssignmentIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleSubscriptionPolicyExemption = new SubscriptionPolicyExemption("exampleSubscriptionPolicyExemption", SubscriptionPolicyExemptionArgs.builder()
                .name("exampleExemption")
                .subscriptionId(example.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
                .policyAssignmentId(exampleSubscriptionPolicyAssignment.id())
                .exemptionCategory("Mitigated")
                .build());
    
        }
    }
    
    resources:
      exampleSubscriptionPolicyAssignment:
        type: azure:core:SubscriptionPolicyAssignment
        name: example
        properties:
          name: exampleAssignment
          subscriptionId: ${example.id}
          policyDefinitionId: ${exampleGetPolicySetDefinition.id}
          location: westus
          identity:
            type: SystemAssigned
      exampleSubscriptionPolicyExemption:
        type: azure:core:SubscriptionPolicyExemption
        name: example
        properties:
          name: exampleExemption
          subscriptionId: ${example.id}
          policyAssignmentId: ${exampleSubscriptionPolicyAssignment.id}
          exemptionCategory: Mitigated
    variables:
      example:
        fn::invoke:
          Function: azure:core:getSubscription
          Arguments: {}
      exampleGetPolicySetDefinition:
        fn::invoke:
          Function: azure:policy:getPolicySetDefinition
          Arguments:
            displayName: Audit machines with insecure password security settings
    

    Create SubscriptionPolicyExemption Resource

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

    Constructor syntax

    new SubscriptionPolicyExemption(name: string, args: SubscriptionPolicyExemptionArgs, opts?: CustomResourceOptions);
    @overload
    def SubscriptionPolicyExemption(resource_name: str,
                                    args: SubscriptionPolicyExemptionArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubscriptionPolicyExemption(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    exemption_category: Optional[str] = None,
                                    policy_assignment_id: Optional[str] = None,
                                    subscription_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 NewSubscriptionPolicyExemption(ctx *Context, name string, args SubscriptionPolicyExemptionArgs, opts ...ResourceOption) (*SubscriptionPolicyExemption, error)
    public SubscriptionPolicyExemption(string name, SubscriptionPolicyExemptionArgs args, CustomResourceOptions? opts = null)
    public SubscriptionPolicyExemption(String name, SubscriptionPolicyExemptionArgs args)
    public SubscriptionPolicyExemption(String name, SubscriptionPolicyExemptionArgs args, CustomResourceOptions options)
    
    type: azure:core:SubscriptionPolicyExemption
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SubscriptionPolicyExemptionArgs
    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 SubscriptionPolicyExemptionArgs
    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 SubscriptionPolicyExemptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubscriptionPolicyExemptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubscriptionPolicyExemptionArgs
    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 subscriptionPolicyExemptionResource = new Azure.Core.SubscriptionPolicyExemption("subscriptionPolicyExemptionResource", new()
    {
        ExemptionCategory = "string",
        PolicyAssignmentId = "string",
        SubscriptionId = "string",
        Description = "string",
        DisplayName = "string",
        ExpiresOn = "string",
        Metadata = "string",
        Name = "string",
        PolicyDefinitionReferenceIds = new[]
        {
            "string",
        },
    });
    
    example, err := core.NewSubscriptionPolicyExemption(ctx, "subscriptionPolicyExemptionResource", &core.SubscriptionPolicyExemptionArgs{
    	ExemptionCategory:  pulumi.String("string"),
    	PolicyAssignmentId: pulumi.String("string"),
    	SubscriptionId:     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"),
    	},
    })
    
    var subscriptionPolicyExemptionResource = new SubscriptionPolicyExemption("subscriptionPolicyExemptionResource", SubscriptionPolicyExemptionArgs.builder()
        .exemptionCategory("string")
        .policyAssignmentId("string")
        .subscriptionId("string")
        .description("string")
        .displayName("string")
        .expiresOn("string")
        .metadata("string")
        .name("string")
        .policyDefinitionReferenceIds("string")
        .build());
    
    subscription_policy_exemption_resource = azure.core.SubscriptionPolicyExemption("subscriptionPolicyExemptionResource",
        exemption_category="string",
        policy_assignment_id="string",
        subscription_id="string",
        description="string",
        display_name="string",
        expires_on="string",
        metadata="string",
        name="string",
        policy_definition_reference_ids=["string"])
    
    const subscriptionPolicyExemptionResource = new azure.core.SubscriptionPolicyExemption("subscriptionPolicyExemptionResource", {
        exemptionCategory: "string",
        policyAssignmentId: "string",
        subscriptionId: "string",
        description: "string",
        displayName: "string",
        expiresOn: "string",
        metadata: "string",
        name: "string",
        policyDefinitionReferenceIds: ["string"],
    });
    
    type: azure:core:SubscriptionPolicyExemption
    properties:
        description: string
        displayName: string
        exemptionCategory: string
        expiresOn: string
        metadata: string
        name: string
        policyAssignmentId: string
        policyDefinitionReferenceIds:
            - string
        subscriptionId: string
    

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

    ExemptionCategory string
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    PolicyAssignmentId string
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    SubscriptionId string
    The Subscription 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 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 string
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    PolicyAssignmentId string
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    SubscriptionId string
    The Subscription 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 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 String
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    policyAssignmentId String
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    subscriptionId String
    The Subscription 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 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 string
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    policyAssignmentId string
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    subscriptionId string
    The Subscription 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 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 str
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    policy_assignment_id str
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    subscription_id str
    The Subscription 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 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 String
    The category of this policy exemption. Possible values are Waiver and Mitigated.
    policyAssignmentId String
    The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.
    subscriptionId String
    The Subscription 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 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 SubscriptionPolicyExemption 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 SubscriptionPolicyExemption Resource

    Get an existing SubscriptionPolicyExemption 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?: SubscriptionPolicyExemptionState, opts?: CustomResourceOptions): SubscriptionPolicyExemption
    @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,
            subscription_id: Optional[str] = None) -> SubscriptionPolicyExemption
    func GetSubscriptionPolicyExemption(ctx *Context, name string, id IDInput, state *SubscriptionPolicyExemptionState, opts ...ResourceOption) (*SubscriptionPolicyExemption, error)
    public static SubscriptionPolicyExemption Get(string name, Input<string> id, SubscriptionPolicyExemptionState? state, CustomResourceOptions? opts = null)
    public static SubscriptionPolicyExemption get(String name, Output<String> id, SubscriptionPolicyExemptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 string
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    PolicyAssignmentId 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.
    SubscriptionId string
    The Subscription 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 string
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    PolicyAssignmentId 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.
    SubscriptionId string
    The Subscription 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 String
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    policyAssignmentId 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.
    subscriptionId String
    The Subscription 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 string
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    policyAssignmentId 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.
    subscriptionId string
    The Subscription 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 str
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    policy_assignment_id 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.
    subscription_id str
    The Subscription 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 String
    The name of the Policy Exemption. Changing this forces a new resource to be created.
    policyAssignmentId 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.
    subscriptionId String
    The Subscription 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/subscriptionPolicyExemption:SubscriptionPolicyExemption exemption1 /subscriptions/00000000-0000-0000-000000000000/providers/Microsoft.Authorization/policyExemptions/exemption1
    

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi