azure logo
Azure Classic v5.39.0, Apr 1 23

azure.securitycenter.Assessment

Manages the Security Center Assessment for Azure Security Center.

Example Usage

using System.Collections.Generic;
using System.IO;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
    });

    var @internal = new Azure.Network.Subnet("internal", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.0.2.0/24",
        },
    });

    var exampleLinuxVirtualMachineScaleSet = new Azure.Compute.LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = "Standard_F2",
        Instances = 1,
        AdminUsername = "adminuser",
        AdminSshKeys = new[]
        {
            new Azure.Compute.Inputs.LinuxVirtualMachineScaleSetAdminSshKeyArgs
            {
                Username = "adminuser",
                PublicKey = File.ReadAllText("~/.ssh/id_rsa.pub"),
            },
        },
        SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineScaleSetSourceImageReferenceArgs
        {
            Publisher = "Canonical",
            Offer = "UbuntuServer",
            Sku = "16.04-LTS",
            Version = "latest",
        },
        OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineScaleSetOsDiskArgs
        {
            StorageAccountType = "Standard_LRS",
            Caching = "ReadWrite",
        },
        NetworkInterfaces = new[]
        {
            new Azure.Compute.Inputs.LinuxVirtualMachineScaleSetNetworkInterfaceArgs
            {
                Name = "example",
                Primary = true,
                IpConfigurations = new[]
                {
                    new Azure.Compute.Inputs.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs
                    {
                        Name = "internal",
                        Primary = true,
                        SubnetId = @internal.Id,
                    },
                },
            },
        },
    });

    var exampleAssessmentPolicy = new Azure.SecurityCenter.AssessmentPolicy("exampleAssessmentPolicy", new()
    {
        DisplayName = "Test Display Name",
        Severity = "Medium",
        Description = "Test Description",
    });

    var exampleAssessment = new Azure.SecurityCenter.Assessment("exampleAssessment", new()
    {
        AssessmentPolicyId = exampleAssessmentPolicy.Id,
        TargetResourceId = exampleLinuxVirtualMachineScaleSet.Id,
        Status = new Azure.SecurityCenter.Inputs.AssessmentStatusArgs
        {
            Code = "Healthy",
        },
    });

});
package main

import (
	"os"

	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/securitycenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
		})
		if err != nil {
			return err
		}
		internal, err := network.NewSubnet(ctx, "internal", &network.SubnetArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
		})
		if err != nil {
			return err
		}
		exampleLinuxVirtualMachineScaleSet, err := compute.NewLinuxVirtualMachineScaleSet(ctx, "exampleLinuxVirtualMachineScaleSet", &compute.LinuxVirtualMachineScaleSetArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Sku:               pulumi.String("Standard_F2"),
			Instances:         pulumi.Int(1),
			AdminUsername:     pulumi.String("adminuser"),
			AdminSshKeys: compute.LinuxVirtualMachineScaleSetAdminSshKeyArray{
				&compute.LinuxVirtualMachineScaleSetAdminSshKeyArgs{
					Username:  pulumi.String("adminuser"),
					PublicKey: readFileOrPanic("~/.ssh/id_rsa.pub"),
				},
			},
			SourceImageReference: &compute.LinuxVirtualMachineScaleSetSourceImageReferenceArgs{
				Publisher: pulumi.String("Canonical"),
				Offer:     pulumi.String("UbuntuServer"),
				Sku:       pulumi.String("16.04-LTS"),
				Version:   pulumi.String("latest"),
			},
			OsDisk: &compute.LinuxVirtualMachineScaleSetOsDiskArgs{
				StorageAccountType: pulumi.String("Standard_LRS"),
				Caching:            pulumi.String("ReadWrite"),
			},
			NetworkInterfaces: compute.LinuxVirtualMachineScaleSetNetworkInterfaceArray{
				&compute.LinuxVirtualMachineScaleSetNetworkInterfaceArgs{
					Name:    pulumi.String("example"),
					Primary: pulumi.Bool(true),
					IpConfigurations: compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArray{
						&compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs{
							Name:     pulumi.String("internal"),
							Primary:  pulumi.Bool(true),
							SubnetId: internal.ID(),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		exampleAssessmentPolicy, err := securitycenter.NewAssessmentPolicy(ctx, "exampleAssessmentPolicy", &securitycenter.AssessmentPolicyArgs{
			DisplayName: pulumi.String("Test Display Name"),
			Severity:    pulumi.String("Medium"),
			Description: pulumi.String("Test Description"),
		})
		if err != nil {
			return err
		}
		_, err = securitycenter.NewAssessment(ctx, "exampleAssessment", &securitycenter.AssessmentArgs{
			AssessmentPolicyId: exampleAssessmentPolicy.ID(),
			TargetResourceId:   exampleLinuxVirtualMachineScaleSet.ID(),
			Status: &securitycenter.AssessmentStatusArgs{
				Code: pulumi.String("Healthy"),
			},
		})
		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.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.compute.LinuxVirtualMachineScaleSet;
import com.pulumi.azure.compute.LinuxVirtualMachineScaleSetArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetAdminSshKeyArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetSourceImageReferenceArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetOsDiskArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetNetworkInterfaceArgs;
import com.pulumi.azure.securitycenter.AssessmentPolicy;
import com.pulumi.azure.securitycenter.AssessmentPolicyArgs;
import com.pulumi.azure.securitycenter.Assessment;
import com.pulumi.azure.securitycenter.AssessmentArgs;
import com.pulumi.azure.securitycenter.inputs.AssessmentStatusArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .addressSpaces("10.0.0.0/16")
            .build());

        var internal = new Subnet("internal", SubnetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.2.0/24")
            .build());

        var exampleLinuxVirtualMachineScaleSet = new LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet", LinuxVirtualMachineScaleSetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .sku("Standard_F2")
            .instances(1)
            .adminUsername("adminuser")
            .adminSshKeys(LinuxVirtualMachineScaleSetAdminSshKeyArgs.builder()
                .username("adminuser")
                .publicKey(Files.readString(Paths.get("~/.ssh/id_rsa.pub")))
                .build())
            .sourceImageReference(LinuxVirtualMachineScaleSetSourceImageReferenceArgs.builder()
                .publisher("Canonical")
                .offer("UbuntuServer")
                .sku("16.04-LTS")
                .version("latest")
                .build())
            .osDisk(LinuxVirtualMachineScaleSetOsDiskArgs.builder()
                .storageAccountType("Standard_LRS")
                .caching("ReadWrite")
                .build())
            .networkInterfaces(LinuxVirtualMachineScaleSetNetworkInterfaceArgs.builder()
                .name("example")
                .primary(true)
                .ipConfigurations(LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs.builder()
                    .name("internal")
                    .primary(true)
                    .subnetId(internal.id())
                    .build())
                .build())
            .build());

        var exampleAssessmentPolicy = new AssessmentPolicy("exampleAssessmentPolicy", AssessmentPolicyArgs.builder()        
            .displayName("Test Display Name")
            .severity("Medium")
            .description("Test Description")
            .build());

        var exampleAssessment = new Assessment("exampleAssessment", AssessmentArgs.builder()        
            .assessmentPolicyId(exampleAssessmentPolicy.id())
            .targetResourceId(exampleLinuxVirtualMachineScaleSet.id())
            .status(AssessmentStatusArgs.builder()
                .code("Healthy")
                .build())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    address_spaces=["10.0.0.0/16"])
internal = azure.network.Subnet("internal",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"])
example_linux_virtual_machine_scale_set = azure.compute.LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    sku="Standard_F2",
    instances=1,
    admin_username="adminuser",
    admin_ssh_keys=[azure.compute.LinuxVirtualMachineScaleSetAdminSshKeyArgs(
        username="adminuser",
        public_key=(lambda path: open(path).read())("~/.ssh/id_rsa.pub"),
    )],
    source_image_reference=azure.compute.LinuxVirtualMachineScaleSetSourceImageReferenceArgs(
        publisher="Canonical",
        offer="UbuntuServer",
        sku="16.04-LTS",
        version="latest",
    ),
    os_disk=azure.compute.LinuxVirtualMachineScaleSetOsDiskArgs(
        storage_account_type="Standard_LRS",
        caching="ReadWrite",
    ),
    network_interfaces=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceArgs(
        name="example",
        primary=True,
        ip_configurations=[azure.compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs(
            name="internal",
            primary=True,
            subnet_id=internal.id,
        )],
    )])
example_assessment_policy = azure.securitycenter.AssessmentPolicy("exampleAssessmentPolicy",
    display_name="Test Display Name",
    severity="Medium",
    description="Test Description")
example_assessment = azure.securitycenter.Assessment("exampleAssessment",
    assessment_policy_id=example_assessment_policy.id,
    target_resource_id=example_linux_virtual_machine_scale_set.id,
    status=azure.securitycenter.AssessmentStatusArgs(
        code="Healthy",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as fs from "fs";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    addressSpaces: ["10.0.0.0/16"],
});
const internal = new azure.network.Subnet("internal", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
});
const exampleLinuxVirtualMachineScaleSet = new azure.compute.LinuxVirtualMachineScaleSet("exampleLinuxVirtualMachineScaleSet", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    sku: "Standard_F2",
    instances: 1,
    adminUsername: "adminuser",
    adminSshKeys: [{
        username: "adminuser",
        publicKey: fs.readFileSync("~/.ssh/id_rsa.pub"),
    }],
    sourceImageReference: {
        publisher: "Canonical",
        offer: "UbuntuServer",
        sku: "16.04-LTS",
        version: "latest",
    },
    osDisk: {
        storageAccountType: "Standard_LRS",
        caching: "ReadWrite",
    },
    networkInterfaces: [{
        name: "example",
        primary: true,
        ipConfigurations: [{
            name: "internal",
            primary: true,
            subnetId: internal.id,
        }],
    }],
});
const exampleAssessmentPolicy = new azure.securitycenter.AssessmentPolicy("exampleAssessmentPolicy", {
    displayName: "Test Display Name",
    severity: "Medium",
    description: "Test Description",
});
const exampleAssessment = new azure.securitycenter.Assessment("exampleAssessment", {
    assessmentPolicyId: exampleAssessmentPolicy.id,
    targetResourceId: exampleLinuxVirtualMachineScaleSet.id,
    status: {
        code: "Healthy",
    },
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      addressSpaces:
        - 10.0.0.0/16
  internal:
    type: azure:network:Subnet
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.0.2.0/24
  exampleLinuxVirtualMachineScaleSet:
    type: azure:compute:LinuxVirtualMachineScaleSet
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      sku: Standard_F2
      instances: 1
      adminUsername: adminuser
      adminSshKeys:
        - username: adminuser
          publicKey:
            fn::readFile: ~/.ssh/id_rsa.pub
      sourceImageReference:
        publisher: Canonical
        offer: UbuntuServer
        sku: 16.04-LTS
        version: latest
      osDisk:
        storageAccountType: Standard_LRS
        caching: ReadWrite
      networkInterfaces:
        - name: example
          primary: true
          ipConfigurations:
            - name: internal
              primary: true
              subnetId: ${internal.id}
  exampleAssessmentPolicy:
    type: azure:securitycenter:AssessmentPolicy
    properties:
      displayName: Test Display Name
      severity: Medium
      description: Test Description
  exampleAssessment:
    type: azure:securitycenter:Assessment
    properties:
      assessmentPolicyId: ${exampleAssessmentPolicy.id}
      targetResourceId: ${exampleLinuxVirtualMachineScaleSet.id}
      status:
        code: Healthy

Create Assessment Resource

new Assessment(name: string, args: AssessmentArgs, opts?: CustomResourceOptions);
@overload
def Assessment(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               additional_data: Optional[Mapping[str, str]] = None,
               assessment_policy_id: Optional[str] = None,
               status: Optional[AssessmentStatusArgs] = None,
               target_resource_id: Optional[str] = None)
@overload
def Assessment(resource_name: str,
               args: AssessmentArgs,
               opts: Optional[ResourceOptions] = None)
func NewAssessment(ctx *Context, name string, args AssessmentArgs, opts ...ResourceOption) (*Assessment, error)
public Assessment(string name, AssessmentArgs args, CustomResourceOptions? opts = null)
public Assessment(String name, AssessmentArgs args)
public Assessment(String name, AssessmentArgs args, CustomResourceOptions options)
type: azure:securitycenter:Assessment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AssessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

Status AssessmentStatusArgs

A status block as defined below.

TargetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

AdditionalData Dictionary<string, string>

A map of additional data to associate with the assessment.

AssessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

Status AssessmentStatusArgs

A status block as defined below.

TargetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

AdditionalData map[string]string

A map of additional data to associate with the assessment.

assessmentPolicyId String

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

targetResourceId String

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData Map<String,String>

A map of additional data to associate with the assessment.

assessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

targetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData {[key: string]: string}

A map of additional data to associate with the assessment.

assessment_policy_id str

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

target_resource_id str

The ID of the target resource. Changing this forces a new security Assessment to be created.

additional_data Mapping[str, str]

A map of additional data to associate with the assessment.

assessmentPolicyId String

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status Property Map

A status block as defined below.

targetResourceId String

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData Map<String>

A map of additional data to associate with the assessment.

Outputs

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

Get an existing Assessment 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?: AssessmentState, opts?: CustomResourceOptions): Assessment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        additional_data: Optional[Mapping[str, str]] = None,
        assessment_policy_id: Optional[str] = None,
        status: Optional[AssessmentStatusArgs] = None,
        target_resource_id: Optional[str] = None) -> Assessment
func GetAssessment(ctx *Context, name string, id IDInput, state *AssessmentState, opts ...ResourceOption) (*Assessment, error)
public static Assessment Get(string name, Input<string> id, AssessmentState? state, CustomResourceOptions? opts = null)
public static Assessment get(String name, Output<String> id, AssessmentState 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:
AdditionalData Dictionary<string, string>

A map of additional data to associate with the assessment.

AssessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

Status AssessmentStatusArgs

A status block as defined below.

TargetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

AdditionalData map[string]string

A map of additional data to associate with the assessment.

AssessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

Status AssessmentStatusArgs

A status block as defined below.

TargetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData Map<String,String>

A map of additional data to associate with the assessment.

assessmentPolicyId String

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

targetResourceId String

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData {[key: string]: string}

A map of additional data to associate with the assessment.

assessmentPolicyId string

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

targetResourceId string

The ID of the target resource. Changing this forces a new security Assessment to be created.

additional_data Mapping[str, str]

A map of additional data to associate with the assessment.

assessment_policy_id str

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status AssessmentStatusArgs

A status block as defined below.

target_resource_id str

The ID of the target resource. Changing this forces a new security Assessment to be created.

additionalData Map<String>

A map of additional data to associate with the assessment.

assessmentPolicyId String

The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.

status Property Map

A status block as defined below.

targetResourceId String

The ID of the target resource. Changing this forces a new security Assessment to be created.

Supporting Types

AssessmentStatus

Code string

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

Cause string

Specifies the cause of the assessment status.

Description string

Specifies the human readable description of the assessment status.

Code string

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

Cause string

Specifies the cause of the assessment status.

Description string

Specifies the human readable description of the assessment status.

code String

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

cause String

Specifies the cause of the assessment status.

description String

Specifies the human readable description of the assessment status.

code string

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

cause string

Specifies the cause of the assessment status.

description string

Specifies the human readable description of the assessment status.

code str

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

cause str

Specifies the cause of the assessment status.

description str

Specifies the human readable description of the assessment status.

code String

Specifies the programmatic code of the assessment status. Possible values are Healthy, Unhealthy and NotApplicable.

cause String

Specifies the cause of the assessment status.

description String

Specifies the human readable description of the assessment status.

Import

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

 $ pulumi import azure:securitycenter/assessment:Assessment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/00000000-0000-0000-0000-000000000000

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.