We recommend using Azure Native.
azure.securitycenter.AssessmentPolicy
Explore with Pulumi AI
Manages the Security Center Assessment Metadata for Azure Security Center.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.SecurityCenter.AssessmentPolicy("example", new()
{
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 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.
- Display
Name 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
andNetworking
.- Implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- Remediation
Description 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
andHigh
. Defaults toMedium
.- Threats List<string>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- User
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- Description string
The description of the Security Center Assessment.
- Display
Name 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
andNetworking
.- Implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- Remediation
Description 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
andHigh
. Defaults toMedium
.- Threats []string
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- User
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- description String
The description of the Security Center Assessment.
- display
Name 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
andNetworking
.- implementation
Effort String The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- remediation
Description 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
andHigh
. Defaults toMedium
.- threats List<String>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact String The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- description string
The description of the Security Center Assessment.
- display
Name 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
andNetworking
.- implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- remediation
Description 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
andHigh
. Defaults toMedium
.- threats string[]
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- implementation_
effort str The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- 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
andHigh
. Defaults toMedium
.- threats Sequence[str]
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user_
impact str The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- description String
The description of the Security Center Assessment.
- display
Name 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
andNetworking
.- implementation
Effort String The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- remediation
Description 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
andHigh
. Defaults toMedium
.- threats List<String>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact String The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AssessmentPolicy resource produces the following output properties:
Look up 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.
- 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
andNetworking
.- Description string
The description of the Security Center Assessment.
- Display
Name string The user-friendly display name of the Security Center Assessment.
- Implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- Name string
The GUID as the name of the Security Center Assessment Policy.
- Remediation
Description 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
andHigh
. Defaults toMedium
.- Threats List<string>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- User
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- Description string
The description of the Security Center Assessment.
- Display
Name string The user-friendly display name of the Security Center Assessment.
- Implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- Name string
The GUID as the name of the Security Center Assessment Policy.
- Remediation
Description 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
andHigh
. Defaults toMedium
.- Threats []string
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- User
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- description String
The description of the Security Center Assessment.
- display
Name String The user-friendly display name of the Security Center Assessment.
- implementation
Effort String The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- name String
The GUID as the name of the Security Center Assessment Policy.
- remediation
Description 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
andHigh
. Defaults toMedium
.- threats List<String>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact String The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- description string
The description of the Security Center Assessment.
- display
Name string The user-friendly display name of the Security Center Assessment.
- implementation
Effort string The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- name string
The GUID as the name of the Security Center Assessment Policy.
- remediation
Description 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
andHigh
. Defaults toMedium
.- threats string[]
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact string The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- 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
andHigh
.- 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
andHigh
. Defaults toMedium
.- threats Sequence[str]
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user_
impact str The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
- 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
andNetworking
.- description String
The description of the Security Center Assessment.
- display
Name String The user-friendly display name of the Security Center Assessment.
- implementation
Effort String The implementation effort which is used to remediate the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.- name String
The GUID as the name of the Security Center Assessment Policy.
- remediation
Description 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
andHigh
. Defaults toMedium
.- threats List<String>
A list of the threat impacts for the Security Center Assessment. Possible values are
AccountBreach
,DataExfiltration
,DataSpillage
,DenialOfService
,ElevationOfPrivilege
,MaliciousInsider
,MissingCoverage
andThreatResistance
.- user
Impact String The user impact of the Security Center Assessment. Possible values are
Low
,Moderate
andHigh
.
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
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.