Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.14.0 published on Thursday, Jul 28, 2022 by Pulumi

AssessmentPolicy

Manages the Security Center Assessment Metadata for Azure Security Center.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Azure.SecurityCenter.AssessmentPolicy("example", new Azure.SecurityCenter.AssessmentPolicyArgs
        {
            Description = "Test Description",
            DisplayName = "Test Display Name",
            Severity = "Medium",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/securitycenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitycenter.NewAssessmentPolicy(ctx, "example", &securitycenter.AssessmentPolicyArgs{
			Description: pulumi.String("Test Description"),
			DisplayName: pulumi.String("Test Display Name"),
			Severity:    pulumi.String("Medium"),
		})
		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.securitycenter.AssessmentPolicy;
import com.pulumi.azure.securitycenter.AssessmentPolicyArgs;
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 AssessmentPolicy("example", AssessmentPolicyArgs.builder()        
            .description("Test Description")
            .displayName("Test Display Name")
            .severity("Medium")
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.securitycenter.AssessmentPolicy("example",
    description="Test Description",
    display_name="Test Display Name",
    severity="Medium")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.securitycenter.AssessmentPolicy("example", {
    description: "Test Description",
    displayName: "Test Display Name",
    severity: "Medium",
});
resources:
  example:
    type: azure:securitycenter:AssessmentPolicy
    properties:
      description: Test Description
      displayName: Test Display Name
      severity: Medium

Create a AssessmentPolicy Resource

new AssessmentPolicy(name: string, args: AssessmentPolicyArgs, opts?: CustomResourceOptions);
@overload
def AssessmentPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     categories: Optional[Sequence[str]] = None,
                     description: Optional[str] = None,
                     display_name: Optional[str] = None,
                     implementation_effort: Optional[str] = None,
                     remediation_description: Optional[str] = None,
                     severity: Optional[str] = None,
                     threats: Optional[Sequence[str]] = None,
                     user_impact: Optional[str] = None)
@overload
def AssessmentPolicy(resource_name: str,
                     args: AssessmentPolicyArgs,
                     opts: Optional[ResourceOptions] = None)
func NewAssessmentPolicy(ctx *Context, name string, args AssessmentPolicyArgs, opts ...ResourceOption) (*AssessmentPolicy, error)
public AssessmentPolicy(string name, AssessmentPolicyArgs args, CustomResourceOptions? opts = null)
public AssessmentPolicy(String name, AssessmentPolicyArgs args)
public AssessmentPolicy(String name, AssessmentPolicyArgs args, CustomResourceOptions options)
type: azure:securitycenter:AssessmentPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AssessmentPolicyArgs
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 AssessmentPolicyArgs
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 AssessmentPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AssessmentPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AssessmentPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Description string

The description of the Security Center Assessment.

DisplayName string

The user-friendly display name of the Security Center Assessment.

Categories List<string>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

ImplementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

RemediationDescription string

The description which is used to mitigate the security issue.

Severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

Threats List<string>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

UserImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

Description string

The description of the Security Center Assessment.

DisplayName string

The user-friendly display name of the Security Center Assessment.

Categories []string

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

ImplementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

RemediationDescription string

The description which is used to mitigate the security issue.

Severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

Threats []string

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

UserImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

description String

The description of the Security Center Assessment.

displayName String

The user-friendly display name of the Security Center Assessment.

categories List<String>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

implementationEffort String

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

remediationDescription String

The description which is used to mitigate the security issue.

severity String

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats List<String>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact String

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

description string

The description of the Security Center Assessment.

displayName string

The user-friendly display name of the Security Center Assessment.

categories string[]

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

implementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

remediationDescription string

The description which is used to mitigate the security issue.

severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats string[]

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

description str

The description of the Security Center Assessment.

display_name str

The user-friendly display name of the Security Center Assessment.

categories Sequence[str]

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

implementation_effort str

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

remediation_description str

The description which is used to mitigate the security issue.

severity str

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats Sequence[str]

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

user_impact str

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

description String

The description of the Security Center Assessment.

displayName String

The user-friendly display name of the Security Center Assessment.

categories List<String>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

implementationEffort String

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

remediationDescription String

The description which is used to mitigate the security issue.

severity String

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats List<String>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact String

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The GUID as the name of the Security Center Assessment Policy.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The GUID as the name of the Security Center Assessment Policy.

id String

The provider-assigned unique ID for this managed resource.

name String

The GUID as the name of the Security Center Assessment Policy.

id string

The provider-assigned unique ID for this managed resource.

name string

The GUID as the name of the Security Center Assessment Policy.

id str

The provider-assigned unique ID for this managed resource.

name str

The GUID as the name of the Security Center Assessment Policy.

id String

The provider-assigned unique ID for this managed resource.

name String

The GUID as the name of the Security Center Assessment Policy.

Look up an Existing AssessmentPolicy Resource

Get an existing AssessmentPolicy 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?: AssessmentPolicyState, opts?: CustomResourceOptions): AssessmentPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        categories: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        implementation_effort: Optional[str] = None,
        name: Optional[str] = None,
        remediation_description: Optional[str] = None,
        severity: Optional[str] = None,
        threats: Optional[Sequence[str]] = None,
        user_impact: Optional[str] = None) -> AssessmentPolicy
func GetAssessmentPolicy(ctx *Context, name string, id IDInput, state *AssessmentPolicyState, opts ...ResourceOption) (*AssessmentPolicy, error)
public static AssessmentPolicy Get(string name, Input<string> id, AssessmentPolicyState? state, CustomResourceOptions? opts = null)
public static AssessmentPolicy get(String name, Output<String> id, AssessmentPolicyState 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:
Categories List<string>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

Description string

The description of the Security Center Assessment.

DisplayName string

The user-friendly display name of the Security Center Assessment.

ImplementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

Name string

The GUID as the name of the Security Center Assessment Policy.

RemediationDescription string

The description which is used to mitigate the security issue.

Severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

Threats List<string>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

UserImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

Categories []string

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

Description string

The description of the Security Center Assessment.

DisplayName string

The user-friendly display name of the Security Center Assessment.

ImplementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

Name string

The GUID as the name of the Security Center Assessment Policy.

RemediationDescription string

The description which is used to mitigate the security issue.

Severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

Threats []string

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

UserImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

categories List<String>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

description String

The description of the Security Center Assessment.

displayName String

The user-friendly display name of the Security Center Assessment.

implementationEffort String

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

name String

The GUID as the name of the Security Center Assessment Policy.

remediationDescription String

The description which is used to mitigate the security issue.

severity String

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats List<String>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact String

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

categories string[]

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

description string

The description of the Security Center Assessment.

displayName string

The user-friendly display name of the Security Center Assessment.

implementationEffort string

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

name string

The GUID as the name of the Security Center Assessment Policy.

remediationDescription string

The description which is used to mitigate the security issue.

severity string

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats string[]

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact string

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

categories Sequence[str]

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

description str

The description of the Security Center Assessment.

display_name str

The user-friendly display name of the Security Center Assessment.

implementation_effort str

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

name str

The GUID as the name of the Security Center Assessment Policy.

remediation_description str

The description which is used to mitigate the security issue.

severity str

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats Sequence[str]

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

user_impact str

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

categories List<String>

A list of the categories of resource that is at risk when the Security Center Assessment is unhealthy. Possible values are Unknown, Compute, Data, IdentityAndAccess, IoT and Networking.

description String

The description of the Security Center Assessment.

displayName String

The user-friendly display name of the Security Center Assessment.

implementationEffort String

The implementation effort which is used to remediate the Security Center Assessment. Possible values are Low, Moderate and High.

name String

The GUID as the name of the Security Center Assessment Policy.

remediationDescription String

The description which is used to mitigate the security issue.

severity String

The severity level of the Security Center Assessment. Possible values are Low, Medium and High. Defaults to Medium.

threats List<String>

A list of the threat impacts for the Security Center Assessment. Possible values are AccountBreach, DataExfiltration, DataSpillage, DenialOfService, ElevationOfPrivilege, MaliciousInsider, MissingCoverage and ThreatResistance.

userImpact String

The user impact of the Security Center Assessment. Possible values are Low, Moderate and High.

Import

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

 $ pulumi import azure:securitycenter/assessmentPolicy:AssessmentPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/assessmentMetadata/metadata1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.