1. Packages
  2. Azure Classic
  3. API Docs
  4. policy
  5. PolicySetDefinition

We recommend using Azure Native.

Azure Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi

azure.policy.PolicySetDefinition

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi

    Manages a policy set definition.

    NOTE: Policy set definitions (also known as policy initiatives) do not take effect until they are assigned to a scope using a Policy Set Assignment.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Policy.PolicySetDefinition("example", new()
        {
            DisplayName = "Test Policy Set",
            Parameters = @"    {
            ""allowedLocations"": {
                ""type"": ""Array"",
                ""metadata"": {
                    ""description"": ""The list of allowed locations for resources."",
                    ""displayName"": ""Allowed locations"",
                    ""strongType"": ""location""
                }
            }
        }
    
    ",
            PolicyDefinitionReferences = new[]
            {
                new Azure.Policy.Inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs
                {
                    ParameterValues = @"    {
          ""listOfAllowedLocations"": {""value"": ""[parameters('allowedLocations')]""}
        }
        
    ",
                    PolicyDefinitionId = "/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988",
                },
            },
            PolicyType = "Custom",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/policy"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := policy.NewPolicySetDefinition(ctx, "example", &policy.PolicySetDefinitionArgs{
    			DisplayName: pulumi.String("Test Policy Set"),
    			Parameters:  pulumi.String("    {\n        \"allowedLocations\": {\n            \"type\": \"Array\",\n            \"metadata\": {\n                \"description\": \"The list of allowed locations for resources.\",\n                \"displayName\": \"Allowed locations\",\n                \"strongType\": \"location\"\n            }\n        }\n    }\n\n"),
    			PolicyDefinitionReferences: policy.PolicySetDefinitionPolicyDefinitionReferenceArray{
    				&policy.PolicySetDefinitionPolicyDefinitionReferenceArgs{
    					ParameterValues:    pulumi.String("    {\n      \"listOfAllowedLocations\": {\"value\": \"[parameters('allowedLocations')]\"}\n    }\n    \n"),
    					PolicyDefinitionId: pulumi.String("/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988"),
    				},
    			},
    			PolicyType: pulumi.String("Custom"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.policy.PolicySetDefinition;
    import com.pulumi.azure.policy.PolicySetDefinitionArgs;
    import com.pulumi.azure.policy.inputs.PolicySetDefinitionPolicyDefinitionReferenceArgs;
    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 example = new PolicySetDefinition("example", PolicySetDefinitionArgs.builder()        
                .displayName("Test Policy Set")
                .parameters("""
        {
            "allowedLocations": {
                "type": "Array",
                "metadata": {
                    "description": "The list of allowed locations for resources.",
                    "displayName": "Allowed locations",
                    "strongType": "location"
                }
            }
        }
    
                """)
                .policyDefinitionReferences(PolicySetDefinitionPolicyDefinitionReferenceArgs.builder()
                    .parameterValues("""
        {
          "listOfAllowedLocations": {"value": "[parameters('allowedLocations')]"}
        }
        
                    """)
                    .policyDefinitionId("/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988")
                    .build())
                .policyType("Custom")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.policy.PolicySetDefinition("example",
        display_name="Test Policy Set",
        parameters="""    {
            "allowedLocations": {
                "type": "Array",
                "metadata": {
                    "description": "The list of allowed locations for resources.",
                    "displayName": "Allowed locations",
                    "strongType": "location"
                }
            }
        }
    
    """,
        policy_definition_references=[azure.policy.PolicySetDefinitionPolicyDefinitionReferenceArgs(
            parameter_values="""    {
          "listOfAllowedLocations": {"value": "[parameters('allowedLocations')]"}
        }
        
    """,
            policy_definition_id="/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988",
        )],
        policy_type="Custom")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.policy.PolicySetDefinition("example", {
        displayName: "Test Policy Set",
        parameters: `    {
            "allowedLocations": {
                "type": "Array",
                "metadata": {
                    "description": "The list of allowed locations for resources.",
                    "displayName": "Allowed locations",
                    "strongType": "location"
                }
            }
        }
    
    `,
        policyDefinitionReferences: [{
            parameterValues: `    {
          "listOfAllowedLocations": {"value": "[parameters('allowedLocations')]"}
        }
        
    `,
            policyDefinitionId: "/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988",
        }],
        policyType: "Custom",
    });
    
    resources:
      example:
        type: azure:policy:PolicySetDefinition
        properties:
          displayName: Test Policy Set
          parameters: |2+
                {
                    "allowedLocations": {
                        "type": "Array",
                        "metadata": {
                            "description": "The list of allowed locations for resources.",
                            "displayName": "Allowed locations",
                            "strongType": "location"
                        }
                    }
                }
    
          policyDefinitionReferences:
            - parameterValues: "    {\n      \"listOfAllowedLocations\": {\"value\": \"[parameters('allowedLocations')]\"}\n    }\n    \n"
              policyDefinitionId: /providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988
          policyType: Custom
    

    Create PolicySetDefinition Resource

    new PolicySetDefinition(name: string, args: PolicySetDefinitionArgs, opts?: CustomResourceOptions);
    @overload
    def PolicySetDefinition(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            description: Optional[str] = None,
                            display_name: Optional[str] = None,
                            management_group_id: Optional[str] = None,
                            metadata: Optional[str] = None,
                            name: Optional[str] = None,
                            parameters: Optional[str] = None,
                            policy_definition_groups: Optional[Sequence[PolicySetDefinitionPolicyDefinitionGroupArgs]] = None,
                            policy_definition_references: Optional[Sequence[PolicySetDefinitionPolicyDefinitionReferenceArgs]] = None,
                            policy_type: Optional[str] = None)
    @overload
    def PolicySetDefinition(resource_name: str,
                            args: PolicySetDefinitionArgs,
                            opts: Optional[ResourceOptions] = None)
    func NewPolicySetDefinition(ctx *Context, name string, args PolicySetDefinitionArgs, opts ...ResourceOption) (*PolicySetDefinition, error)
    public PolicySetDefinition(string name, PolicySetDefinitionArgs args, CustomResourceOptions? opts = null)
    public PolicySetDefinition(String name, PolicySetDefinitionArgs args)
    public PolicySetDefinition(String name, PolicySetDefinitionArgs args, CustomResourceOptions options)
    
    type: azure:policy:PolicySetDefinition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args PolicySetDefinitionArgs
    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 PolicySetDefinitionArgs
    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 PolicySetDefinitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicySetDefinitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicySetDefinitionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PolicySetDefinition Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PolicySetDefinition resource accepts the following input properties:

    DisplayName string

    The display name of the policy set definition.

    PolicyDefinitionReferences List<PolicySetDefinitionPolicyDefinitionReferenceArgs>

    One or more policy_definition_reference blocks as defined below.

    PolicyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    Description string

    The description of the policy set definition.

    ManagementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    Metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    Name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    Parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    PolicyDefinitionGroups List<PolicySetDefinitionPolicyDefinitionGroupArgs>

    One or more policy_definition_group blocks as defined below.

    DisplayName string

    The display name of the policy set definition.

    PolicyDefinitionReferences []PolicySetDefinitionPolicyDefinitionReferenceArgs

    One or more policy_definition_reference blocks as defined below.

    PolicyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    Description string

    The description of the policy set definition.

    ManagementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    Metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    Name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    Parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    PolicyDefinitionGroups []PolicySetDefinitionPolicyDefinitionGroupArgs

    One or more policy_definition_group blocks as defined below.

    displayName String

    The display name of the policy set definition.

    policyDefinitionReferences List<PolicySetDefinitionPolicyDefinitionReferenceArgs>

    One or more policy_definition_reference blocks as defined below.

    policyType String

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description String

    The description of the policy set definition.

    managementGroupId String

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata String

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name String

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters String

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups List<PolicySetDefinitionPolicyDefinitionGroupArgs>

    One or more policy_definition_group blocks as defined below.

    displayName string

    The display name of the policy set definition.

    policyDefinitionReferences PolicySetDefinitionPolicyDefinitionReferenceArgs[]

    One or more policy_definition_reference blocks as defined below.

    policyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description string

    The description of the policy set definition.

    managementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups PolicySetDefinitionPolicyDefinitionGroupArgs[]

    One or more policy_definition_group blocks as defined below.

    display_name str

    The display name of the policy set definition.

    policy_definition_references Sequence[PolicySetDefinitionPolicyDefinitionReferenceArgs]

    One or more policy_definition_reference blocks as defined below.

    policy_type str

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description str

    The description of the policy set definition.

    management_group_id str

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata str

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name str

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters str

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policy_definition_groups Sequence[PolicySetDefinitionPolicyDefinitionGroupArgs]

    One or more policy_definition_group blocks as defined below.

    displayName String

    The display name of the policy set definition.

    policyDefinitionReferences List<Property Map>

    One or more policy_definition_reference blocks as defined below.

    policyType String

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description String

    The description of the policy set definition.

    managementGroupId String

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata String

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name String

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters String

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups List<Property Map>

    One or more policy_definition_group blocks as defined below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicySetDefinition 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 PolicySetDefinition Resource

    Get an existing PolicySetDefinition 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?: PolicySetDefinitionState, opts?: CustomResourceOptions): PolicySetDefinition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            management_group_id: Optional[str] = None,
            metadata: Optional[str] = None,
            name: Optional[str] = None,
            parameters: Optional[str] = None,
            policy_definition_groups: Optional[Sequence[PolicySetDefinitionPolicyDefinitionGroupArgs]] = None,
            policy_definition_references: Optional[Sequence[PolicySetDefinitionPolicyDefinitionReferenceArgs]] = None,
            policy_type: Optional[str] = None) -> PolicySetDefinition
    func GetPolicySetDefinition(ctx *Context, name string, id IDInput, state *PolicySetDefinitionState, opts ...ResourceOption) (*PolicySetDefinition, error)
    public static PolicySetDefinition Get(string name, Input<string> id, PolicySetDefinitionState? state, CustomResourceOptions? opts = null)
    public static PolicySetDefinition get(String name, Output<String> id, PolicySetDefinitionState 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

    The description of the policy set definition.

    DisplayName string

    The display name of the policy set definition.

    ManagementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    Metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    Name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    Parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    PolicyDefinitionGroups List<PolicySetDefinitionPolicyDefinitionGroupArgs>

    One or more policy_definition_group blocks as defined below.

    PolicyDefinitionReferences List<PolicySetDefinitionPolicyDefinitionReferenceArgs>

    One or more policy_definition_reference blocks as defined below.

    PolicyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    Description string

    The description of the policy set definition.

    DisplayName string

    The display name of the policy set definition.

    ManagementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    Metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    Name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    Parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    PolicyDefinitionGroups []PolicySetDefinitionPolicyDefinitionGroupArgs

    One or more policy_definition_group blocks as defined below.

    PolicyDefinitionReferences []PolicySetDefinitionPolicyDefinitionReferenceArgs

    One or more policy_definition_reference blocks as defined below.

    PolicyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description String

    The description of the policy set definition.

    displayName String

    The display name of the policy set definition.

    managementGroupId String

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata String

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name String

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters String

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups List<PolicySetDefinitionPolicyDefinitionGroupArgs>

    One or more policy_definition_group blocks as defined below.

    policyDefinitionReferences List<PolicySetDefinitionPolicyDefinitionReferenceArgs>

    One or more policy_definition_reference blocks as defined below.

    policyType String

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description string

    The description of the policy set definition.

    displayName string

    The display name of the policy set definition.

    managementGroupId string

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata string

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name string

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters string

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups PolicySetDefinitionPolicyDefinitionGroupArgs[]

    One or more policy_definition_group blocks as defined below.

    policyDefinitionReferences PolicySetDefinitionPolicyDefinitionReferenceArgs[]

    One or more policy_definition_reference blocks as defined below.

    policyType string

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description str

    The description of the policy set definition.

    display_name str

    The display name of the policy set definition.

    management_group_id str

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata str

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name str

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters str

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policy_definition_groups Sequence[PolicySetDefinitionPolicyDefinitionGroupArgs]

    One or more policy_definition_group blocks as defined below.

    policy_definition_references Sequence[PolicySetDefinitionPolicyDefinitionReferenceArgs]

    One or more policy_definition_reference blocks as defined below.

    policy_type str

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    description String

    The description of the policy set definition.

    displayName String

    The display name of the policy set definition.

    managementGroupId String

    The id of the Management Group where this policy set definition should be defined. Changing this forces a new resource to be created.

    metadata String

    The metadata for the policy set definition. This is a JSON object representing additional metadata that should be stored with the policy definition.

    name String

    The name of the policy set definition. Changing this forces a new resource to be created.

    parameters String

    Parameters for the policy set definition. This field is a JSON object that allows you to parameterize your policy definition.

    policyDefinitionGroups List<Property Map>

    One or more policy_definition_group blocks as defined below.

    policyDefinitionReferences List<Property Map>

    One or more policy_definition_reference blocks as defined below.

    policyType String

    The policy set type. Possible values are BuiltIn, Custom, NotSpecified and Static. Changing this forces a new resource to be created.

    Supporting Types

    PolicySetDefinitionPolicyDefinitionGroup

    Name string

    The name of this policy definition group.

    AdditionalMetadataResourceId string

    The ID of a resource that contains additional metadata about this policy definition group.

    Category string

    The category of this policy definition group.

    Description string

    The description of this policy definition group.

    DisplayName string

    The display name of this policy definition group.

    Name string

    The name of this policy definition group.

    AdditionalMetadataResourceId string

    The ID of a resource that contains additional metadata about this policy definition group.

    Category string

    The category of this policy definition group.

    Description string

    The description of this policy definition group.

    DisplayName string

    The display name of this policy definition group.

    name String

    The name of this policy definition group.

    additionalMetadataResourceId String

    The ID of a resource that contains additional metadata about this policy definition group.

    category String

    The category of this policy definition group.

    description String

    The description of this policy definition group.

    displayName String

    The display name of this policy definition group.

    name string

    The name of this policy definition group.

    additionalMetadataResourceId string

    The ID of a resource that contains additional metadata about this policy definition group.

    category string

    The category of this policy definition group.

    description string

    The description of this policy definition group.

    displayName string

    The display name of this policy definition group.

    name str

    The name of this policy definition group.

    additional_metadata_resource_id str

    The ID of a resource that contains additional metadata about this policy definition group.

    category str

    The category of this policy definition group.

    description str

    The description of this policy definition group.

    display_name str

    The display name of this policy definition group.

    name String

    The name of this policy definition group.

    additionalMetadataResourceId String

    The ID of a resource that contains additional metadata about this policy definition group.

    category String

    The category of this policy definition group.

    description String

    The description of this policy definition group.

    displayName String

    The display name of this policy definition group.

    PolicySetDefinitionPolicyDefinitionReference

    PolicyDefinitionId string

    The ID of the policy definition that will be included in this policy set definition.

    ParameterValues string

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    PolicyGroupNames List<string>

    A list of names of the policy definition groups that this policy definition reference belongs to.

    ReferenceId string

    A unique ID within this policy set definition for this policy definition reference.

    PolicyDefinitionId string

    The ID of the policy definition that will be included in this policy set definition.

    ParameterValues string

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    PolicyGroupNames []string

    A list of names of the policy definition groups that this policy definition reference belongs to.

    ReferenceId string

    A unique ID within this policy set definition for this policy definition reference.

    policyDefinitionId String

    The ID of the policy definition that will be included in this policy set definition.

    parameterValues String

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    policyGroupNames List<String>

    A list of names of the policy definition groups that this policy definition reference belongs to.

    referenceId String

    A unique ID within this policy set definition for this policy definition reference.

    policyDefinitionId string

    The ID of the policy definition that will be included in this policy set definition.

    parameterValues string

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    policyGroupNames string[]

    A list of names of the policy definition groups that this policy definition reference belongs to.

    referenceId string

    A unique ID within this policy set definition for this policy definition reference.

    policy_definition_id str

    The ID of the policy definition that will be included in this policy set definition.

    parameter_values str

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    policy_group_names Sequence[str]

    A list of names of the policy definition groups that this policy definition reference belongs to.

    reference_id str

    A unique ID within this policy set definition for this policy definition reference.

    policyDefinitionId String

    The ID of the policy definition that will be included in this policy set definition.

    parameterValues String

    Parameter values for the referenced policy rule. This field is a JSON string that allows you to assign parameters to this policy rule.

    policyGroupNames List<String>

    A list of names of the policy definition groups that this policy definition reference belongs to.

    referenceId String

    A unique ID within this policy set definition for this policy definition reference.

    Import

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

     $ pulumi import azure:policy/policySetDefinition:PolicySetDefinition example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policySetDefinitions/testPolicySet
    

    or

     $ pulumi import azure:policy/policySetDefinition:PolicySetDefinition example /providers/Microsoft.Management/managementGroups/my-mgmt-group-id/providers/Microsoft.Authorization/policySetDefinitions/testPolicySet
    

    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 Classic v5.43.0 published on Saturday, May 6, 2023 by Pulumi