azure-native.security.CustomAssessmentAutomation

Custom Assessment Automation API Version: 2021-07-01-preview.

Example Usage

Create a Custom Assessment Automation

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var customAssessmentAutomation = new AzureNative.Security.CustomAssessmentAutomation("customAssessmentAutomation", new()
    {
        CompressedQuery = "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
        CustomAssessmentAutomationName = "MyCustomAssessmentAutomation",
        Description = "Data should be encrypted",
        DisplayName = "Password Policy",
        RemediationDescription = "Encrypt store by...",
        ResourceGroupName = "TestResourceGroup",
        Severity = "Medium",
        SupportedCloud = "AWS",
    });

});
package main

import (
	security "github.com/pulumi/pulumi-azure-native/sdk/go/azure/security"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := security.NewCustomAssessmentAutomation(ctx, "customAssessmentAutomation", &security.CustomAssessmentAutomationArgs{
			CompressedQuery:                pulumi.String("DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA="),
			CustomAssessmentAutomationName: pulumi.String("MyCustomAssessmentAutomation"),
			Description:                    pulumi.String("Data should be encrypted"),
			DisplayName:                    pulumi.String("Password Policy"),
			RemediationDescription:         pulumi.String("Encrypt store by..."),
			ResourceGroupName:              pulumi.String("TestResourceGroup"),
			Severity:                       pulumi.String("Medium"),
			SupportedCloud:                 pulumi.String("AWS"),
		})
		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.azurenative.security.CustomAssessmentAutomation;
import com.pulumi.azurenative.security.CustomAssessmentAutomationArgs;
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 customAssessmentAutomation = new CustomAssessmentAutomation("customAssessmentAutomation", CustomAssessmentAutomationArgs.builder()        
            .compressedQuery("DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=")
            .customAssessmentAutomationName("MyCustomAssessmentAutomation")
            .description("Data should be encrypted")
            .displayName("Password Policy")
            .remediationDescription("Encrypt store by...")
            .resourceGroupName("TestResourceGroup")
            .severity("Medium")
            .supportedCloud("AWS")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

custom_assessment_automation = azure_native.security.CustomAssessmentAutomation("customAssessmentAutomation",
    compressed_query="DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
    custom_assessment_automation_name="MyCustomAssessmentAutomation",
    description="Data should be encrypted",
    display_name="Password Policy",
    remediation_description="Encrypt store by...",
    resource_group_name="TestResourceGroup",
    severity="Medium",
    supported_cloud="AWS")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const customAssessmentAutomation = new azure_native.security.CustomAssessmentAutomation("customAssessmentAutomation", {
    compressedQuery: "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=",
    customAssessmentAutomationName: "MyCustomAssessmentAutomation",
    description: "Data should be encrypted",
    displayName: "Password Policy",
    remediationDescription: "Encrypt store by...",
    resourceGroupName: "TestResourceGroup",
    severity: "Medium",
    supportedCloud: "AWS",
});
resources:
  customAssessmentAutomation:
    type: azure-native:security:CustomAssessmentAutomation
    properties:
      compressedQuery: DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=
      customAssessmentAutomationName: MyCustomAssessmentAutomation
      description: Data should be encrypted
      displayName: Password Policy
      remediationDescription: Encrypt store by...
      resourceGroupName: TestResourceGroup
      severity: Medium
      supportedCloud: AWS

Create CustomAssessmentAutomation Resource

new CustomAssessmentAutomation(name: string, args: CustomAssessmentAutomationArgs, opts?: CustomResourceOptions);
@overload
def CustomAssessmentAutomation(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               compressed_query: Optional[str] = None,
                               custom_assessment_automation_name: Optional[str] = None,
                               description: Optional[str] = None,
                               display_name: Optional[str] = None,
                               remediation_description: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               severity: Optional[Union[str, SeverityEnum]] = None,
                               supported_cloud: Optional[Union[str, SupportedCloudEnum]] = None)
@overload
def CustomAssessmentAutomation(resource_name: str,
                               args: CustomAssessmentAutomationArgs,
                               opts: Optional[ResourceOptions] = None)
func NewCustomAssessmentAutomation(ctx *Context, name string, args CustomAssessmentAutomationArgs, opts ...ResourceOption) (*CustomAssessmentAutomation, error)
public CustomAssessmentAutomation(string name, CustomAssessmentAutomationArgs args, CustomResourceOptions? opts = null)
public CustomAssessmentAutomation(String name, CustomAssessmentAutomationArgs args)
public CustomAssessmentAutomation(String name, CustomAssessmentAutomationArgs args, CustomResourceOptions options)
type: azure-native:security:CustomAssessmentAutomation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ResourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

CompressedQuery string

Base 64 encoded KQL query representing the assessment automation results required.

CustomAssessmentAutomationName string

Name of the Custom Assessment Automation.

Description string

The description to relate to the assessments generated by this assessment automation.

DisplayName string

The display name of the assessments generated by this assessment automation.

RemediationDescription string

The remediation description to relate to the assessments generated by this assessment automation.

Severity string | Pulumi.AzureNative.Security.SeverityEnum

The severity to relate to the assessments generated by this assessment automation.

SupportedCloud string | Pulumi.AzureNative.Security.SupportedCloudEnum

Relevant cloud for the custom assessment automation.

ResourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

CompressedQuery string

Base 64 encoded KQL query representing the assessment automation results required.

CustomAssessmentAutomationName string

Name of the Custom Assessment Automation.

Description string

The description to relate to the assessments generated by this assessment automation.

DisplayName string

The display name of the assessments generated by this assessment automation.

RemediationDescription string

The remediation description to relate to the assessments generated by this assessment automation.

Severity string | SeverityEnum

The severity to relate to the assessments generated by this assessment automation.

SupportedCloud string | SupportedCloudEnum

Relevant cloud for the custom assessment automation.

resourceGroupName String

The name of the resource group within the user's subscription. The name is case insensitive.

compressedQuery String

Base 64 encoded KQL query representing the assessment automation results required.

customAssessmentAutomationName String

Name of the Custom Assessment Automation.

description String

The description to relate to the assessments generated by this assessment automation.

displayName String

The display name of the assessments generated by this assessment automation.

remediationDescription String

The remediation description to relate to the assessments generated by this assessment automation.

severity String | SeverityEnum

The severity to relate to the assessments generated by this assessment automation.

supportedCloud String | SupportedCloudEnum

Relevant cloud for the custom assessment automation.

resourceGroupName string

The name of the resource group within the user's subscription. The name is case insensitive.

compressedQuery string

Base 64 encoded KQL query representing the assessment automation results required.

customAssessmentAutomationName string

Name of the Custom Assessment Automation.

description string

The description to relate to the assessments generated by this assessment automation.

displayName string

The display name of the assessments generated by this assessment automation.

remediationDescription string

The remediation description to relate to the assessments generated by this assessment automation.

severity string | SeverityEnum

The severity to relate to the assessments generated by this assessment automation.

supportedCloud string | SupportedCloudEnum

Relevant cloud for the custom assessment automation.

resource_group_name str

The name of the resource group within the user's subscription. The name is case insensitive.

compressed_query str

Base 64 encoded KQL query representing the assessment automation results required.

custom_assessment_automation_name str

Name of the Custom Assessment Automation.

description str

The description to relate to the assessments generated by this assessment automation.

display_name str

The display name of the assessments generated by this assessment automation.

remediation_description str

The remediation description to relate to the assessments generated by this assessment automation.

severity str | SeverityEnum

The severity to relate to the assessments generated by this assessment automation.

supported_cloud str | SupportedCloudEnum

Relevant cloud for the custom assessment automation.

resourceGroupName String

The name of the resource group within the user's subscription. The name is case insensitive.

compressedQuery String

Base 64 encoded KQL query representing the assessment automation results required.

customAssessmentAutomationName String

Name of the Custom Assessment Automation.

description String

The description to relate to the assessments generated by this assessment automation.

displayName String

The display name of the assessments generated by this assessment automation.

remediationDescription String

The remediation description to relate to the assessments generated by this assessment automation.

severity String | "High" | "Medium" | "Low"

The severity to relate to the assessments generated by this assessment automation.

supportedCloud String | "AWS" | "GCP"

Relevant cloud for the custom assessment automation.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Resource type

AssessmentKey string

The assessment metadata key used when an assessment is generated for this assessment automation.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Resource type

AssessmentKey string

The assessment metadata key used when an assessment is generated for this assessment automation.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Resource type

assessmentKey String

The assessment metadata key used when an assessment is generated for this assessment automation.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

Resource type

assessmentKey string

The assessment metadata key used when an assessment is generated for this assessment automation.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

Resource type

assessment_key str

The assessment metadata key used when an assessment is generated for this assessment automation.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Resource type

assessmentKey String

The assessment metadata key used when an assessment is generated for this assessment automation.

Supporting Types

SeverityEnum

High
High
Medium
Medium
Low
Low
SeverityEnumHigh
High
SeverityEnumMedium
Medium
SeverityEnumLow
Low
High
High
Medium
Medium
Low
Low
High
High
Medium
Medium
Low
Low
HIGH
High
MEDIUM
Medium
LOW
Low
"High"
High
"Medium"
Medium
"Low"
Low

SupportedCloudEnum

AWS
AWS
GCP
GCP
SupportedCloudEnumAWS
AWS
SupportedCloudEnumGCP
GCP
AWS
AWS
GCP
GCP
AWS
AWS
GCP
GCP
AWS
AWS
GCP
GCP
"AWS"
AWS
"GCP"
GCP

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:security:CustomAssessmentAutomation 33e7cc6e-a139-4723-a0e5-76993aee0771 /subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/33e7cc6e-a139-4723-a0e5-76993aee0771 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0