1. Packages
  2. Azure Classic
  3. API Docs
  4. securitycenter
  5. ServerVulnerabilityAssessmentsSetting

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.securitycenter.ServerVulnerabilityAssessmentsSetting

Explore with Pulumi AI

Manages the Server Vulnerability Assesments Setting for Azure Security Center.

NOTE: This resource requires the Owner permission on the Subscription.

NOTE: Deletion of this resource disables the setting.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", {vulnerabilityAssessmentProvider: "MdeTvm"});
Copy
import pulumi
import pulumi_azure as azure

example = azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", vulnerability_assessment_provider="MdeTvm")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitycenter.NewServerVulnerabilityAssessmentsSetting(ctx, "example", &securitycenter.ServerVulnerabilityAssessmentsSettingArgs{
			VulnerabilityAssessmentProvider: pulumi.String("MdeTvm"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.SecurityCenter.ServerVulnerabilityAssessmentsSetting("example", new()
    {
        VulnerabilityAssessmentProvider = "MdeTvm",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSetting;
import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs;
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 ServerVulnerabilityAssessmentsSetting("example", ServerVulnerabilityAssessmentsSettingArgs.builder()
            .vulnerabilityAssessmentProvider("MdeTvm")
            .build());

    }
}
Copy
resources:
  example:
    type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
    properties:
      vulnerabilityAssessmentProvider: MdeTvm
Copy

Create ServerVulnerabilityAssessmentsSetting Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServerVulnerabilityAssessmentsSetting(name: string, args: ServerVulnerabilityAssessmentsSettingArgs, opts?: CustomResourceOptions);
@overload
def ServerVulnerabilityAssessmentsSetting(resource_name: str,
                                          args: ServerVulnerabilityAssessmentsSettingArgs,
                                          opts: Optional[ResourceOptions] = None)

@overload
def ServerVulnerabilityAssessmentsSetting(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          vulnerability_assessment_provider: Optional[str] = None)
func NewServerVulnerabilityAssessmentsSetting(ctx *Context, name string, args ServerVulnerabilityAssessmentsSettingArgs, opts ...ResourceOption) (*ServerVulnerabilityAssessmentsSetting, error)
public ServerVulnerabilityAssessmentsSetting(string name, ServerVulnerabilityAssessmentsSettingArgs args, CustomResourceOptions? opts = null)
public ServerVulnerabilityAssessmentsSetting(String name, ServerVulnerabilityAssessmentsSettingArgs args)
public ServerVulnerabilityAssessmentsSetting(String name, ServerVulnerabilityAssessmentsSettingArgs args, CustomResourceOptions options)
type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServerVulnerabilityAssessmentsSettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ServerVulnerabilityAssessmentsSettingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ServerVulnerabilityAssessmentsSettingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServerVulnerabilityAssessmentsSettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ServerVulnerabilityAssessmentsSettingArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var serverVulnerabilityAssessmentsSettingResource = new Azure.SecurityCenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", new()
{
    VulnerabilityAssessmentProvider = "string",
});
Copy
example, err := securitycenter.NewServerVulnerabilityAssessmentsSetting(ctx, "serverVulnerabilityAssessmentsSettingResource", &securitycenter.ServerVulnerabilityAssessmentsSettingArgs{
	VulnerabilityAssessmentProvider: pulumi.String("string"),
})
Copy
var serverVulnerabilityAssessmentsSettingResource = new ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", ServerVulnerabilityAssessmentsSettingArgs.builder()
    .vulnerabilityAssessmentProvider("string")
    .build());
Copy
server_vulnerability_assessments_setting_resource = azure.securitycenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", vulnerability_assessment_provider="string")
Copy
const serverVulnerabilityAssessmentsSettingResource = new azure.securitycenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", {vulnerabilityAssessmentProvider: "string"});
Copy
type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
properties:
    vulnerabilityAssessmentProvider: string
Copy

ServerVulnerabilityAssessmentsSetting Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ServerVulnerabilityAssessmentsSetting resource accepts the following input properties:

VulnerabilityAssessmentProvider This property is required. string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
VulnerabilityAssessmentProvider This property is required. string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider This property is required. String
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider This property is required. string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerability_assessment_provider This property is required. str
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider This property is required. String
The vulnerability assesment provider to use. The only possible values is MdeTvm.

Outputs

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

Get an existing ServerVulnerabilityAssessmentsSetting 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?: ServerVulnerabilityAssessmentsSettingState, opts?: CustomResourceOptions): ServerVulnerabilityAssessmentsSetting
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        vulnerability_assessment_provider: Optional[str] = None) -> ServerVulnerabilityAssessmentsSetting
func GetServerVulnerabilityAssessmentsSetting(ctx *Context, name string, id IDInput, state *ServerVulnerabilityAssessmentsSettingState, opts ...ResourceOption) (*ServerVulnerabilityAssessmentsSetting, error)
public static ServerVulnerabilityAssessmentsSetting Get(string name, Input<string> id, ServerVulnerabilityAssessmentsSettingState? state, CustomResourceOptions? opts = null)
public static ServerVulnerabilityAssessmentsSetting get(String name, Output<String> id, ServerVulnerabilityAssessmentsSettingState state, CustomResourceOptions options)
resources:  _:    type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
VulnerabilityAssessmentProvider string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
VulnerabilityAssessmentProvider string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider String
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider string
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerability_assessment_provider str
The vulnerability assesment provider to use. The only possible values is MdeTvm.
vulnerabilityAssessmentProvider String
The vulnerability assesment provider to use. The only possible values is MdeTvm.

Import

The setting can be imported using the resource id, e.g.

$ pulumi import azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/AzureServersSetting
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.