Custom Assessment Automation
Custom Assessment Automation API Version: 2021-07-01-preview.
Example Usage
Create a Custom Assessment Automation
using System.Collections.Generic;
using System.Linq;
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",
});
});
Content copied to clipboard
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The assessment metadata key used when an assessment is generated for this assessment automation.
Link copied to clipboard
GZip encoded KQL query representing the assessment automation results required.
Link copied to clipboard
The description to relate to the assessments generated by this assessment automation.
Link copied to clipboard
The display name of the assessments generated by this assessment automation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The remediation description to relate to the assessments generated by this assessment automation.
Link copied to clipboard
Relevant cloud for the custom assessment automation.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.